/**
 * Cookie Consent Banner Styles
 * Save this as: /css/cookie-consent.css
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-consent-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option {
    display: flex;
    align-items: flex-start;
}

.cookie-option-label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.cookie-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-option-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cookie-option-text strong {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.cookie-option-text small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.cookie-btn {
    padding: 14px 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* Primary style – use for both Accept All and Reject All for equal prominence */
.cookie-btn-primary {
    background: #8b5cf6;
    color: #ffffff;
    border: 1px solid #8b5cf6;
}

.cookie-btn-primary:hover {
    background: #a78bfa;
    border-color: #a78bfa;
}

/* Secondary style – good for “Accept selected” / “Settings” */
.cookie-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Text-only style if needed */
.cookie-btn-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
}

.cookie-btn-text:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-consent-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-footer a {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.cookie-consent-footer a:hover {
    color: #a78bfa;
}

/* Floating Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease-out;
}

.cookie-settings-btn:hover {
    background: rgba(139, 92, 246, 0.9);
    border-color: #8b5cf6;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 20px;
    }

    .cookie-consent-text h3 {
        font-size: 1.2rem;
    }

    .cookie-consent-options {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}

/* Hide banner when consent is given */
.cookie-consent-hidden {
    display: none !important;
}
