/* Basic style.css - lightweight reset, variables, layout, typography, components */

/* === Variables === */
:root{
    --bg: #000000;
    --surface: #000000;
    --text: #ffffff;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-contrast: #fff;
    --accent: #06b6d4;
    --radius: 8px;
    --gap: 1rem;
    --max-width: 1100px;
    --container-padding: 1rem;
    --shadow: 0 6px 18px rgba(17,24,39,0.06);
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --text-size: 16px;
}

/* === Reset / Box model === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body, #root {
    height: 100%;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-size);
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Remove default spacing for common elements */
p { margin: 0 0 1rem 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem 0; font-weight: 600; color: inherit; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color .12s ease;
}
a:hover, a:focus {
    color: color-mix(in srgb, var(--primary) 75%, black 25%); /* graceful darken */
    outline: none;
}

/* Container / Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--container-padding);
    margin-left: auto;
    margin-right: auto;
}

/* Simple responsive grid */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}
.col {
    flex: 1 1 0%;
    min-width: 0;
}
.col-auto {
    flex: 0 0 auto;
}

/* Header */
.header {
    background: transparent;
    padding: .75rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.brand {
    font-weight: 700;
    letter-spacing: -.02em;
}

/* Surface / Card */
.surface {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--primary);
    color: var(--primary-contrast);
    transition: transform .06s ease, box-shadow .06s ease, opacity .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Variants */
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: transparent;
}
.btn-secondary {
    background: transparent;
    border-color: rgba(17,24,39,0.06);
    color: var(--text);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: .5rem .75rem;
    border-radius: 6px;
    border: 1px solid rgba(17,24,39,0.08);
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}
textarea { min-height: 100px; resize: vertical; }
label { display: inline-block; margin-bottom: .25rem; color: var(--muted); font-size: .9rem; }

/* Small utilities */
.muted { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.kv { display:flex; gap:.5rem; align-items:center; }

/* Images */
img { max-width: 100%; height: auto; display: block; border-radius: inherit; }

/* Accessibility */
:focus {
    outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Text helpers */
.lead { font-size: 1.125rem; color: color-mix(in srgb, var(--text) 90%, black 10%); }
.small { font-size: .85rem; }

/* Responsive tweaks */
@media (max-width: 720px) {
    .header { padding-left: .75rem; padding-right: .75rem; }
    .row { gap: .5rem; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Helpers for visually hidden content (for screen readers) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}