/* Custom Base Styles for Quiz Project */

:root {
    --c-primary: #3b5998;
    --c-primary-hover: #294275;
    --c-bg: #f9f9fb;
    --c-bg-card: #ffffff;
    --c-text: #2f3440;
    --c-text-muted: #6b7280;
    --c-border: #e5e7eb;
    --c-accent: #f0f4f8;
    --c-danger: #ea5455;
    --space-md: 1.5rem;
    --rad: 8px;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background-color: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 0;
}

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

.brand {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--c-primary);
}

.nav-links a {
    color: var(--c-text-muted);
    text-decoration: none;
    margin-left: 1rem;
}

.nav-links a:hover {
    color: var(--c-primary);
}

/* Main */
main {
    flex: 1;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--c-text-muted);
}

.disclaimer {
    font-size: 0.9rem;
    background: var(--c-accent);
    padding: 1rem;
    border-radius: var(--rad);
    border-left: 4px solid var(--c-primary);
    color: var(--c-text);
}

/* Quiz Section */
.quiz-section {
    background-color: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--rad);
    border: 1px solid var(--c-border);
    margin: 3rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.question-block {
    margin-bottom: 2rem;
}

.question-text {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-label {
    flex: 1;
    min-width: calc(50% - 0.75rem);
    display: block;
    padding: 0.75rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--rad);
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: center;
}

@media (min-width: 600px) {
    .option-label {
        flex: 1;
        min-width: auto;
    }
}

.option-label:hover {
    border-color: var(--c-primary);
}

.option-label input[type="radio"] {
    display: none;
}

.option-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--c-primary);
}

.option-label:has(input[type="radio"]:checked) {
    border-color: var(--c-primary);
    background-color: var(--c-accent);
}

/* Buttons */
.form-actions, .action-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--rad);
    cursor: pointer;
    border: none;
    font-weight: 600;
}

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

.btn-primary:hover {
    background-color: var(--c-primary-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text);
}

.btn-secondary:hover {
    background-color: var(--c-bg);
}

/* Results */
.hidden {
    display: none;
}

#results-container h2 {
    margin-bottom: 1rem;
}

.result-band {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1rem;
}

/* Supporting Content */
.supporting-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.supporting-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.supporting-content p, .supporting-content ul {
    margin-bottom: 1rem;
}

.supporting-content ul {
    padding-left: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--c-bg-card);
    border-top: 1px solid var(--c-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--c-text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: var(--c-primary);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.version-note {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Print Styles */
@media print {
    .site-header, footer, .form-actions, .action-links, .supporting-content {
        display: none !important;
    }
    body, main, .quiz-section {
        background: none;
        border: none;
        box-shadow: none;
        color: #000;
        margin: 0;
        padding: 0;
    }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
