/*
 * Subtitle Translator — UI styles
 * Extracted from inline <style> blocks in functions.php (1.0.6).
 *
 * Components:
 *   1. GDPR cookie banner (#gdprCookieBanner)
 *   2. Scroll-to-top button (#nlScrollTop)
 *   3. Mobile nav safety-net overrides
 */

/* ================================================
   1. GDPR Cookie Banner
   ================================================ */
#gdprCookieBanner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999999; }
#gdprCookieBanner .gdpr-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); }
#gdprCookieBanner .gdpr-card {
    position: relative;
    max-width: 620px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    font-family: 'Inter', system-ui, sans-serif;
}
#gdprCookieBanner .gdpr-text { margin: 0 0 18px; font-size: .95rem; line-height: 1.55; color: #334155; }
#gdprCookieBanner .gdpr-actions { display: flex; gap: 12px; flex-wrap: wrap; }
#gdprCookieBanner .gdpr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background .2s, color .2s, border-color .2s;
}
#gdprCookieBanner .gdpr-btn-primary { background: #2563eb; color: #fff; }
#gdprCookieBanner .gdpr-btn-primary:hover { background: #1d4ed8; }
#gdprCookieBanner .gdpr-btn-secondary { background: transparent; color: #2563eb; border: 1.5px solid #2563eb; }
#gdprCookieBanner .gdpr-btn-secondary:hover { background: #eff6ff; }
@media (max-width: 640px) {
    #gdprCookieBanner .gdpr-card { margin: 0 12px 12px; padding: 18px 20px; }
    #gdprCookieBanner .gdpr-actions { flex-direction: column; }
    #gdprCookieBanner .gdpr-btn { width: 100%; justify-content: center; }
}

/* ================================================
   2. Scroll-to-top button
   ================================================ */
#nlScrollTop {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    z-index: 99999;
    line-height: 1;
    padding: 0;
    margin: 0;
}
#nlScrollTop:hover { background: #1d4ed8; transform: translateY(-2px); }

/* ================================================
   3. Mobile overrides — safety net for #nlScrollTop + nav
   ================================================ */
@media (max-width: 768px) {
    #nlScrollTop { bottom: 5rem; right: 1rem; width: 44px; height: 44px; }
    .nav-toggle { display: flex !important; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        z-index: 200;
    }
    .site-nav.open { display: flex !important; }
    .site-nav a { padding: 12px 20px; border-bottom: 1px solid #e2e8f0; margin: 0; font-size: 1rem; }
    .site-header .container { position: relative; }
}
