/* Theme Variables - Updated to match main.scss */
:root {
    --accent-color: #F206F1;
    --accent-secondary: #682BEB;
    --accent-hover: #F200FF;
    --background-dark: #0E011C;
    --background-light: #18052D;
    --background-card: #1a0a2e;
    --text-dark: #fff;
    --text-light: #fff;
    --text-muted: #9a9a9a;
    --border-radius: 16px;
    --border-radius-small: 8px;
    --shadow: 0 8px 32px rgba(242, 6, 241, 0.12);
    --shadow-hover: 0 12px 40px rgba(242, 6, 241, 0.18);
    --gradient-primary: linear-gradient(135deg, #F206F1 0%, #682BEB 100%);
    --gradient-secondary: linear-gradient(135deg, #18052D 0%, #1a0a2e 100%);
}

/* Keyframes */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Popup Container */
.cookie-popup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 1, 28, 0.95);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999999;
    padding: 20px;
    box-sizing: border-box;
    animation: fade-in 0.3s ease-out;
}

/* Popup Modal */
.cookie-popup-container .cookie-popup {
    background: var(--background-light);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    animation: slide-up 0.3s ease-out;
    border: 1px solid rgba(242, 6, 241, 0.2);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    box-sizing: border-box;
}

.cookie-popup-container .cookie-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
}

.cookie-popup-container .cookie-popup:hover {
    box-shadow: var(--shadow-hover);
}

/* Cookie Panel */
.cookie-panel {
    padding: 24px 32px 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--background-light);
    border-bottom: 1px solid rgba(242, 6, 241, 0.15);
    position: relative;
}

.cookie-popup .cookie-panel ul {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    justify-content: center;
    border-bottom: none;
    width: 100%;
}

.cookie-popup .cookie-panel ul li.consent-panel {
    display: none;
}

.cookie-popup .cookie-panel ul li.details-panel {
    flex: unset;
    cursor: pointer;
    line-height: 1.2;
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    background: var(--gradient-primary);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 12px;
    font-size: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(242, 6, 241, 0.2);
    margin-bottom: 0;
}

.cookie-popup .cookie-panel ul li.details-panel:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 6, 241, 0.3);
}

.cookie-popup .cookie-panel ul li.details-panel.active {
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(242, 6, 241, 0.3);
}

.cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
    font-size: 24px;
    margin-right: 0;
    color: #fff;
    transition: transform 0.2s ease;
    display: inline-block;
}

.cookie-popup .cookie-panel ul li.details-panel:hover .cookie-icon {
    transform: scale(1.05);
}

.cookie-popup .cookie-panel ul li.details-panel .subtitle {
    display: none;
}

/* Cookie Content Area */
.cookie-content.cookie-mid {
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
}

/* Cookie Categories Display */
.cookie-cookies-display {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    scroll-behavior: smooth;
    flex-grow: 1;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(24, 5, 45, 0.6);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(242, 6, 241, 0.1);
    position: relative;
}

.cookie-cookies-display::-webkit-scrollbar {
    width: 6px;
    background: transparent;
    border-radius: 6px;
}

.cookie-cookies-display::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 6px;
}

.cookie-cookies-display > p {
    margin-bottom: 20px;
    
    
    line-height: 1.5;
    text-align: left;
    padding: 12px 16px;
    background: rgba(242, 6, 241, 0.05);
    border-radius: var(--border-radius-small);
    border-left: 3px solid var(--accent-color);
}

.cookie-category {
    background: rgba(24, 5, 45, 0.8);
    border-radius: var(--border-radius-small);
    margin-bottom: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(242, 6, 241, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.cookie-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cookie-category:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(242, 6, 241, 0.1);
    border-color: rgba(242, 6, 241, 0.3);
}

.cookie-category:hover::before {
    opacity: 1;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main > div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
    margin: 0;
    color: var(--text-dark);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Checkbox Styles */
.cookie-cookies-display .cookie-category .choose {
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    position: relative;
    background: rgba(24, 5, 45, 0.8);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(242, 6, 241, 0.15);
}

.cookie-cookies-display .cookie-category .choose:hover:not(.always-on) {
    border-color: var(--accent-secondary);
    box-shadow: 0 2px 6px rgba(242, 6, 241, 0.25);
    transform: scale(1.02);
}

.cookie-cookies-display .cookie-category .choose.active,
.cookie-cookies-display .cookie-category .choose.always-on {
    border-color: var(--accent-secondary);
    background: var(--gradient-primary);
    color: #fff;
}

.cookie-cookies-display .cookie-category .choose.active::after,
.cookie-cookies-display .cookie-category .choose.always-on::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Button Area */
.cookie-decide {
    width: 100%;
    padding: 24px 32px;
    background: rgba(24, 5, 45, 0.8);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    border-top: 1px solid rgba(242, 6, 241, 0.15);
}

.cookie-decide .pre-cookie-box {
    padding: 0;
    color: var(--text-light);
    line-height: 1.5;
    display: none;
}

.cookie-decide .pre-cookie-box h4 {
    color: var(--accent-secondary);
    margin-bottom: 8px;
    font-size: 16px;
}

.cookie-decide .pre-cookie-box p {
    margin-bottom: 8px;
}

.cookie-decide .pre-cookie-box p:last-child {
    margin-bottom: 0;
}

.cookie-decide .pre-cookie-box a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid var(--accent-color);
}

.cookie-decide .pre-cookie-box a:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.cookie-decide ul {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    flex-direction: row;
}

.cookie-decide ul li.allow-selection {
    display: none;
}

/* Buttons */
.cookie-decide ul li button,
.cookie-popup .cookie-panel ul li.details-panel {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--border-radius-small);
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(242, 6, 241, 0.2);
    transition: background 0.2s, box-shadow 0.2s;
}

.cookie-decide ul li button:hover {
    background: linear-gradient(135deg, #682BEB 0%, #F206F1 100%);
    box-shadow: 0 4px 12px rgba(242, 6, 241, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cookie-popup-container {
        padding: 15px;
    }
    
    .cookie-popup-container .cookie-popup {
        max-width: 100%;
    }
    
    .cookie-panel {
        padding: 20px 20px 0;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel {
        font-size: 14px;
        gap: 8px;
        padding: 10px 18px;
        margin-bottom: 0;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
        font-size: 20px;
    }
    
    .cookie-content.cookie-mid {
        padding: 0 20px;
    }
    
    .cookie-cookies-display {
        max-height: 300px;
        padding: 16px;
    }
    
    .cookie-cookies-display > p {
        margin-bottom: 16px;
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .cookie-category {
        padding: 14px 16px;
    }
    
    .cookie-cookies-display .cookie-category .data .data-resume .cat-main .cookie-cat-name {
        font-size: 14px;
    }
    
    .cookie-cookies-display .cookie-category .cat-describe {
        font-size: 14px;
    }
    
    .cookie-cookies-display .cookie-category .choose {
        font-size: 14px;
        width: 24px;
        height: 24px;
    }
    
    .cookie-decide {
        gap: 12px;
        padding: 20px 20px;
    }
    
    .cookie-decide ul {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-panel {
        padding: 16px 16px 0;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel {
        font-size: 12px;
        gap: 6px;
        padding: 8px 14px;
        margin-bottom: 0;
    }
    
    .cookie-popup .cookie-panel ul li.details-panel .cookie-icon {
        font-size: 18px;
    }
    
    .cookie-content.cookie-mid {
        padding: 0 16px;
    }
    
    .cookie-cookies-display {
        max-height: 250px;
        padding: 12px;
    }
    
    .cookie-category {
        padding: 12px 14px;
    }
    
    .cookie-decide {
        padding: 16px 16px;
    }
    
    .cookie-decide ul {
        flex-direction: column;
        gap: 10px;
    }
}