/* ===================================
   Cookie Consent Modal Styles
   =================================== */

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Hidden state for lazy loading */
.cookie-modal-overlay.cookie-modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.cookie-modal-overlay.cookie-modal-hidden .cookie-modal {
    transform: translateY(100%) scale(0.95);
    opacity: 0;
}

/* Visible state with parallax animation */
.cookie-modal-overlay.cookie-modal-visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-overlay.cookie-modal-visible .cookie-modal {
    animation: parallaxSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Parallax slide up animation */
@keyframes parallaxSlideUp {
    0% {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-modal {
    background: white;
    border-radius: 12px 12px 0 0;
    max-width: 1200px;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 0;
    transform: translateY(100%) scale(0.95);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

/* Tabs */
.cookie-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.cookie-tab {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #25333c;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cookie-tab:hover {
    background: #f1f5f9;
    color: #334155;
}

.cookie-tab.active {
    color: #020d14;
    border-bottom-color: #020d14;
    background: white;
}

/* Content Area */
.cookie-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.cookie-tab-content {
    display: none;
}

.cookie-tab-content.active {
    display: block;
}

/* Consent Tab */
.consent-intro {
    margin-bottom: 24px;
}

.consent-intro p {
    color: #25333c;
    font-size: 14px;
    line-height: 1.5;
}

.consent-toggles {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.consent-toggle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.consent-toggle-item span {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    text-align: center;
}

.consent-links {
    text-align: left;
}

.show-details-link {
    color: #020d14;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.show-details-link:hover {
    text-decoration: underline;
}

.show-details-link::after {
    content: '›';
    font-size: 18px;
    font-weight: bold;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.cookie-category-description {
    color: #25333c;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: #0f172a;
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .toggle-slider {
    background-color: #0f172a;
    opacity: 1;
    cursor: not-allowed;
}

/* Unclassified section */
.cookie-unclassified {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* About Tab */
.about-content p {
    margin-bottom: 16px;
    color: #25333c;
    font-size: 14px;
    line-height: 1.5;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.cookie-link {
    color: #020d14;
    font-weight: 600;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}


/* Action Buttons */
.cookie-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px;
    border-top: 2px solid #e2e8f0;
    background: #f8fafc;
    justify-content: center;
}

.btn-cookie-primary,
.btn-cookie-secondary {
    flex: 1;
    max-width: 275px;
    padding: 14px 24px;
    border: 2px solid #0f172a;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-primary {
    background: #0f172a;
    color: white;
}

.btn-cookie-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cookie-secondary {
    background: white;
    color: #0f172a;
}

.btn-cookie-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-modal {
        max-height: 500px;
        border-radius: 16px 16px 0 0;
    }

    .cookie-tabs {
        flex-wrap: wrap;
    }

    .cookie-tab {
        padding: 14px 16px;
        font-size: 14px;
    }

    .cookie-content {
        padding: 20px;
    }

    .consent-toggles {
        justify-content: space-around;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-actions {
        flex-direction: column;
        padding: 20px;
    }

    .btn-cookie-primary,
    .btn-cookie-secondary {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-modal {
        max-height: 500px;
    }

    .cookie-content {
        padding: 16px;
    }

    .cookie-tab {
        padding: 12px 10px;
        font-size: 13px;
    }

    .consent-toggles {
        flex-direction: column;
        gap: 12px;
    }

    .consent-toggle-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .cookie-category-header h3 {
        font-size: 15px;
    }

    .cookie-category-description {
        font-size: 13px;
    }
}

/* Scrollbar Styling for Content Area */
.cookie-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.cookie-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cookie-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

