/* ValDam REST Logger — support page styles */

:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --card: #1c2128;
    --border: #2d333b;
    --text: #e6edf3;
    --muted: #9198a1;
    --primary: #4f8ef7;
    --primary-dark: #3b6fd4;
    --ok-bg: #12351f;
    --ok-border: #2ea043;
    --err-bg: #3a1620;
    --err-border: #f85149;
    --radius: 12px;
    --max-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 760px; }

.muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand strong { color: var(--primary); }
.brand-logo { font-size: 1.2rem; margin-right: 4px; }

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}

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

.lang-switch {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.lang-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.lang-switch strong { color: var(--text); }

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

.hero {
    text-align: center;
    padding: 90px 0 70px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79, 142, 247, 0.16), transparent),
        var(--bg);
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.15;
    max-width: 760px;
    margin: 0 auto 18px;
}

.lead {
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 30px;
    font-size: 1.08rem;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.stats {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stats li {
    display: flex;
    flex-direction: column;
}

.stats strong { font-size: 1.25rem; }
.stats span   { color: var(--muted); font-size: 0.85rem; }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, transform 0.1s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover { background: var(--bg-alt); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-sm.btn-paypal { padding: 7px 12px; font-size: 0.9rem; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }

.section-sub {
    color: var(--muted);
    margin-bottom: 36px;
}

.section h3 {
    font-size: 1.05rem;
    margin: 26px 0 6px;
}

/* ---------- Cards / grid ---------- */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card h3 { margin: 0 0 10px; font-size: 1.02rem; }
.card p  { color: var(--muted); font-size: 0.93rem; }

/* ---------- Steps ---------- */

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 18px;
    max-width: 720px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 58px;
    min-height: 42px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 { margin: 4px 0 2px; font-size: 1rem; }
.steps p  { color: var(--muted); font-size: 0.93rem; }

.note {
    margin-top: 28px;
    padding: 14px 18px;
    border-left: 3px solid var(--primary);
    background: var(--card);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 720px;
}

/* ---------- FAQ (details/summary accordion) ---------- */

details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 0 20px;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    padding: 16px 0;
    list-style-position: outside;
}

details p {
    color: var(--muted);
    padding: 0 0 16px;
    font-size: 0.95rem;
}

/* ---------- Alerts ---------- */

.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-ok  { background: var(--ok-bg);  border: 1px solid var(--ok-border); }
.alert-err { background: var(--err-bg); border: 1px solid var(--err-border); }
.alert-err p + p { margin-top: 4px; }

/* ---------- Form ---------- */

form { max-width: 720px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
select,
textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.25);
}

textarea { resize: vertical; }

button[type="submit"] { margin-top: 8px; }

/* Honeypot: hidden from humans, visible to bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------- Donations ---------- */

.section-donate { padding-top: 20px; }

.donate-card {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
}

.donate-card h2 { margin-bottom: 10px; }
.donate-card > p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.donate-card .muted { margin-top: 18px; font-size: 0.88rem; }

.btn-paypal {
    background: #ffc439;
    color: #003087;
}

.btn-paypal:hover {
    background: #f2b52a;
    transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.footer-wrap p + p { margin-top: 4px; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
    .hero { padding: 60px 0 50px; }
    .stats { gap: 24px; }
    .lang-switch { width: 100%; margin-left: 0; }
}
