/* Cookie Consent Banner Styles */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideUp 0.5s ease-out forwards;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hide {
    animation: slideDown 0.4s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-consent__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: cookiePulse 2s ease-in-out infinite;
}

@keyframes cookiePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cookie-consent__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.cookie-consent__text {
    flex: 1;
}

.cookie-consent__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: white;
}

.cookie-consent__link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
    transition: opacity 0.2s;
}

.cookie-consent__link:hover {
    opacity: 0.8;
}

.cookie-consent__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent__button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    outline: none;
}

.cookie-consent__button--primary {
    background: white;
    color: #667eea;
}

.cookie-consent__button--primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-consent__button--primary:active {
    transform: translateY(0);
}

.cookie-consent__button--secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent__button--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cookie-consent__button--secondary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cookie-consent__container {
        padding: 20px;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .cookie-consent__container {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cookie-consent__icon {
        width: 36px;
        height: 36px;
    }

    .cookie-consent__text p {
        font-size: 14px;
    }

    .cookie-consent__actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .cookie-consent__button {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent__container {
        padding: 14px;
        gap: 14px;
    }

    .cookie-consent__icon {
        width: 32px;
        height: 32px;
    }

    .cookie-consent__text p {
        font-size: 13px;
    }

    .cookie-consent__button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .cookie-consent {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility */
.cookie-consent__button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Animation for button press */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.cookie-consent__button:active {
    animation: buttonPress 0.2s ease-out;
}
