/* ==========================================================================
   seo_base.css — Bootstrap-free shell for lead magnet SEO pages.
   Provides: body, nav, flash alerts, footer.
   All classes use seo-* namespace to avoid collisions with lm-* and Bootstrap.
   ========================================================================== */

/* ===== RESET ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* ===== BASE ================================================================= */
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #f5f9fc;
    background-color: #0d0d1a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: #a694ff; }
a:hover { color: #8476cc; }
img { max-width: 100%; height: auto; }
.seo-nav-brand img { height: 40px; width: auto; }

/* ===== NAV ================================================================== */
.seo-nav {
    background-color: #0d0d1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 50;
}
.seo-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
    max-width: 1320px;
    margin: 0 auto;
}

/* --- Hamburger toggler (mobile only) --- */
.seo-nav-toggler {
    order: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 8px;
}
.seo-nav-toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: opacity 0.15s;
}

/* --- Mobile verify button wrapper --- */
.seo-nav-mobile-verify {
    order: 2;
    flex-shrink: 0;
}

/* --- Brand / logo --- */
.seo-nav-brand {
    order: 3;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 0;
    margin-left: auto;
}

/* --- Collapse (nav items) --- */
.seo-nav-collapse {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 8px 0;
}
.seo-nav-collapse.open {
    display: flex;
}

/* --- Nav lists --- */
.seo-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.seo-nav-item { display: flex; align-items: center; }

/* --- Nav links --- */
.seo-nav-link {
    display: block;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}
.seo-nav-link:hover { color: #fff; }
.seo-nav-link-upgrade { color: #c97dff; font-weight: 600; }
.seo-nav-link-upgrade:hover { color: #e0a8ff; }

/* --- Dream count badge --- */
.seo-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #795eff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    flex-shrink: 0;
}

/* --- Profile dropdown --- */
.seo-nav-dropdown { position: relative; }
.seo-nav-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #1c2333;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    min-width: 180px;
    z-index: 200;
}
.seo-nav-dropdown-menu.open { display: block; }

/* On mobile, dropdown renders inline (not absolute-positioned) */
@media (max-width: 991px) {
    .seo-nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
}
@media (min-width: 992px) {
    .seo-nav-dropdown-menu { position: absolute; right: 0; top: 100%; }
}

.seo-nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}
.seo-nav-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.seo-nav-dropdown-divider {
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* --- Verify buttons --- */
.seo-btn-warn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    background: #ffc107;
    color: #212529;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    white-space: nowrap;
}
.seo-btn-warn-outline {
    background: transparent;
    border: 1px solid #ffc107;
    color: #ffc107;
}
.seo-btn-warn:hover, .seo-btn-warn-outline:hover { opacity: 0.85; }

/* ===== DESKTOP NAV OVERRIDES =============================================== */
@media (min-width: 992px) {
    .seo-nav-toggler    { display: none; }
    .seo-nav-mobile-verify { display: none; }

    .seo-nav-brand {
        order: 1;
        margin-left: 0;
        margin-right: 8px;
    }
    .seo-nav-collapse {
        order: 2;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        flex: 1;
        width: auto;
        padding: 0;
    }
    .seo-nav-list { flex-direction: row; align-items: center; }
    .seo-nav-list--left  { flex: 1; }
    .seo-nav-list--right { margin-left: auto; }
}

/* ===== CONTENT AREA ========================================================= */
.seo-content {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 24px;
}

.seo-alerts-wrapper {
    max-width: 860px;
    margin: 0 auto 8px;
    padding: 0 18px;
}

/* ===== FLASH ALERTS ========================================================= */
.seo-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    border: 1px solid transparent;
}
.seo-alert-info    { background: rgba(13, 110, 253, 0.15);  border-color: rgba(13, 110, 253, 0.3);  color: #cce0ff; }
.seo-alert-success { background: rgba(25, 135, 84, 0.15);   border-color: rgba(25, 135, 84, 0.3);   color: #b9f0d0; }
.seo-alert-warning { background: rgba(255, 193, 7, 0.15);   border-color: rgba(255, 193, 7, 0.3);   color: #ffe69c; }
.seo-alert-danger  { background: rgba(220, 53, 69, 0.15);   border-color: rgba(220, 53, 69, 0.3);   color: #ffb3ba; }
.seo-alert-close {
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    font-family: inherit;
}
.seo-alert-close:hover { opacity: 1; }

/* ===== FOOTER =============================================================== */
.seo-footer {
    background: #0d0d1a;
    border-top: transparent;
    padding: 24px 16px calc(24px + 80px);
    margin-top: auto;
}
.seo-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}
.seo-footer-link {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
    white-space: nowrap;
    transition: color 0.15s;
}
.seo-footer-link:hover { color: rgba(255, 255, 255, 0.72); }
.seo-footer-langs { margin-top: 10px; }
.seo-footer-langs .seo-footer-link { font-size: 13px; }
