/* Cookie Consent Banner Styles */

/* Banner Container */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: var(--font-body, 'Inter', sans-serif);
}

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

/* Banner Content Layout */
.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary, #1a1a1a);
    font-family: var(--font-logo, 'Libre Baskerville', serif);
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4a4a4a;
}

.cookie-consent-text a {
    color: var(--color-primary, #1a1a1a);
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: var(--color-secondary, #2c2c2c);
}

/* Button Container */
.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Button Base Styles */
.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* Accept All Button */
.cookie-consent-btn-accept {
    background-color: var(--color-primary, #1a1a1a);
    color: white;
}

.cookie-consent-btn-accept:hover {
    background-color: var(--color-secondary, #2c2c2c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reject All Button */
.cookie-consent-btn-reject {
    background-color: transparent;
    color: var(--color-primary, #1a1a1a);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-consent-btn-reject:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Customize Button */
.cookie-consent-btn-customize {
    background-color: transparent;
    color: #0066cc;
    text-decoration: underline;
    padding: 0.625rem 1rem;
}

.cookie-consent-btn-customize:hover {
    color: #0052a3;
}

/* Modal Overlay */
#cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#cookie-consent-modal.show {
    display: flex;
}

/* Modal Content */
.cookie-consent-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: var(--font-body, 'Inter', sans-serif);
}

.cookie-consent-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary, #1a1a1a);
    font-family: var(--font-logo, 'Libre Baskerville', serif);
}

.cookie-consent-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cookie-consent-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.cookie-consent-modal-body {
    padding: 2rem;
}

.cookie-consent-modal-body p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    color: #4a4a4a;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary, #1a1a1a);
}

.cookie-category-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--color-primary, #1a1a1a);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Footer */
.cookie-consent-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-consent-modal-content {
        margin: 1rem;
    }

    .cookie-consent-modal-header,
    .cookie-consent-modal-body,
    .cookie-consent-modal-footer {
        padding: 1rem;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    #cookie-consent-banner {
        background: rgba(26, 26, 26, 0.98);
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .cookie-consent-text h3,
    .cookie-consent-text p,
    .cookie-consent-text a {
        color: #f0f0f0;
    }

    .cookie-consent-btn-reject {
        border-color: rgba(255, 255, 255, 0.2);
        color: #f0f0f0;
    }

    .cookie-consent-btn-reject:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .cookie-consent-btn-customize {
        color: #66b3ff;
    }

    .cookie-consent-btn-customize:hover {
        color: #99ccff;
    }

    .cookie-consent-modal-content {
        background: #1a1a1a;
        color: #f0f0f0;
    }

    .cookie-consent-modal-header,
    .cookie-consent-modal-footer {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .cookie-category {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
    }

    .cookie-category-description {
        color: #b8b8b8;
    }

    .cookie-consent-modal-body p {
        color: #d0d0d0;
    }

    .cookie-consent-modal-header h2 {
        color: #f0f0f0;
    }

    .cookie-category-header h3 {
        color: #f0f0f0;
    }
}
