/**
 * NTI Cookie Consent Banner - Luxury Theme
 *
 * Brand Colors:
 * - Gold: #C5A059
 * - Navy: #050628
 * - Beige: #f0efeb
 * - White: #FFFFFF
 *
 * Typography:
 * - Headings: Playfair Display (serif)
 * - Body: Inter (sans-serif)
 */

/* ============================================
   MAIN BANNER CONTAINER
   ============================================ */

#nti-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(5, 6, 40, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 2px solid #C5A059;

    box-shadow: 0 -8px 32px 0 rgba(31, 38, 135, 0.2);

    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#nti-cookie-banner.show {
    transform: translateY(0);
}

#nti-cookie-banner.hide {
    transform: translateY(100%);
}

.nti-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    position: relative;
}

/* ============================================
   BANNER TEXT CONTENT
   ============================================ */

.nti-cookie-banner-text {
    margin-bottom: 1.5rem;
}

.nti-cookie-banner-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #C5A059;
    margin-bottom: 0.5rem;
}

.nti-cookie-banner-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.nti-cookie-banner-text a {
    color: #C5A059;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.nti-cookie-banner-text a:hover {
    opacity: 0.8;
}

/* ============================================
   BANNER BUTTONS
   ============================================ */

.nti-cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nti-cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    padding: 0.75rem 1.5rem;
    border-radius: 0.125rem;

    cursor: pointer;
    transition: all 0.3s ease;

    border: none;
    outline: none;
}

/* Accept All Button - Gold Gradient */
.nti-cookie-accept {
    background: linear-gradient(135deg, #C5A059 0%, #B08D45 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.nti-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 160, 89, 0.4);
}

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

/* Settings Button - Transparent with Border */
.nti-cookie-settings-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.4);
}

.nti-cookie-settings-btn:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.6);
}

/* Decline/Save Button */
.nti-cookie-save {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nti-cookie-save:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   SETTINGS PANEL
   ============================================ */

#nti-cookie-settings {
    display: none;
}

#nti-cookie-settings.show {
    display: block;
}

/* When settings are shown, hide initial buttons and show settings */
#nti-cookie-banner.settings-visible .nti-cookie-banner-buttons {
    display: none;
}

/* When settings are NOT shown, hide settings buttons */
#nti-cookie-banner:not(.settings-visible) .nti-cookie-settings-buttons {
    display: none;
}

/* When settings ARE shown, display settings buttons */
#nti-cookie-banner.settings-visible .nti-cookie-settings-buttons {
    display: flex !important;
}

/* On mobile, hide initial content when settings visible */
@media (max-width: 767px) {
    #nti-cookie-banner.settings-visible .nti-cookie-initial-content {
        display: none;
    }
}

@media (min-width: 768px) {
    /* On desktop, show settings in full width below */
    #nti-cookie-banner.settings-visible .nti-cookie-banner-content {
        flex-direction: column;
    }

    #nti-cookie-banner.settings-visible .nti-cookie-initial-content {
        display: flex;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    }
}

.nti-cookie-settings-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #C5A059;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nti-cookie-settings-title {
        font-size: 1.5rem;
        text-align: left;
    }
}

.nti-cookie-categories {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nti-cookie-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.nti-cookie-category {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.25rem;
    border-left: 3px solid rgba(197, 160, 89, 0.5);
    transition: all 0.3s ease;
}

.nti-cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #C5A059;
}

.nti-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.nti-cookie-category-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nti-cookie-category-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SETTINGS PANEL BUTTONS
   ============================================ */

.nti-cookie-settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .nti-cookie-settings-buttons {
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
    }

    .nti-cookie-settings-buttons .nti-cookie-btn {
        min-width: 200px;
    }
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */

.nti-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.nti-cookie-toggle input:checked + .nti-cookie-toggle-slider {
    background-color: #C5A059;
}

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

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

.nti-cookie-toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 768px) {
    .nti-cookie-banner-content {
        padding: 2rem 2rem;
    }

    .nti-cookie-initial-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nti-cookie-banner-text {
        flex: 1;
        margin-bottom: 0;
        margin-right: 2rem;
    }

    .nti-cookie-banner-buttons {
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .nti-cookie-banner-content {
        padding: 2.5rem 3rem;
    }

    .nti-cookie-banner-text h3 {
        font-size: 1.5rem;
    }

    .nti-cookie-banner-text p {
        font-size: 1rem;
    }

    .nti-cookie-btn {
        font-size: 0.875rem;
        padding: 0.875rem 2rem;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
    #nti-cookie-banner {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nti-cookie-banner-buttons {
        flex-direction: column;
    }

    .nti-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .nti-cookie-category {
        padding: 0.75rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.nti-cookie-btn:focus {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
}

.nti-cookie-toggle input:focus + .nti-cookie-toggle-slider {
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.4);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    #nti-cookie-banner,
    .nti-cookie-btn,
    .nti-cookie-toggle-slider,
    .nti-cookie-toggle-slider:before {
        transition: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    #nti-cookie-banner {
        display: none;
    }
}
