/* Modern design system for setlisthelper.com (matches the 2026 homepage redesign).
   Used by _LayoutModern.cshtml pages only — legacy pages keep Site.css. */

:root {
    --ink: #0f172a;
    --muted: #47556e;
    --line: #e2e8f0;
    --surface: #f6f8fb;
    --brand: #2458c5;
    --brand-dark: #1a4499;
    --brand-ink: #12275a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
    display: inline-block; padding: 10px 22px; border-radius: 10px;
    font-weight: 600; font-size: .98rem; border: 0; cursor: pointer;
    font-family: inherit;
}
.btn-primary, .site-nav a.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover, .site-nav a.btn-primary:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; padding: 13px 22px; font-size: 1.02rem; border-radius: 11px; }

/* Page body */
.page-main {
    flex: 1;
    background:
        radial-gradient(700px 340px at 12% -10%, #dbe7fb 0%, rgba(219,231,251,0) 60%),
        radial-gradient(560px 300px at 95% 0%, #fdf0e0 0%, rgba(253,240,224,0) 55%),
        #fff;
    padding: 56px 0 72px;
}

/* Auth card */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 0 20px; }
.auth-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .25);
    padding: 36px 34px 30px;
}
.auth-card h1 { font-size: 1.65rem; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 6px; text-align: center; }
.auth-sub { color: var(--muted); font-size: .95rem; text-align: center; margin-bottom: 26px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%; padding: 11px 14px; font-size: 1rem; font-family: inherit;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--ink); outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 88, 197, .15); }
.auth-check { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .92rem; color: var(--muted); }
.auth-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.auth-check label { font-weight: 500; margin: 0; }
.auth-links { text-align: center; font-size: .92rem; color: var(--muted); margin-top: 18px; }
.auth-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.auth-foot { text-align: center; font-size: .95rem; color: var(--muted); margin-top: 20px; }
.auth-hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.auth-card .g-recaptcha { margin: 4px 0 20px; display: flex; justify-content: center; }

/* Wider card + extra form controls (contact form) */
.auth-wrap.wide { max-width: 600px; }
.auth-field select,
.auth-field textarea {
    width: 100%; padding: 11px 14px; font-size: 1rem; font-family: inherit;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--ink); outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.auth-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2347556e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.auth-field select:focus, .auth-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 88, 197, .15); }
.auth-field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* MVC validation styling */
.validation-summary-errors {
    background: #fdf0f0; border: 1px solid #f2c6c6; color: #a4262c;
    border-radius: 10px; padding: 12px 16px; font-size: .92rem; margin-bottom: 18px;
}
.validation-summary-errors ul { margin: 4px 0 0 18px; }
.validation-summary-valid { display: none; }
.field-validation-error { display: block; color: #a4262c; font-size: .84rem; margin-top: 5px; }
.field-validation-valid { display: none; }
input.input-validation-error { border-color: #d13438 !important; }

/* Content pages: Blog + Help (chrome only — content markup untouched) */
.blog-container, .page-main .help-content {
    max-width: 800px; margin: 0 auto; padding: 36px 40px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 60px -32px rgba(15, 23, 42, .18);
}
.blog-container h1, .page-main .help-content h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px;
}
.blog-article h2, .page-main .help-content h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 34px 0 12px; }
.blog-article h3, .page-main .help-content h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.blog-article p, .page-main .help-content p { margin-bottom: 14px; color: #2f3b52; }
.blog-article ul, .blog-article ol, .page-main .help-content ul, .page-main .help-content ol { margin: 0 0 16px 24px; color: #2f3b52; }
.blog-article li, .page-main .help-content li { margin-bottom: 6px; }
.blog-intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; }
.blog-date { font-size: .85rem; color: #8a97ad; margin-bottom: 8px; }
.blog-list { display: flex; flex-direction: column; gap: 18px; }
.blog-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; background: var(--surface); }
.blog-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.blog-card h2 a { color: var(--ink); }
.blog-card h2 a:hover { color: var(--brand); text-decoration: none; }
.blog-card p { color: var(--muted); margin-bottom: 8px; }
.read-more { font-weight: 600; font-size: .93rem; }
.blog-breadcrumb a, .page-main .help-breadcrumb a { color: var(--muted); font-size: .9rem; }
.blog-breadcrumb a:hover, .page-main .help-breadcrumb a:hover { color: var(--brand); }
.page-main .help-breadcrumb { color: #8a97ad; margin-bottom: 22px; }
.blog-article figure { margin: 22px 0 26px; }
.blog-article figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; display: block; }
.blog-article figcaption { font-size: .85rem; color: #8a97ad; text-align: center; margin-top: 8px; }
.blog-formula { background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: 12px; text-align: center; font-size: 1.02rem; }
.blog-table, .page-main .help-content table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: .95rem; }
.blog-table th, .blog-table td, .page-main .help-content th, .page-main .help-content td {
    border: 1px solid var(--line); padding: 9px 13px; text-align: left;
}
.blog-table th, .page-main .help-content th { background: var(--surface); font-weight: 700; }
.page-main .help-content img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.page-main .help-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 20px 0; }
.page-main .help-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.page-main .gear-promo {
    background: #fdf6ec; border: 1px solid #f0dfae; border-radius: 12px;
    padding: 14px 18px; margin: 18px 0; font-size: .96rem;
}
@media (max-width: 700px) {
    .blog-container, .page-main .help-content { padding: 24px 18px; border-radius: 12px; }
}

/* System alert (parity with legacy layout) */
.system-alert { background: #fff8e6; border-bottom: 1px solid #f0dfae; padding: 10px 18px; text-align: center; font-size: .93rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 26px; background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.copyright { color: #8a97ad; font-size: .85rem; }

@media (max-width: 760px) {
    .site-nav a.nav-link { display: none; }
    .site-nav { gap: 14px; }
    .site-nav .btn { white-space: nowrap; padding: 9px 16px; }
    .brand { font-size: 1.05rem; }
    .site-header .wrap { height: 58px; }
    .page-main { padding: 36px 0 52px; }
    .auth-card { padding: 28px 22px 24px; }
    .site-footer .wrap { justify-content: center; text-align: center; }
}
