/* ==========================================================================
   COOKIE CONSENT - Two Step System
   ========================================================================== */

/* ==========================================================================
   STEP 1: BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a1a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 30px;
    gap: 20px;
}

.cookie-banner__text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc1212;
    flex-shrink: 0;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    font-family: 'Roboto_Condensed', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: #cc1212;
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: #e01515;
    transform: translateY(-1px);
}

.cookie-banner__btn--customize {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
}

.cookie-banner__btn--customize:hover {
    border-color: #cc1212;
    color: #cc1212;
    background: transparent;
}

/* ==========================================================================
   STEP 2: MODAL
   ========================================================================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal.fade-in {
    opacity: 1;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
}

.cookie-modal__dialog {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal.fade-in .cookie-modal__dialog {
    transform: translateY(0);
}

.cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 1;
}

.cookie-modal__close:hover {
    color: #fff;
}

.cookie-modal__title {
    font-family: 'BebasNeue', 'Arial Narrow', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 24px 24px 0;
    margin: 0;
}

.cookie-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Cookie Category */
.cookie-category {
    border: 1px solid #333;
    margin-bottom: 12px;
    background: #222;
}

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

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-category__header:hover {
    background: #2a2a2a;
}

.cookie-category__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category__expand {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-category__expand:hover {
    color: #fff;
}

.cookie-category__expand svg {
    transition: transform 0.3s ease;
}

.cookie-category.expanded .cookie-category__expand svg {
    transform: rotate(180deg);
}

.cookie-category__title {
    font-family: 'Roboto_Condensed', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cookie-category__badge {
    background: #444;
    color: #999;
    font-family: 'Roboto_Condensed', 'Arial Narrow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
}

.cookie-category__content {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #333;
}

.cookie-category.expanded .cookie-category__content {
    display: block;
}

.cookie-category__content p {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 0;
}

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

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

.cookie-toggle__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #444;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: #cc1212;
}

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

/* Locked Toggle (Essential) */
.cookie-toggle--locked {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-toggle--locked .cookie-toggle__slider {
    background: #666;
}

.cookie-toggle--locked .cookie-toggle__slider::before {
    transform: translateX(20px);
}

/* Footer */
.cookie-modal__footer {
    padding: 16px 24px 24px;
}

.cookie-modal__btn {
    width: 100%;
    font-family: 'Roboto_Condensed', 'Arial Narrow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 24px;
    background: #cc1212;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-modal__btn:hover {
    background: #e01515;
    transform: translateY(-1px);
}

/* ==========================================================================
   Footer Cookie Settings Link
   ========================================================================== */
.footer__cookie-settings {
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer__cookie-settings:hover {
    color: #cc1212;
}

/* ==========================================================================
   RESPONSIVE - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    /* Banner Mobile */
    .cookie-banner__content {
        flex-direction: column;
        padding: 16px 20px;
        gap: 16px;
    }

    .cookie-banner__text {
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Modal Mobile - Bottom Sheet Style */
    .cookie-modal {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-modal__dialog {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }

    .cookie-modal__title {
        padding: 20px 20px 0;
        font-size: 20px;
    }

    .cookie-modal__body {
        padding: 16px 20px;
    }

    .cookie-category__header {
        padding: 12px 14px;
    }

    .cookie-category__content {
        padding: 0 14px 14px;
    }

    .cookie-modal__footer {
        padding: 16px 20px 24px;
    }
}

@media (max-width: 480px) {
    .cookie-banner__text {
        font-size: 13px;
    }

    .cookie-banner__btn {
        font-size: 12px;
        padding: 12px 20px;
    }

    .cookie-category__title {
        font-size: 12px;
    }

    .cookie-toggle {
        width: 40px;
        height: 22px;
    }

    .cookie-toggle__slider::before {
        height: 16px;
        width: 16px;
    }

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

    .cookie-toggle--locked .cookie-toggle__slider::before {
        transform: translateX(18px);
    }
}
