/* ========================================
   Variables & Base Styles
======================================== */
:root {
    --primary: #0f0f23;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --surface: #ffffff;
    --surface-elevated: #fafafa;
    --text: #1f1f2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ========================================
   Reset & Base
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    padding: 0;
}

/* ========================================
   Header
======================================== */
header {
    background: var(--primary);
    color: white;
    padding: 48px 24px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* ========================================
   Container & Cards
======================================== */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 16px;
    border-radius: var(--radius);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Table
======================================== */
.table-container {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 12px 10px;
    border: 1px solid var(--border);
    text-align: center;
}

th {
    background: var(--primary);
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:nth-child(even) {
    background: var(--surface-elevated);
}

/* ========================================
   Grid Layout
======================================== */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ========================================
   TASL List
======================================== */
.tasl-list {
    list-style: none;
    padding: 0;
}

.tasl-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.tasl-list li strong {
    color: var(--accent);
}

/* ========================================
   Gold Rule
======================================== */
.gold-rule {
    background: var(--primary);
    color: white;
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.gold-rule blockquote {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* ========================================
   Quiz Section
======================================== */
.quiz-section {
    margin-top: 32px;
}

.quiz-card {
    background: var(--primary);
    color: white;
    border: none;
}

.quiz-card h2 {
    color: white;
}

.quiz-intro {
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.quiz-question {
    margin-bottom: 20px;
}

.question-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.option:hover {
    background: rgba(255,255,255,0.12);
}

.option input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--accent);
}

.option span {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.quiz-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.quiz-btn:hover {
    background: var(--accent-light);
}

.quiz-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
    background: rgba(255,255,255,0.1);
}

.quiz-result.show {
    display: block;
}

.result-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
}

/* ========================================
   Footer
======================================== */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 600px) {
    header {
        padding: 32px 16px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 24px 16px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
}