/* ============================================================
   Fingers For Toes - Main Stylesheet
   ALL colors and fonts via var(--theme-*) — NEVER hardcoded
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--theme-font-body);
    background-color: var(--theme-color-bg);
    color: var(--theme-color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--theme-color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--theme-color-secondary);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-font-heading);
    color: var(--theme-color-text);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { margin-bottom: 1em; }

.text-secondary {
    color: var(--theme-color-text-secondary);
}

.text-center { text-align: center; }

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* ---- Navigation ---- */
.nav {
    background: var(--theme-color-surface);
    border-bottom: 2px solid var(--theme-color-primary);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-logo {
    font-family: var(--theme-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo:hover {
    color: var(--theme-color-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    color: var(--theme-color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--theme-color-primary);
    border-bottom-color: var(--theme-color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--theme-color-text);
    font-size: 1.5rem;
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--theme-color-text-secondary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: border-color 0.2s ease;
    color: var(--theme-color-text);
}

.dark-mode-toggle:hover {
    border-color: var(--theme-color-primary);
}

/* ---- Cards ---- */
.card {
    background: var(--theme-color-surface);
    border-radius: var(--theme-border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-flat {
    background: var(--theme-color-surface);
    border-radius: var(--theme-border-radius);
    padding: 1.5rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--theme-border-radius);
    font-family: var(--theme-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

.btn-secondary {
    background: var(--theme-color-secondary);
    color: #FFFFFF;
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--theme-color-primary);
    color: var(--theme-color-primary);
}

.btn-outline:hover {
    background: var(--theme-color-primary);
    color: #FFFFFF;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

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

/* ---- Vote Option Buttons ---- */
.question-card {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

.question-text {
    font-family: var(--theme-font-heading);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--theme-color-text-secondary);
    margin-bottom: 0.5rem;
}

.question-prompt {
    font-family: var(--theme-font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 2rem;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    border: 3px solid transparent;
    border-radius: var(--theme-border-radius);
    font-family: var(--theme-font-heading);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    min-height: 70px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.vote-btn-a {
    background: var(--theme-color-option-a);
}

.vote-btn-b {
    background: var(--theme-color-option-b);
}

.vote-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.vote-btn:active {
    transform: scale(0.98);
}

.vote-or {
    font-family: var(--theme-font-heading);
    font-size: 1.1rem;
    color: var(--theme-color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---- Results Display ---- */
.results-container {
    max-width: 500px;
    margin: 0 auto;
}

.result-option {
    margin-bottom: 1.25rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.result-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.result-percentage {
    font-family: var(--theme-font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.result-bar-track {
    background: var(--theme-color-bg);
    border-radius: 999px;
    height: 28px;
    overflow: hidden;
    position: relative;
}

.result-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    min-width: 0;
}

.result-bar-fill-a {
    background: var(--theme-color-option-a);
}

.result-bar-fill-b {
    background: var(--theme-color-option-b);
}

.result-votes-count {
    font-size: 0.85rem;
    color: #FFFFFF;
    font-weight: 600;
    white-space: nowrap;
}

.result-total {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--theme-color-text-secondary);
}

.result-user-choice {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--theme-border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-left: 0.5rem;
}

/* ---- Sponsored Badge ---- */
.sponsored-badge {
    font-size: 0.8rem;
    color: var(--theme-color-text-secondary);
    margin-top: 0.75rem;
}

.sponsored-badge a {
    color: var(--theme-color-text-secondary);
    text-decoration: underline;
}

/* ---- Written Responses ---- */
.responses-section {
    margin-top: 2rem;
}

.response-card {
    background: var(--theme-color-surface);
    border-radius: var(--theme-border-radius);
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--theme-color-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.response-author {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.response-choice-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    color: #FFFFFF;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}

.response-text {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    color: var(--theme-color-text-secondary);
}

.response-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.response-vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--theme-color-text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.response-vote-btn:hover {
    color: var(--theme-color-primary);
}

.response-vote-btn.active {
    color: var(--theme-color-primary);
}

.response-time {
    color: var(--theme-color-text-secondary);
    font-size: 0.8rem;
    display: none;
}

.response-card .report-btn {
    display: none;
}

/* Response form */
.response-form {
    margin-top: 1.5rem;
}

.response-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 2px solid var(--theme-color-text-secondary);
    border-radius: var(--theme-border-radius);
    font-family: var(--theme-font-body);
    font-size: 0.95rem;
    background: var(--theme-color-surface);
    color: var(--theme-color-text);
    resize: vertical;
    transition: border-color 0.2s ease;
}

.response-form textarea:focus {
    outline: none;
    border-color: var(--theme-color-primary);
}

.response-form .char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--theme-color-text-secondary);
    margin-top: 0.25rem;
}

/* ---- View All Comments Link ---- */
.view-all-comments {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.view-all-comments a {
    color: var(--theme-color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-comments a:hover {
    color: var(--theme-color-secondary);
    text-decoration: underline;
}

/* ---- Comments Page ---- */
.comments-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comments-header .btn-outline {
    margin-bottom: 1rem;
}

.comments-question-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

h1.comments-question-title .response-choice-badge {
    font-size: 1.2rem;
    padding: 0.15rem 0.5rem;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.comment-card {
    background: var(--theme-color-surface);
    border-radius: var(--theme-border-radius);
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--theme-color-primary);
    overflow: hidden;
}

.comment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.comment-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.response-text-full {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--theme-color-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

.response-time-visible {
    color: var(--theme-color-text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
}

.comments-list {
    margin-bottom: 2rem;
}

/* ---- Share Widget ---- */
.share-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-color-text-secondary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--theme-border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--theme-color-primary);
    background: transparent;
    color: var(--theme-color-primary);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    text-align: center;
}

a.share-btn {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-actions {
    flex-wrap: nowrap;
}

.bottom-actions .share-btn {
    flex: 1 1 0;
    white-space: nowrap;
}

.share-btn:hover {
    background: var(--theme-color-primary);
    color: #FFFFFF;
}

.share-copied {
    background: var(--theme-color-accent);
    border-color: var(--theme-color-accent);
    color: var(--theme-color-text);
}

/* ---- Challenge CTA ---- */
.challenge-cta {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-color-text-secondary);
}

.challenge-text {
    font-family: var(--theme-font-heading);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.challenge-minority {
    color: var(--theme-color-option-b);
}

.challenge-majority {
    color: var(--theme-color-text-secondary);
}

.challenge-close {
    color: var(--theme-color-primary);
}

.featured-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--theme-color-text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-quote-text {
    display: inline;
}

/* ---- Login Enticement ---- */
.login-enticement {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--theme-color-surface);
    border-radius: var(--theme-border-radius);
    border-left: 4px solid var(--theme-color-accent);
    text-align: center;
}

.login-enticement p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.login-enticement .btn {
    margin: 0 0.25rem;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--theme-color-text-secondary);
    border-radius: var(--theme-border-radius);
    font-family: var(--theme-font-body);
    font-size: 1rem;
    background: var(--theme-color-surface);
    color: var(--theme-color-text);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--theme-color-primary);
}

.form-control::placeholder {
    color: var(--theme-color-text-secondary);
}

select.form-control {
    cursor: pointer;
}

.form-error {
    color: #E53E3E;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-help {
    color: var(--theme-color-text-secondary);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* ---- Flash Messages ---- */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--theme-border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.flash-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.flash-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.flash-info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* ---- Badge ---- */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--theme-color-primary);
    color: #FFFFFF;
}

.badge-pending {
    background: #F39C12;
    color: #FFFFFF;
}

.badge-approved {
    background: #27AE60;
    color: #FFFFFF;
}

/* ---- Leaderboard / Top 10 ---- */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--theme-border-radius);
    margin-bottom: 0.5rem;
    background: var(--theme-color-surface);
    transition: background-color 0.3s ease;
}

.leaderboard-rank {
    font-family: var(--theme-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color-primary);
    min-width: 2.5rem;
    text-align: center;
}

.leaderboard-content {
    flex: 1;
}

.leaderboard-stat {
    font-weight: 600;
    color: var(--theme-color-text-secondary);
    font-size: 0.85rem;
}

/* ---- Blog ---- */
.blog-card {
    margin-bottom: 1.5rem;
}

.blog-card h3 a {
    color: var(--theme-color-text);
}

.blog-card h3 a:hover {
    color: var(--theme-color-primary);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--theme-color-text-secondary);
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: var(--theme-color-text-secondary);
    font-size: 0.95rem;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
}

.blog-content p {
    margin-bottom: 1.2rem;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: var(--theme-border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination a {
    background: var(--theme-color-surface);
    color: var(--theme-color-text);
    border: 1px solid var(--theme-color-text-secondary);
}

.pagination a:hover {
    background: var(--theme-color-primary);
    color: #FFFFFF;
    border-color: var(--theme-color-primary);
}

.pagination .active {
    background: var(--theme-color-primary);
    color: #FFFFFF;
    border: 1px solid var(--theme-color-primary);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--theme-color-surface);
    border-top: 2px solid var(--theme-color-primary);
    padding: 2rem 0;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    color: var(--theme-color-text-secondary);
    font-size: 0.85rem;
}

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

.footer-theme-credit {
    font-size: 0.8rem;
    color: var(--theme-color-text-secondary);
}

.footer-copyright {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--theme-color-text-secondary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-color-text-secondary);
}

/* ---- Ad Placeholders ---- */
.ad-container {
    text-align: center;
    margin: 1.5rem 0;
}

/* ---- Hero Section ---- */
.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.hero-title {
    font-family: var(--theme-font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--theme-color-text-secondary);
    margin-bottom: 0;
}

.hero-emoji {
    font-size: 1.5rem;
    margin: 0 0.25rem;
}

/* ---- Utility ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--theme-color-surface);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.cookie-banner p {
    margin: 0;
    color: var(--theme-color-text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--theme-color-surface);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--theme-color-primary);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        position: relative;
    }

    .vote-options {
        padding: 0 0.5rem;
    }

    .bottom-actions {
        flex-wrap: wrap;
    }

    .bottom-actions .share-btn {
        flex: 1 1 40%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .container {
        padding: 0 0.75rem;
    }

    .response-text {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .comments-question-title {
        font-size: 1.1rem;
    }

    .comment-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) {
    .vote-options {
        flex-direction: row;
    }

    .vote-btn {
        flex: 1;
    }

    .vote-or {
        display: flex;
        align-items: center;
    }
}

/* ---- Submission/Archive Cards ---- */
.question-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--theme-color-surface);
    border-radius: var(--theme-border-radius);
    transition: transform 0.2s ease;
}

.question-list-item:hover {
    transform: translateX(4px);
}

.question-list-date {
    font-size: 0.8rem;
    color: var(--theme-color-text-secondary);
    white-space: nowrap;
}

.question-list-text {
    flex: 1;
    font-weight: 500;
}

.question-list-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--theme-color-text-secondary);
    white-space: nowrap;
}

/* ---- Auth Pages ---- */
.auth-container {
    max-width: 440px;
    margin: 2rem auto;
}

.auth-card {
    padding: 2rem;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--theme-color-text-secondary);
}

/* ---- Content Guidelines ---- */
.guidelines-box {
    background: var(--theme-color-bg);
    border: 2px solid var(--theme-color-accent);
    border-radius: var(--theme-border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.guidelines-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--theme-color-primary);
}

/* ---- Report Button ---- */
.report-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--theme-color-text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.report-btn:hover {
    opacity: 1;
    color: #E53E3E;
}

/* ---- Loading State ---- */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--theme-color-text-secondary);
    border-top-color: var(--theme-color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
