/* ===========================================================================
   Simply Stupid Answers — Stylesheet
   Palette: warm off-white, coral accent, clean type
   =========================================================================== */

:root {
    --bg: #FAFAF7;
    --bg-card: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B7B8D;
    --accent: #E8573A;
    --accent-hover: #D04425;
    --highlight: #FFE066;
    --border: #E8E5DE;
    --border-light: #F0EDE6;
    --success: #3A8A5C;
    --danger: #C0392B;
    --link-blue: #1a73e8;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --max-width: 720px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* ===========================================================================
   Reset & base
   =========================================================================== */

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; height: auto; }

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

/* ===========================================================================
   Header
   =========================================================================== */

.site-header {
    border-bottom: 2px solid var(--border);
    padding: var(--space-md) 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    display: block;
}

.site-header nav {
    display: flex;
    gap: var(--space-md);
}

.site-header nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-header nav a:hover { color: var(--accent); }

/* ===========================================================================
   Hero (homepage)
   =========================================================================== */

.hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.hero .accent { color: var(--accent); }

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

/* ===========================================================================
   Ask form
   =========================================================================== */

.ask-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 520px;
    margin: 0 auto;
}

.ask-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.ask-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.ask-form button,
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s;
}

.ask-form button:hover,
.btn-primary:hover {
    background: var(--accent-hover);
}

.ask-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
    text-align: center;
}

.loading-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
    text-align: center;
    font-style: italic;
}

/* ===========================================================================
   Question grid (homepage popular)
   =========================================================================== */

.popular-section {
    padding: var(--space-lg) 0;
}

.popular-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.question-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.question-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--text);
}

.card-question {
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-rating {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.total-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-md) 0 var(--space-xl);
}

/* ===========================================================================
   Answer page
   =========================================================================== */

.answer-page {
    padding: var(--space-lg) 0;
}

.answer-question {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

/* Breadcrumb navigation */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Stupidity rating */
.stupidity-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.stupidity-meter svg { width: 180px; }

.stupidity-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Answer block */
.answer-block {
    margin-bottom: var(--space-lg);
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.answer-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.read-aloud-btn, .learn-more-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.read-aloud-btn:hover, .learn-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.answer-tools {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

/* Funny line block */
.funny-block {
    background: var(--highlight);
    border-radius: 8px;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.funny-line {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
}

/* External Links (Wikipedia + Google pills) */
.external-links {
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.external-links-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.external-links-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.external-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--bg);
    color: var(--link-blue);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.external-pill:hover {
    background: #eef3ff;
    border-color: var(--link-blue);
    color: var(--link-blue);
}

/* Comic */
.comic-block {
    margin: var(--space-lg) 0;
    text-align: center;
}

.comic-block svg { max-width: 500px; }

/* Why People Ask This block */
.why-people-ask-block {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg);
    border-left: 3px solid var(--border);
    border-radius: 4px;
}

.why-people-ask-block .section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.why-people-ask-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0;
}

/* Voting */
.vote-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.vote-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.vote-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.vote-btn:hover {
    border-color: var(--accent);
    background: #fef2ef;
}

.vote-thanks {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

/* Sharing */
.share-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.share-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

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

/* Meta */
.answer-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: var(--space-lg) 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

/* Related questions */
.related-section {
    margin: var(--space-lg) 0;
}

.related-section h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.related-list li:last-child { border-bottom: none; }

.related-unlinked { color: var(--text-muted); }

/* Ask another CTA */
.ask-another {
    text-align: center;
    padding: var(--space-xl) 0;
}

.ask-another p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

/* ===========================================================================
   Browse page
   =========================================================================== */

.browse-page {
    padding: var(--space-lg) 0;
}

.browse-page h1 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.search-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.search-form input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.search-form input:focus { outline: none; border-color: var(--accent); }

.search-form button {
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.question-list { margin-bottom: var(--space-lg); }

.question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background 0.15s;
}

.question-row:hover { background: var(--bg-card); }

.row-question { font-weight: 500; }

.row-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: var(--space-md);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9rem;
}

/* ===========================================================================
   About & error pages
   =========================================================================== */

.about-page, .error-page {
    padding: var(--space-xl) 0;
    max-width: 560px;
}

.about-page h1, .error-page h1 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.about-page h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.about-page p, .error-page p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.error-page { text-align: center; max-width: 480px; }

.error-page h1 { color: var(--accent); }

.error-figure {
    margin-bottom: var(--space-md);
}

.error-svg {
    width: 140px;
    height: auto;
}

.error-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.error-meter {
    width: 180px;
}

.error-rating-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===========================================================================
   Categories page
   =========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: border-color 0.2s;
    text-align: center;
}

.category-card:hover {
    border-color: var(--accent);
    color: var(--text);
}

.category-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================================================================
   Category hub pages
   =========================================================================== */

.category-hub {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.category-hub-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.category-hub-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.category-hub-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.category-hub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-hub-item {
    border-bottom: 1px solid var(--border);
}

.category-hub-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    text-decoration: none;
    color: var(--text);
    transition: color 0.15s;
}

.category-hub-link:hover {
    color: var(--accent);
}

.category-hub-question {
    font-size: 1rem;
    flex: 1;
}

.category-hub-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: var(--space-md);
    white-space: nowrap;
    font-style: italic;
}

.category-hub-empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ===========================================================================
   Footer
   =========================================================================== */

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

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    font-size: 0.8rem;
    margin-top: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-dot {
    color: var(--text-muted);
    margin: 0 0.3rem;
}

/* ===========================================================================
   Cookie banner
   =========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: white;
    padding: var(--space-md);
    text-align: center;
    z-index: 9999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cookie-text {
    line-height: 1.4;
}

.cookie-text a {
    color: var(--accent);
}

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

.cookie-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.cookie-btn:hover {
    background: var(--accent-hover);
}

/* ===========================================================================
   Admin
   =========================================================================== */

.admin-page {
    padding: var(--space-lg) 0;
    max-width: 800px;
    margin: 0 auto;
}

.admin-page h1 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.admin-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-nav {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--space-sm);
}

.admin-nav a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: 4px;
}

.admin-nav a.active {
    background: var(--accent);
    color: white;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.admin-card-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
}

.admin-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-card-body p {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.admin-edit {
    margin: var(--space-md) 0;
}

.admin-edit summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent);
}

.admin-edit form {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.admin-edit label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-edit textarea, .admin-edit input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.admin-edit button {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.btn-approve {
    background: var(--success);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-reject {
    background: var(--text-muted);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-delete {
    background: none;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 4px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-view {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

.batch-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.batch-form button {
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.batch-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Login */
.login-page {
    text-align: center;
    padding: var(--space-xl) 0;
}

.login-page h1 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.login-form {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.login-form input {
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.login-form button {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: var(--space-lg) 0;
}

/* ===========================================================================
   Sensitive content page
   =========================================================================== */

.sensitive-page {
    padding: var(--space-xl) 0;
    max-width: 560px;
}

.sensitive-page h1 {
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.sensitive-page p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.resource-card h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.resource-card p {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.resource-link {
    font-size: 0.85rem;
    font-weight: 600;
}

.sensitive-note {
    font-style: italic;
    color: var(--text-muted);
    margin-top: var(--space-lg);
}

/* ===========================================================================
   Newsletter signup
   =========================================================================== */

.newsletter-signup {
    text-align: center;
    padding: var(--space-md) var(--space-md);
    margin: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-hook {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--bg-card);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-btn {
    padding: 0.6rem 1.3rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--accent-hover);
}

.newsletter-fine-print {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* ===========================================================================
   Responsive
   =========================================================================== */

@media (max-width: 600px) {
    .ask-form {
        flex-direction: column;
    }
    .admin-stats {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    .question-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    .row-meta { margin-left: 0; }
    .stupidity-meter svg { width: 140px; }
    .external-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .external-links-pills {
        flex-direction: column;
        width: 100%;
    }
    .external-pill {
        white-space: normal;
    }
    .cookie-banner {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
    .error-page {
        padding: var(--space-lg) 0;
    }
    .submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    .submit-charcount {
        text-align: right;
    }
}

/* ===========================================================================
   Submit page
   =========================================================================== */

.submit-page {
    padding: var(--space-xl) 0;
    max-width: 560px;
}

.submit-page h1 {
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
}

.submit-intro {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.submit-form-wrap {
    margin-bottom: var(--space-xl);
}

.submit-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text);
    transition: border-color 0.2s;
}

.submit-input:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
}

.submit-charcount {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.submit-btn {
    flex-shrink: 0;
}

.submit-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.submit-success {
    text-align: center;
    padding: var(--space-lg) 0;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: white;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: var(--space-md);
}

.success-msg {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.submit-guidelines {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
}

.submit-guidelines h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.submit-guidelines p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}
