/* ============================================================
   shared.css — BaseDeck design system
   All class names: snake_case
   Mobile nav: CSS-only transform + JS class toggle
   ============================================================ */
@import url("./icons/fonts_awesome.css");
/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg:              #0a0a0f;
    --bg_surface:      #111118;
    --bg_card:         #16161f;
    --bg_elevated:     #1c1c27;
    --border:          #2a2a38;
    --border_subtle:   #1e1e2a;
    --color_accent:    #3ecf8e;
    --color_accent_dim:#2a9963;
    --color_blue:      #4f8ef7;
    --color_red:       #f76e6e;
    --color_yellow:    #f7c34f;
    --color_muted:     #8888a8;
    --color_text:      #e8e8f0;
    --color_subtle:    #bbbbd0;

    --weight_regular:  400;
    --weight_medium:   500;
    --weight_semi:     600;
    --weight_bold:     700;
    --weight_black:    900;

    --radius_sm:       6px;
    --radius_md:       10px;
    --radius_lg:       16px;
    --radius_xl:       24px;

    --shadow_sm:       0 1px 3px rgba(0,0,0,.4);
    --shadow_md:       0 4px 16px rgba(0,0,0,.5);
    --shadow_lg:       0 8px 32px rgba(0,0,0,.6);
    --shadow_glow:     0 0 24px rgba(62,207,142,.12);

    --header_h:        64px;
    --transition:      0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; max-width: 100;}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--color_text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color_accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .8; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
p { line-height: 1.7; }

/* ── Skip link ──────────────────────────────────────────────── */
.skip_link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: .5rem 1rem;
    background: var(--color_accent);
    color: #000;
    font-weight: var(--weight_semi);
    border-radius: var(--radius_sm);
    z-index: 9999;
    transition: top .2s;
}
.skip_link:focus { top: .75rem; }

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── Site header ────────────────────────────────────────────── */
.site_header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header_h);
    background: rgba(10,10,15,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.site_header.scrolled {
    border-bottom-color: var(--border_subtle);
    box-shadow: var(--shadow_sm);
}

.site_nav {
    display: flex;
    align-items: center;
    height: var(--header_h);
    gap: 2rem;
}

/* Logo */
.nav_logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--color_text);
    font-weight: var(--weight_bold);
    font-size: 1rem;
    flex-shrink: 0;
}
.nav_logo_icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #1a4d3a 0%, #0a0a0f 100%);
    border-radius: var(--radius_sm);
    border: 1px solid rgba(62,207,142,.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav_logo_name span { color: var(--color_accent); }

/* Desktop links */
.nav_links {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}
.nav_link {
    padding: .4rem .8rem;
    color: var(--color_muted);
    font-size: .9rem;
    font-weight: var(--weight_medium);
    border-radius: var(--radius_sm);
    transition: color var(--transition), background var(--transition);
}
.nav_link:hover,
.nav_link.active {
    color: var(--color_text);
    background: var(--bg_elevated);
    opacity: 1;
}
.nav_link.active { color: var(--color_accent); }

/* CTA button */
.nav_cta {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-left: .75rem;
    padding: .45rem 1rem;
    background: var(--color_accent);
    color: #000;
    font-size: .875rem;
    font-weight: var(--weight_semi);
    border-radius: var(--radius_sm);
    transition: filter var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.nav_cta:hover { filter: brightness(1.1); transform: translateY(-1px); opacity: 1; }

/* Hamburger toggle — hidden on desktop */
.nav_toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    border-radius: var(--radius_sm);
    margin-left: auto;
    padding: 6px;
    transition: background var(--transition);
}
.nav_toggle:hover { background: var(--bg_elevated); }
.nav_toggle_bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color_text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
/* Hamburger → X animation */
.nav_toggle.open .nav_toggle_bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav_toggle.open .nav_toggle_bar:nth-child(2) { opacity: 0; width: 0; }
.nav_toggle.open .nav_toggle_bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.site_nav_mobile {
    display: none;
    flex-direction: column;
    background: var(--bg_surface);
    border-top: 1px solid var(--border_subtle);
    border-bottom: 1px solid var(--border_subtle);
    padding: .75rem 1.5rem 1rem;
    gap: .25rem;
}
.site_nav_mobile .nav_link {
    padding: .65rem .75rem;
    font-size: .95rem;
    border-radius: var(--radius_sm);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.site_nav_mobile .nav_cta {
    margin: .5rem 0 0;
    justify-content: center;
    padding: .7rem 1rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site_footer {
    background: var(--bg_surface);
    border-top: 1px solid var(--border_subtle);
    padding: 3.5rem 0 0;
    margin-top: 5rem;
}
.footer_grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.footer_brand_desc {
    margin-top: .75rem;
    font-size: .875rem;
    color: var(--color_muted);
    line-height: 1.6;
    max-width: 260px;
}
.footer_col_title {
    font-size: .75rem;
    font-weight: var(--weight_semi);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color_muted);
    margin-bottom: 1rem;
}
.footer_link_list { display: flex; flex-direction: column; gap: .5rem; }
.footer_link_list a {
    font-size: .875rem;
    color: var(--color_subtle);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color var(--transition);
}
.footer_link_list a:hover { color: var(--color_text); opacity: 1; }
.footer_link_list a i { font-size: .75rem; color: var(--color_muted); }

.footer_bottom {
    border-top: 1px solid var(--border_subtle);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer_copy {
    font-size: .8rem;
    color: var(--color_muted);
}
.footer_copy a { color: var(--color_accent); }
.footer_copy a:hover { color: var(--color_text); opacity: 1; }

.footer_social {
    display: flex;
    gap: .5rem;
}
.footer_social_link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius_sm);
    background: var(--bg_elevated);
    border: 1px solid var(--border_subtle);
    color: var(--color_accent);
    font-size: .875rem;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer_social_link:hover {
    color: var(--color_text);
    border-color: var(--border);
    background: var(--bg_card);
    opacity: 1;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    font-size: .9rem;
    font-weight: var(--weight_semi);
    border-radius: var(--radius_sm);
    cursor: pointer;
    transition: filter var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:active { transform: translateY(0); }

.btn_primary {
    background: var(--color_accent);
    color: #000;
    border-color: var(--color_accent);
}
.btn_primary:hover { filter: brightness(1.1); }

.btn_secondary {
    background: transparent;
    color: var(--color_text);
    border-color: var(--border);
}
.btn_secondary:hover { background: var(--bg_elevated); border-color: var(--color_accent); }

.btn_ghost {
    background: transparent;
    color: var(--color_muted);
    border-color: transparent;
}
.btn_ghost:hover { color: var(--color_text); background: var(--bg_elevated); }

.btn_danger {
    background: rgba(247,110,110,.12);
    color: var(--color_red);
    border-color: rgba(247,110,110,.25);
}
.btn_danger:hover { background: rgba(247,110,110,.2); }

.btn_lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn_sm { padding: .35rem .85rem; font-size: .8rem; }
.btn_block { width: 100%; }
.btn_icon_only { padding: .5rem; width: 36px; height: 36px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--bg_card);
    border: 1px solid var(--border_subtle);
    border-radius: var(--radius_lg);
    padding: 1.5rem;
}
.card_sm { padding: 1rem; border-radius: var(--radius_md); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    font-size: .75rem;
    font-weight: var(--weight_semi);
    border-radius: 100px;
    border: 1px solid transparent;
}
.badge_green  { background: rgba(62,207,142,.1);  color: var(--color_accent); border-color: rgba(62,207,142,.2); }
.badge_blue   { background: rgba(79,142,247,.1);  color: var(--color_blue);   border-color: rgba(79,142,247,.2); }
.badge_yellow { background: rgba(247,195,79,.1);  color: var(--color_yellow); border-color: rgba(247,195,79,.2); }
.badge_red    { background: rgba(247,110,110,.1); color: var(--color_red);    border-color: rgba(247,110,110,.2); }

/* ── Form elements ──────────────────────────────────────────── */
.form_group { display: flex; flex-direction: column; gap: .4rem; }
.form_label {
    font-size: .85rem;
    font-weight: var(--weight_medium);
    color: var(--color_subtle);
}
.form_input,
.form_textarea,
.form_select {
    width: 100%;
    background: var(--bg_elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius_sm);
    color: var(--color_text);
    font-size: .9rem;
    font-family: inherit;
    padding: .65rem .85rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: none;
}
.form_input:focus,
.form_textarea:focus,
.form_select:focus {
    border-color: var(--color_accent);
    box-shadow: 0 0 0 3px rgba(62,207,142,.1);
}
.form_input.input_error { border-color: var(--color_red); }
.form_hint { font-size: .8rem; color: var(--color_muted); margin-top: .25rem; }
.form_error {
    font-size: .8rem;
    color: var(--color_red);
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Typography helpers ─────────────────────────────────────── */
.text_accent   { color: var(--color_accent); }
.text_muted    { color: var(--color_muted); }
.text_subtle   { color: var(--color_subtle); }
.text_red      { color: var(--color_red); }
.text_blue     { color: var(--color_blue); }
.text_yellow   { color: var(--color_yellow); }
.text_center   { text-align: center; }
.text_sm       { font-size: .875rem; }
.text_xs       { font-size: .75rem; }
.font_mono     { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ── Code block ─────────────────────────────────────────────── */
code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .85em;
    background: var(--bg_elevated);
    padding: .1em .4em;
    border-radius: 4px;
    color: var(--color_accent);
}
pre {
    background: var(--bg_elevated);
    border: 1px solid var(--border_subtle);
    border-radius: var(--radius_md);
    padding: 1.25rem;
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.6;
}
pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: var(--color_text);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border_subtle);
    margin: 2rem 0;
}

/* ── Section spacing ────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section_sm { padding: 3rem 0; }
.section_header { text-align: center; margin-bottom: 3.5rem; }
.section_eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: var(--weight_semi);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color_accent);
    margin-bottom: .75rem;
}
.section_title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--weight_bold);
    line-height: 1.2;
    color: var(--color_text);
    margin-bottom: .75rem;
}
.section_subtitle {
    font-size: 1.05rem;
    color: var(--color_muted);
    max-width: 560px;
    margin-inline: auto;
}

/* ── Animations ─────────────────────────────────────────────── */
.animate_fade_in {
    animation: fadeIn .35s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg_surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color_muted); }

/* ── Responsive — mobile nav ────────────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 14px;}
    .nav_links,
    .site_nav .nav_cta { display: none; }

    .nav_toggle { display: flex; }

    .site_nav_mobile.open { display: flex; }

    .footer_grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
}
@media (max-width: 480px) {
    html { font-size: 12px;}
    .footer_grid { grid-template-columns: 1fr; }
}
