/**
 * IOVODN Pictures — Cookie Consent & Privacy UI Styling
 * Minimal, Quiet Luxury Aesthetic — Understated & Non-Intrusive
 */

/* ── 1. MINIMAL BANNER WRAPPER ───────────────────────────────────── */
.iovodn-cc-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 30px);
    width: calc(100% - 32px);
    max-width: 840px;
    z-index: 999999;
    background: rgba(8, 12, 16, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(30, 190, 165, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #F2F7F9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.iovodn-cc-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.iovodn-cc-banner-inner {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ── 2. BANNER CONTENT ───────────────────────────────────────────── */
.iovodn-cc-banner-content {
    flex: 1 1 auto;
}

.iovodn-cc-banner-text {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #C0CCD2;
    margin: 0;
}

.iovodn-cc-link {
    color: #1EBEA5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.iovodn-cc-link:hover,
.iovodn-cc-link:focus-visible {
    color: #20E3C7;
}

/* ── 3. BUTTONS & ACTIONS ────────────────────────────────────────── */
.iovodn-cc-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.iovodn-cc-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    outline: none;
    border: none;
    text-decoration: none;
}

.iovodn-cc-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(30, 190, 165, 0.5);
}

/* Accept All — Brand Accent */
.iovodn-cc-btn-accept {
    background: #1EBEA5;
    color: #05080A;
}

.iovodn-cc-btn-accept:hover {
    background: #20E3C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 190, 165, 0.3);
}

/* Decline / Reject */
.iovodn-cc-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    color: #AEBAC0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.iovodn-cc-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F2F7F9;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Preferences */
.iovodn-cc-btn-settings {
    background: transparent;
    color: #8A99A2;
    border: 1px solid transparent;
}

.iovodn-cc-btn-settings:hover {
    color: #F2F7F9;
    background: rgba(255, 255, 255, 0.05);
}

.iovodn-cc-btn-save {
    background: #F4B23E;
    color: #05080A;
}

.iovodn-cc-btn-save:hover {
    background: #ffc457;
    transform: translateY(-1px);
}

/* ── 4. PREFERENCES MODAL DIALOG ─────────────────────────────────── */
.iovodn-cc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 10, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.iovodn-cc-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.iovodn-cc-modal-open {
    overflow: hidden !important;
}

.iovodn-cc-modal-dialog {
    background: #0B1015;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    color: #F2F7F9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.iovodn-cc-modal-backdrop.active .iovodn-cc-modal-dialog {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.iovodn-cc-modal-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: rgba(14, 20, 26, 0.5);
}

.iovodn-cc-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F2F7F9;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.iovodn-cc-modal-desc {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #94A3B8;
    margin: 0;
}

.iovodn-cc-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.iovodn-cc-modal-close:hover,
.iovodn-cc-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* Modal Body */
.iovodn-cc-modal-body {
    padding: 18px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iovodn-cc-modal-body::-webkit-scrollbar {
    width: 5px;
}
.iovodn-cc-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.iovodn-cc-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Category Card */
.iovodn-cc-cat-card {
    background: rgba(16, 23, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 18px;
    transition: background 0.2s ease;
}

.iovodn-cc-cat-card:hover {
    background: rgba(18, 26, 34, 0.7);
}

.iovodn-cc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.iovodn-cc-cat-info {
    flex: 1 1 auto;
}

.iovodn-cc-cat-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.iovodn-cc-cat-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #F2F7F9;
    margin: 0;
}

.iovodn-cc-status-pill {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1px 7px;
    border-radius: 100px;
}

.pill-always {
    color: #1EBEA5;
    background: rgba(30, 190, 165, 0.12);
}

.pill-active {
    color: #20E3C7;
    background: rgba(32, 227, 199, 0.12);
}

.pill-disabled {
    color: #718087;
    background: rgba(255, 255, 255, 0.05);
}

.iovodn-cc-cat-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94A3B8;
    margin: 0;
}

/* ── 5. TOGGLE SWITCH ────────────────────────────────────────────── */
.iovodn-cc-switch-wrap {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.iovodn-cc-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.iovodn-cc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.14);
    transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 30px;
}

.iovodn-cc-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #94A3B8;
    transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

.iovodn-cc-switch-input:checked + .iovodn-cc-switch-slider {
    background-color: #1EBEA5;
}

.iovodn-cc-switch-input:checked + .iovodn-cc-switch-slider:before {
    transform: translateX(20px);
    background-color: #05080A;
}

.iovodn-cc-switch-slider.disabled {
    cursor: not-allowed;
    background-color: rgba(30, 190, 165, 0.4);
}

.iovodn-cc-switch-slider.disabled:before {
    transform: translateX(20px);
    background-color: #05080A;
}

/* ── 6. MODAL FOOTER ─────────────────────────────────────────────── */
.iovodn-cc-modal-footer {
    padding: 16px 24px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(14, 20, 26, 0.5);
    flex-wrap: wrap;
}

.iovodn-cc-footer-note {
    font-size: 0.78rem;
    color: #718087;
}

.iovodn-cc-footer-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── 7. FOOTER BUTTON TRIGGERS ───────────────────────────────────── */
.footer-link-btn,
.footer-text-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: left;
    transition: color 0.2s ease;
}

.footer-nav-list li button.footer-link-btn {
    color: var(--muted, #718087);
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.footer-nav-list li button.footer-link-btn:hover {
    color: var(--logo-teal, #1EBEA5);
}

.footer-premium-bottom button.footer-text-btn {
    color: var(--muted, #718087);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline;
}

.footer-premium-bottom button.footer-text-btn:hover {
    color: var(--logo-teal, #1EBEA5);
}

/* ── 8. RESPONSIVE BREAKPOINTS ───────────────────────────────────── */
@media (max-width: 768px) {
    .iovodn-cc-banner {
        bottom: 14px;
        width: calc(100% - 24px);
    }

    .iovodn-cc-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .iovodn-cc-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .iovodn-cc-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: translate(0, 100%);
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .iovodn-cc-banner.visible {
        transform: translate(0, 0);
    }

    .iovodn-cc-banner-inner {
        padding: 12px 16px 16px 16px;
    }

    .iovodn-cc-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .iovodn-cc-btn-settings {
        grid-column: span 2;
        padding: 5px;
    }

    .iovodn-cc-modal-dialog {
        max-height: 90vh;
    }

    .iovodn-cc-modal-header {
        padding: 16px 18px 12px 18px;
    }

    .iovodn-cc-modal-body {
        padding: 12px 18px;
    }

    .iovodn-cc-modal-footer {
        padding: 14px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .iovodn-cc-footer-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}
