/* cookie-consent.css */
@import url('/fonts.css');
@import url('/tailwind.css');
@import url('/app/global.css');

html, body {
  font-family: var(--font-inter);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.cookie-consent-banner {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    scroll-margin: 0;
    scroll-behavior: auto;
}

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

/* Ensure the banner doesn't cause scroll jumping */
.cookie-consent-banner * {
    scroll-margin: 0;
}

.cookie-consent-banner-slide {
    position: sticky;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

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

/* If you prefer the slide-in version, also adjust the content layout */
.cookie-consent-banner-slide .cookie-consent-content {
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-banner-slide .cookie-consent-buttons {
    justify-content: space-between;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin-bottom: .5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.cookie-consent-btn.accept {
    background: #4CAF50;
    color: white;
    border-radius: .5rem;
}

.cookie-consent-btn.accept:hover {
    background: #45a049;
}

.cookie-consent-btn.decline {
    background: #f44336;
    color: white;
    border-radius: .5rem;
}

.cookie-consent-btn.decline:hover {
    background: #da190b;
}

.cookie-consent-btn.settings {
    background: #2196F3;
    color: white;
    border-radius: .5rem;
}

.cookie-consent-btn.settings:hover {
    background: #1976D2;
}

/* Cookie settings modal */
/* .cookie-settings-overlay {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
} */

.cookie-settings-overlay {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-overlay.show {
    display: flex;
}

body.cookie-modal-blur > *:not(.cookie-settings-overlay):not(.cookie-consent-banner) {
    filter: blur(5px);
}

.cookie-settings-overlay,
.cookie-consent-banner {
    filter: none !important;
}

/* Cookie Modal (Panel: Settings) */
.cookie-settings-modal {
    background: black;
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 90vw;
    max-width: 600px;
    max-height: 80vh;
    position: relative;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

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

.cookie-settings-modal h3 {
    margin: 0 0 1rem 0;
    color: white;
}

.cookie-setting-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-setting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-setting-name {
    font-weight: 600;
    color: white;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

.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: #4CAF50;
}

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

input:disabled + .cookie-slider {
    background-color: #4CAF50;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-setting-description {
    font-size: 14px;
    color: white;
    line-height: 1.4;
}

.cookie-settings-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-settings-buttons .cookie-consent-btn {
    min-width: 100px;
}

/* Add these missing features to your existing cookie-consent.css */

/* 1. SCREEN READER ACCESSIBILITY */
.gdpr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 2. BODY OVERFLOW CONTROL (prevent scrolling when modal is open) */
body.cookie-modal-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 4. BETTER CONTRAST FOR ACCESSIBILITY */
.cookie-consent-text p {
    opacity: 1; /* Changed from 0.9 for better readability */
}

/* 5. CLOSE BUTTON (X) FOR MODAL */
/* .cookie-settings-modal {
    position: relative;
} */

.cookie-settings-close {
    position: absolute;
    top: 1rem; /* Changed from 15px to 1rem for consistency */
    right: 1rem; /* Changed from 15px to 1rem for consistency */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white; /* Keep white for visibility */
    padding: 5px;
    line-height: 1;
    z-index: 1; /* Ensure it's above other content */
}

.cookie-settings-close:hover {
    color: #ccc;
}

/* 6. LOADING STATE */
.cookie-consent-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 7. COOKIE EXPIRY NOTICE */
.cookie-expiry-notice {
    font-size: 12px;
    color: white;
    margin-top: .5rem;
    font-style: italic;
}

/* 8. VENDOR INFORMATION */
.cookie-vendor-info {
    background: #191919;
    padding: 1rem;
    border-radius: 1rem;
    margin: 10px 0;
}

.cookie-vendor-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.cookie-vendor-info p {
    margin: 0;
    font-size: 13px;
    color: white;
}

/* 9. LEGITIMATE INTEREST SECTION */
.cookie-consent-legitimate-interest {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.cookie-consent-legitimate-interest p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

/* 10. ENHANCED MOBILE RESPONSIVENESS */
/* @media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-text h3 {
        font-size: 16px;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-consent-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .cookie-settings-modal {
        padding: 20px;
        margin: 10px;
    }
} */

/* 11. HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000;
        border-top: 2px solid #fff;
    }
    
    .cookie-consent-text p {
        opacity: 1;
    }
    
    .cookie-consent-btn {
        border: 2px solid currentColor;
    }
}

/* 12. REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-settings-overlay,
    .cookie-consent-btn,
    .cookie-slider {
        transition: none;
    }
}

/* 13. PRINT STYLES */
@media print {
    .cookie-consent-banner,
    .cookie-settings-overlay {
        display: none;
    }
}

/* Responsive Design */

/* Desktop | 1281px - 1440px  */
@media (max-width: 1280px) {
    /* No code needed */
}

/* Medium Laptop/Desktop | 1515px - 1920px */
@media (max-width: 1515px) {
    /* No code needed */
}

/* Small Laptop/Desktop | 1024px - 1280px */
@media (max-width: 1024px) {
    /* No code needed */
}

/* Tablet Portrait (Normal) | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
    
    .cookie-settings-modal {
        width: 85vw;
        padding: 1.5rem;
    }
}

/* Tablet Landscape */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
    .cookie-consent-banner {
        padding: 15px 20px;
    }
    
    .cookie-settings-modal {
        max-width: 550px;
    }
}

/* Mobile Large Portrait | 481px - 600px */
@media (min-width: 481px) and (max-width: 600px) and (orientation: portrait) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-text h3 {
        font-size: 18px;
        margin-bottom: 0.4rem;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 10px;
    }
    
    .cookie-settings-modal {
        width: 95vw;
        padding: 1.25rem;
        max-height: 85vh;
    }
    
    .cookie-expiry-notice {
        font-size: 11px;
    }
}

/* Mobile Small Portrait | up to 480px */
@media (max-width: 480px) and (orientation: portrait) {
    .cookie-consent-btn.accept {
        margin-bottom: 3.5rem;
    }
    .cookie-consent-banner {
        padding: 12px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-text h3 {
        font-size: 16px;
        margin-bottom: 0.3rem;
    }
    
    .cookie-consent-text p {
        font-size: 12px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
    
    .cookie-settings-modal {
        width: 95vw;
        padding: 1rem;
        max-height: 90vh;
    }
    
    .cookie-settings-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 20px;
    }
    
    .cookie-setting-item {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .cookie-setting-description {
        font-size: 12px;
    }
    
    .cookie-vendor-info {
        padding: 0.75rem;
    }
    
    .cookie-vendor-info h4 {
        font-size: 13px;
    }
    
    .cookie-vendor-info p {
        font-size: 11px;
    }
    
    .cookie-expiry-notice {
        font-size: 10px;
    }
}

/* Mobile Small Landscape | up to 950px */
@media (max-width: 950px) and (orientation: landscape) {
    .cookie-consent-banner {
        padding: 10px 15px;
    }
    
    .cookie-consent-content {
        gap: 10px;
    }
    
    .cookie-consent-text h3 {
        font-size: 14px;
        margin-bottom: 0.3rem;
    }
    
    .cookie-consent-text p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .cookie-consent-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .cookie-settings-modal {
        width: 90vw;
        max-width: 500px;
        max-height: 75vh;
        padding: 1rem;
    }
    
    .cookie-settings-modal h3 {
        font-size: 16px;
        margin-bottom: 0.75rem;
    }
    
    .cookie-setting-description {
        font-size: 11px;
    }
    
    .cookie-expiry-notice {
        font-size: 10px;
        margin-top: 0.3rem;
    }
}