/* ================================================
   HENDOSHI - PAGES - COOKIES
   ================================================
   
   Purpose: Cookie settings and preferences page styling
   
   Contains:
   - Cookie settings cards
   - Preference toggles
   - Cookie policy display
   - Settings form layouts
   
   Dependencies: variables.css, ui-components.css
   Load Order: Load after foundation and components
   ================================================ */

/* ===== COOKIE_SETTINGS ===== */

.cookie-settings-card {
    overflow: hidden;
    border: 2px solid rgba(255, 20, 147, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.1);
}

.cookie-settings-card .card-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 20, 147, 0.2);
    background: rgba(255, 20, 147, 0.1);
}

.cookie-settings-card .card-header h1 {
    color: var(--neon-pink);
    font-weight: 700;
}

.cookie-settings-card .card-body {
    padding: 2rem;
}

.cookie-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--neon-pink);
    border-radius: var(--border-radius-glass);
    background: rgba(255, 255, 255, 0.02);
}

.cookie-intro p {
    margin-bottom: 0.5rem;
    color: var(--off-white);
    line-height: 1.6;
}

.cookie-intro p:last-child {
    margin-bottom: 0;
}

.cookie-category-card {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 20, 147, 0.1);
    border-radius: var(--border-radius-glass);
    background: rgba(0, 0, 0, 0.2);
}

.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 20, 147, 0.1);
    background: rgba(255, 20, 147, 0.05);
}

.category-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--neon-pink);
    font-size: 1.2rem;
}

.category-info p {
    margin: 0;
    color: var(--off-white);
    font-size: 0.95rem;
    line-height: 1.5;
}

.required-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: var(--neon-pink);
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-details {
    padding: 1.5rem;
}

.category-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.category-details li {
    margin-bottom: 0.5rem;
    color: var(--off-white);
    line-height: 1.4;
}

.category-details li:last-child {
    margin-bottom: 0;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 20, 147, 0.2);
}

.cookie-toggle {
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 24px;
    margin-top: 0.25rem;
}

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

.cookie-toggle-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--neon-pink);
}

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

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

@media (max-width: 768px) {
    .cookie-settings-card .card-header,
    .cookie-settings-card .card-body {
        padding: 1.5rem;
    }

    .category-header {
        align-items: flex-start;
        gap: 1rem;
    }

    .category-header,
    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}

/* ===== COOKIE_CONSENT ===== */

.cookie-consent-banner {
    z-index: 9999;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    border-top: 2px solid var(--neon-pink);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 -4px 20px rgba(255, 20, 147, 0.3);
    animation: slideUp 0.5s ease-out;
}

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

.cookie-consent-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--neon-pink);
    font-size: 1.1rem;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--off-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-consent-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.cookie-banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem;
    border: none;
    background: none;
    color: var(--off-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal {
    display: flex;
    z-index: 10000;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.cookie-modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--neon-pink);
    border-radius: 15px;
    background: var(--black);
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.3);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--neon-pink);
}

.cookie-modal-close {
    padding: 0.25rem;
    border: none;
    background: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category h5 {
    margin: 0 0 0.5rem 0;
    color: var(--neon-pink);
}

.cookie-category p {
    margin: 0;
    color: var(--off-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 20, 147, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* @keyframes fadeIn - defined in animations.css */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-consent-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ================================================
   LIGHT MODE OVERRIDES
   ================================================ */

:root.light-mode .cookie-settings-card,
:root.light-mode .cookie-intro {
    background: rgba(0, 0, 0, 0.02);
}

:root.light-mode .cookie-category-card {
    background: rgba(255, 255, 255, 0.5);
}

:root.light-mode .cookie-toggle-slider {
    background: rgba(0, 0, 0, 0.2);
}

:root.light-mode .cookie-consent-banner,
:root.light-mode .cookie-modal {
    background: rgba(255, 255, 255, 0.95);
}

:root.light-mode .cookie-category {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
