/* Shortcut Kings - base styles, layout, nav, buttons, modal. */
:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #1c2330;
    --border: #2d333b;
    --text: #e6edf3;
    --muted: #8b949e;
    --accent: #58a6ff;
    --accent-2: #7c5cff;
    --good: #3fb950;
    --bad: #f85149;
    --gold: #ffc400;
    --radius: 14px;
    --maxw: 1040px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }

.sk-container { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px; }
.sk-center { text-align: center; }
.sk-muted { color: var(--muted); }

/* Header */
.sk-header { position: sticky; top: 0; z-index: 50; background: rgba(13,17,23,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.sk-header__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 20px; }
.sk-logo { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
.sk-logo:hover { text-decoration: none; opacity: .92; }
.sk-logo__img { height: 36px; width: auto; display: block; }
.sk-logo__img--round { height: 72px; width: auto; }
.sk-nav { display: flex; align-items: center; gap: 18px; margin-left: 8px; flex-wrap: wrap; }
.sk-nav > a { color: var(--muted); font-weight: 500; white-space: nowrap; }
.sk-nav > a:hover { color: var(--text); text-decoration: none; }
.sk-nav-link--locked { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.sk-nav-link--locked .sk-lock { color: var(--muted); opacity: .85; }
.sk-nav-link--locked:hover { color: var(--text); text-decoration: none; }

/* Shared lock icon (nav, packs, modes) */
.sk-lock { display: inline-flex; align-items: center; line-height: 0; }
.sk-lock svg { display: block; }
.sk-header__cta { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }

/* Resources nav dropdown (global — must load on every page) */
.sk-nav-dropdown { position: relative; }
.sk-nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--muted);
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    line-height: inherit;
}
.sk-nav-dropdown__toggle:hover,
.sk-nav-dropdown.is-open .sk-nav-dropdown__toggle { color: var(--text); }
.sk-nav-dropdown__chev { font-size: 10px; opacity: .7; transition: transform .15s ease; }
.sk-nav-dropdown.is-open .sk-nav-dropdown__chev { transform: rotate(180deg); }

.sk-nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.sk-nav-dropdown.is-open .sk-nav-dropdown__menu { display: flex; }

.sk-nav-dropdown__label {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    pointer-events: none;
}
.sk-nav-dropdown__menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
}
.sk-nav-dropdown__menu a:hover {
    background: var(--surface-2);
    color: var(--accent);
    text-decoration: none;
}
.sk-nav-dropdown__menu a.is-hub {
    color: var(--accent);
    font-weight: 600;
}
.sk-nav-dropdown__divider {
    height: 1px;
    background: var(--border);
    margin: 6px 8px;
}
.sk-nav-dropdown__menu a.sk-nav-dropdown__blog {
    color: var(--gold);
}
.sk-nav-dropdown__menu a.sk-nav-dropdown__blog:hover {
    color: var(--gold);
    background: rgba(255, 196, 0, .08);
}

/* Buttons */
.sk-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .05s ease, filter .15s ease; font-family: inherit; }
.sk-btn:hover { text-decoration: none; filter: brightness(1.08); }
.sk-btn:active { transform: translateY(1px); }
.sk-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.sk-btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.sk-btn--lg { padding: 14px 26px; font-size: 17px; }
.sk-btn:disabled { opacity: .6; cursor: default; }

/* Cards */
.sk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.sk-label { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin: 22px 0 10px; }

/* Footer */
.sk-footer { border-top: 1px solid var(--border); margin-top: 60px; }
.sk-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.sk-footer__links { display: flex; gap: 16px; }

/* Forms / auth */
.sk-auth { display: flex; justify-content: center; }
.sk-auth__card { max-width: 420px; width: 100%; }
.sk-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.sk-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.sk-form input[type=text], .sk-form input[type=email], .sk-form input[type=password] {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; color: var(--text); font-size: 15px;
}
.sk-form input:focus { outline: none; border-color: var(--accent); }
.sk-form__check { flex-direction: row; align-items: center; gap: 8px; }
.sk-form__error { color: var(--bad); min-height: 18px; font-size: 14px; margin: 0; }

.sk-auth__logo {
    display: block;
    width: min(140px, 40vw);
    height: auto;
    margin: 0 auto 18px;
}

.sk-google-signin {
    display: flex;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 4px;
}
.sk-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.sk-auth__divider::before,
.sk-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.sk-auth__divider span { flex-shrink: 0; }

/* Modal */
.sk-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.sk-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sk-modal__panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; max-width: 460px; width: 90%; }
.sk-modal__features { list-style: none; padding: 0; margin: 16px 0; }
.sk-modal__features li { padding: 6px 0 6px 26px; position: relative; }
.sk-modal__features li::before { content: '\2713'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.sk-modal__actions { display: flex; gap: 10px; margin-top: 16px; }

/* Banners + badges */
.sk-banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.sk-banner.is-good { background: rgba(63,185,80,.15); border: 1px solid var(--good); color: #aee5b8; }
.sk-badge { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px; margin-right: 6px; }

/* Tables / boards shared */
.sk-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.sk-table th, .sk-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.sk-table th { color: var(--muted); font-size: 13px; }

/* AdSense (free tier) */
.sk-ad {
    max-width: var(--maxw);
    margin: 24px auto;
    padding: 0 20px;
    text-align: center;
    overflow: hidden;
    min-height: 90px;
}
.sk-ad ins { display: block; }
