﻿/* =====================================================
   VODD Cookie Consent Banner
   Global standard (GDPR / CCPA / PDPB compliant)
   ===================================================== */

#vodd-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #131312;
    border-top: 1px solid rgba(134, 141, 110, 0.35);
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.45);
}
#vodd-cookie-banner.vodd-cookie-visible {
    transform: translateY(0);
}

.vodd-cookie-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
}

.vodd-cookie-text {
    min-width: 0;
}

.vodd-cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #a0a09b;
    letter-spacing: 0.01em;
}

.vodd-cookie-text p strong {
    color: #d8d8d4;
    font-weight: 600;
}

.vodd-cookie-text a {
    color: #868D6E;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
.vodd-cookie-text a:hover {
    color: #d8d8d4;
}

/* ---- Action buttons row ---- */
.vodd-cookie-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

/* Reset all button base styles to avoid inheritance artifacts */
.vodd-cookie-actions button,
#vodd-cookie-modal button {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}

/* Primary: Accept All */
.vodd-cookie-btn-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #868D6E;
    color: #131312;
    border: 1px solid #868D6E;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.vodd-cookie-btn-accept:hover {
    background: #d8d8d4;
    border-color: #d8d8d4;
    color: #131312;
}

/* Secondary: Reject */
.vodd-cookie-btn-reject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #a0a09b;
    border: 1px solid rgba(134,141,110,0.45);
    border-left: none;
    padding: 12px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.vodd-cookie-btn-reject:hover {
    border-color: rgba(134,141,110,0.9);
    color: #d8d8d4;
    background: rgba(134,141,110,0.08);
}

/* Separator between primary and reject */
.vodd-cookie-btn-reject + .vodd-cookie-btn-prefs {
    margin-left: 20px;
}

/* Tertiary: Preferences — plain text link style */
.vodd-cookie-btn-prefs {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #5a5a57;
    border: none;
    padding: 12px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.vodd-cookie-btn-prefs::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}
.vodd-cookie-btn-prefs:hover {
    color: #d8d8d4;
}

/* =====================================================
   Cookie Preferences Modal
   ===================================================== */

#vodd-cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(13,13,12,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#vodd-cookie-modal.vodd-modal-open {
    display: flex;
}

.vodd-modal-box {
    background: #1a1a19;
    border: 1px solid rgba(134,141,110,0.25);
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: voddModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes voddModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.vodd-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #787875;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px 8px;
    text-decoration: none;
}
.vodd-modal-close:hover { color: #d8d8d4; }

.vodd-modal-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: #868D6E;
    margin-bottom: 6px;
}

.vodd-modal-box h2 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #d8d8d4;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.vodd-modal-box > p {
    font-size: 13px;
    color: #787875;
    line-height: 1.65;
    margin: 0 0 28px;
}

.vodd-modal-box > p a {
    color: #868D6E;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Category items */
.vodd-cookie-category {
    border-top: 1px solid rgba(134,141,110,0.15);
    padding: 18px 0;
}
.vodd-cookie-category:last-of-type {
    border-bottom: 1px solid rgba(134,141,110,0.15);
    margin-bottom: 28px;
}

.vodd-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.vodd-category-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #d8d8d4;
    letter-spacing: 0.01em;
}

.vodd-category-desc {
    font-size: 12px;
    color: #787875;
    line-height: 1.6;
    margin: 0;
}

/* Toggle switch */
.vodd-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}
.vodd-toggle input { opacity: 0; width: 0; height: 0; }

.vodd-toggle-slider {
    position: absolute;
    inset: 0;
    background: #2d2d2d;
    border: 1px solid rgba(134,141,110,0.3);
    cursor: pointer;
    transition: 0.3s ease;
    border-radius: 24px;
}
.vodd-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #787875;
    border-radius: 50%;
    transition: 0.3s ease;
}
.vodd-toggle input:checked + .vodd-toggle-slider {
    background: #868D6E;
    border-color: #868D6E;
}
.vodd-toggle input:checked + .vodd-toggle-slider:before {
    transform: translateX(18px);
    background: #131312;
}
.vodd-toggle input:disabled + .vodd-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal footer buttons */
.vodd-modal-footer {
    display: flex;
    gap: 0;
}
.vodd-modal-footer .vodd-cookie-btn-accept {
    flex: 1;
    justify-content: center;
}
.vodd-modal-footer .vodd-cookie-btn-reject {
    flex: 1;
    justify-content: center;
    border-left: none;
}

/* =====================================================
   Floating cookie revoke button
   ===================================================== */

#vodd-cookie-revoke {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    background: #1a1a19;
    border: 1px solid rgba(134,141,110,0.45);
    color: #868D6E;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0;
}
#vodd-cookie-revoke:hover {
    background: #868D6E;
    color: #131312;
    transform: scale(1.1);
}
#vodd-cookie-revoke.vodd-revoke-visible {
    display: flex;
}
#vodd-cookie-revoke svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
    .vodd-cookie-inner {
        grid-template-columns: 1fr;
        padding: 20px 24px;
        gap: 16px;
    }
    .vodd-cookie-actions {
        width: 100%;
    }
    .vodd-cookie-btn-accept {
        flex: 1;
    }
    .vodd-cookie-btn-reject {
        flex: 1;
    }
    .vodd-cookie-btn-prefs {
        margin-left: 12px;
        padding: 12px 6px;
        font-size: 10px;
    }
    .vodd-cookie-btn-reject + .vodd-cookie-btn-prefs {
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .vodd-cookie-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .vodd-cookie-btn-accept,
    .vodd-cookie-btn-reject {
        flex: 1;
        min-width: 130px;
    }
    .vodd-cookie-btn-reject {
        border-left: 1px solid rgba(134,141,110,0.45);
    }
    .vodd-cookie-btn-prefs {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding: 8px 0;
    }
    .vodd-cookie-btn-prefs::after {
        left: 0;
        right: 0;
    }
    .vodd-modal-box {
        padding: 28px 20px;
    }
    .vodd-modal-footer {
        flex-direction: column;
    }
    .vodd-modal-footer .vodd-cookie-btn-reject {
        border-left: 1px solid rgba(134,141,110,0.45);
        border-top: none;
    }
}
