/* ============================================
   Cookie Banner Styles - GDPR Consent
   ============================================ */

/* --- Container --- */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-family: 'Archivo', sans-serif;
}

#cookieBanner.cookie-visible {
    transform: translateY(0);
    pointer-events: auto;
}

#cookieBanner.cookie-hiding {
    transform: translateY(100%);
    pointer-events: none;
}

/* --- Inner wrapper --- */

.cookie-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 30px;
    background: rgba(15, 15, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 240, 235, 0.08);
}

/* --- Main section --- */

.cookie-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-text {
    flex: 1;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245, 240, 235, 0.6);
    margin: 0;
}

/* --- Button group --- */

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

/* --- Buttons (shared) --- */

.cookie-btn {
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Accept */
.cookie-btn.cookie-accept {
    background: #f5f0eb;
    color: #0a0a0a;
}

.cookie-btn.cookie-accept:hover {
    background: rgba(245, 240, 235, 0.85);
}

/* Reject */
.cookie-btn.cookie-reject {
    background: transparent;
    border: 1px solid rgba(245, 240, 235, 0.2);
    color: rgba(245, 240, 235, 0.5);
}

.cookie-btn.cookie-reject:hover {
    border-color: rgba(245, 240, 235, 0.4);
    color: rgba(245, 240, 235, 0.75);
}

/* Customize trigger */
.cookie-btn.cookie-settings-btn {
    background: transparent;
    border: none;
    color: rgba(245, 240, 235, 0.35);
    padding: 10px 12px;
    text-decoration: none;
}

.cookie-btn.cookie-settings-btn:hover {
    color: rgba(245, 240, 235, 0.6);
    text-decoration: underline;
}

/* Save */
.cookie-btn.cookie-save {
    background: #f5f0eb;
    color: #0a0a0a;
    margin-top: 4px;
}

.cookie-btn.cookie-save:hover {
    background: rgba(245, 240, 235, 0.85);
}

/* --- Customize panel --- */

.cookie-customize {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
    opacity: 0;
}

.cookie-customize.cookie-customize-open {
    max-height: 400px;
    opacity: 1;
}

/* --- Option rows --- */

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(245, 240, 235, 0.06);
}

.cookie-option:first-child {
    margin-top: 16px;
    border-top: 1px solid rgba(245, 240, 235, 0.06);
}

.cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cookie-option-name {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.75);
}

.cookie-option-desc {
    font-size: 12px;
    font-weight: 300;
    color: rgba(245, 240, 235, 0.4);
}

/* --- Toggle switch (iOS-style) --- */

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 240, 235, 0.1);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #f5f0eb;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* On state */
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: rgba(245, 240, 235, 0.6);
}

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

/* Disabled state (necessary cookies) */
.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: rgba(245, 240, 235, 0.6);
    opacity: 0.5;
    cursor: default;
}

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

/* --- Customize actions --- */

.cookie-customize-actions {
    padding-top: 14px;
    display: flex;
    justify-content: flex-start;
}

/* --- Privacy link --- */

.cookie-privacy-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 11px;
    font-weight: 300;
    color: rgba(245, 240, 235, 0.3);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-privacy-link:hover {
    color: rgba(245, 240, 235, 0.55);
}

/* ============================================
   Responsive - Mobile (<=768px)
   ============================================ */

@media (max-width: 768px) {
    .cookie-inner {
        padding: 20px 20px;
    }

    .cookie-main {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

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

    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .cookie-btn.cookie-settings-btn {
        padding: 8px 12px;
    }

    .cookie-option-name {
        font-size: 11px;
    }

    .cookie-option-desc {
        font-size: 11px;
    }
}
