/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15, 42, 68, 0.1);
    padding: 1.5rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

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

/* Dark Mode Support */
.dark .cookie-consent-banner {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: #f8fafc;
}

.cookie-consent-content {
    max-width: 1200px;
    width: 100%;
}

.cookie-consent-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    text-align: center;
}

.dark .cookie-consent-text {
    color: #cbd5e1;
}

.cookie-consent-text a {
    color: #2b5f82;
    text-decoration: underline;
    font-weight: 600;
}

.dark .cookie-consent-text a {
    color: #d4af37;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.cookie-btn-accept {
    background-color: #0f2a44;
    color: #ffffff;
}

.dark .cookie-btn-accept {
    background-color: #d4af37;
    color: #0f2a44;
}

.cookie-btn-accept:hover {
    background-color: #2b5f82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 95, 130, 0.2);
}

.dark .cookie-btn-accept:hover {
    background-color: #ffffff;
}

.cookie-btn-reject {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.dark .cookie-btn-reject {
    border-color: #334155;
    color: #94a3b8;
}

.cookie-btn-reject:hover {
    background-color: #f1f5f9;
}

.cookie-btn-configure {
    background-color: transparent;
    color: #2b5f82;
    font-weight: 600;
    text-decoration: underline;
}

.dark .cookie-btn-configure {
    color: #d4af37;
}

/* Modal Preferences */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 42, 68, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .cookie-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.dark .cookie-modal-header {
    border-bottom: 1px solid #334155;
}

.cookie-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0f2a44;
}

.dark .cookie-modal-title {
    color: #ffffff;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.cookie-category-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f2a44;
    margin-bottom: 0.25rem;
}

.dark .cookie-category-info h4 {
    color: #d4af37;
}

.cookie-category-info p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.dark .cookie-category-info p {
    color: #94a3b8;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

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

.dark .cookie-slider {
    background-color: #334155;
}

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

input:checked + .cookie-slider {
    background-color: #2b5f82;
}

.dark input:checked + .cookie-slider {
    background-color: #d4af37;
}

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

input:disabled + .cookie-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* Mobile Adjustments */
@media (min-width: 768px) {
    .cookie-consent-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 4rem;
    }
    
    .cookie-consent-text {
        text-align: left;
    }
    
    .cookie-consent-actions {
        width: auto;
    }
}
