/* ═══════════════════════════════════════════════ */
/*  NARKANJAGKORA.WEBSITE — Design System          */
/* ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a0a1a;
    --bg-card: #111128;
    --bg-card-hover: #181840;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #f1f5f9;
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.1);
    --primary-dark: #d97706;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --border: rgba(255,255,255,0.08);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --border: rgba(0,0,0,0.1);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --primary-glow: rgba(245, 158, 11, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    min-height: 100vh;
}

.container { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

/* ═══ HEADER ═══ */
.site-header {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
}
[data-theme="light"] .site-header { background: rgba(248,250,252,0.9); }

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

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--text); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    box-shadow: 0 2px 12px rgba(245,158,11,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.theme-toggle:hover { background: var(--bg-card-hover); }

/* ═══ HERO ═══ */
.hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero .accent { color: var(--primary); }
.hero .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══ CALCULATOR ═══ */
.calc-section { margin-bottom: 2.5rem; }

.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .calc-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select {
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Drink buttons */
.drink-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.drink-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}
.drink-btn:hover { border-color: var(--primary); background: var(--primary-glow); }
.drink-btn .emoji { font-size: 1.2rem; }

/* Drink list */
.drink-list { margin-bottom: 1.5rem; }
.drink-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.drink-item .remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.3rem;
}

/* Results */
.result-box {
    display: none;
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}
.result-box.visible { display: block; }

.result-clock {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}
.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 500px) { .result-stats { grid-template-columns: 1fr; } }

.stat-card {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.stat-value.danger { color: var(--danger); }
.stat-value.warning { color: var(--warning); }
.stat-value.success { color: var(--success); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

.warning-box {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
}
.warning-box strong { color: var(--danger); }

/* ═══ CONTENT SECTIONS ═══ */
.content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; }

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}
.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.content-section p { margin-bottom: 0.9rem; }
.content-section ul, .content-section ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.4rem; }
.content-section a { color: var(--primary); text-decoration: none; }
.content-section a:hover { text-decoration: underline; }

/* Info card */
.card {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.info-box {
    padding: 1rem 1.25rem;
    background: var(--primary-glow);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Table */
.burn-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.burn-table th, .burn-table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.burn-table th {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* TOC */
.toc { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.toc a { color: var(--primary); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); cursor: pointer; }
.faq-question {
    padding: 1rem 0;
    font-weight: 600;
    color: var(--text-heading);
    position: relative;
    padding-right: 2rem;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.2s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 1rem; }
.faq-item:last-child { border-bottom: none; }

/* ═══ FOOTER ═══ */
.site-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}
.site-footer a { color: var(--primary); text-decoration: none; margin: 0 0.4rem; }
.disclaimer { max-width: 600px; margin: 0 auto 1rem; font-size: 0.75rem; line-height: 1.5; }
