/* ============================================================================
   CharacterTracker website - shared styles
   Palette matches the Android app's "Slate & Steel" re-theme (see
   Resources/Styles/Colors.xaml in the app repo) so the website and app feel
   like one product: cool charcoal/slate backgrounds, steel-blue accents.
   ============================================================================ */

:root {
    --bg: #12161B;
    --bg-secondary: #232B33;
    --bg-card: #1A2028;
    --text: #E7ECF0;
    --text-dim: #9AA7B2;
    --accent: #9FB3C8;
    --accent-strong: #3E5C76;
    --border: #2E3A44;
    --success: #7FB88A;
    --error: #D98C8C;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Top nav ---- */

header.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 860px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand img {
    height: 32px;
    width: auto;
}

nav.site-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav.site-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

nav.site-nav a:hover,
nav.site-nav a.active {
    color: var(--text);
}

/* ---- Hero ---- */

.hero {
    text-align: center;
    padding: 56px 24px 40px;
}

.hero img.hero-logo {
    height: 96px;
    width: auto;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.1rem;
    margin: 0 0 8px;
}

.hero p.subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ---- Cards / sections ---- */

main {
    padding: 8px 0 64px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-filled {
    background: var(--accent-strong);
    color: #fff;
}

.btn-filled:hover {
    background: #4a6c8b;
}

.btn-tonal {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-tonal:hover {
    border-color: var(--accent);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Forms ---- */

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 16px 0 6px;
}

label:first-of-type {
    margin-top: 0;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.status-line {
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-line.success {
    color: var(--success);
}

.status-line.error {
    color: var(--error);
}

/* ---- Misc ---- */

.tag {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.center {
    text-align: center;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px;
}

footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}
