/* ============================================================
   JPCORE - Binance Referral Crypto Info Site
   Color Theme: Black / Yellow (Binance) / Grey
   Mobile-First Responsive Design
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0b0e11;
    --bg-secondary: #1e2329;
    --bg-tertiary: #2b3139;
    --bg-card: #181a20;
    --bg-card-hover: #1e2329;

    --yellow-primary: #f0b90b;
    --yellow-light: #f8d12f;
    --yellow-dark: #c99a06;
    --yellow-glow: rgba(240, 185, 11, 0.3);
    --yellow-subtle: rgba(240, 185, 11, 0.08);

    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --text-tertiary: #5e6673;
    --text-inverse: #0b0e11;

    --green: #0ecb81;
    --red: #f6465d;
    --blue: #1890ff;

    --border: rgba(234, 236, 239, 0.08);
    --border-hover: rgba(240, 185, 11, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px var(--yellow-glow);

    --container: 1200px;
    --header-h: 64px;

    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    --font-en: 'Inter', var(--font-ja);
}

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

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

body {
    font-family: var(--font-ja);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--yellow-light);
}

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

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(11, 14, 17, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 20px;
    font-family: var(--font-en);
    letter-spacing: -0.5px;
}

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

.logo-icon {
    color: var(--yellow-primary);
    font-size: 24px;
}

.main-nav {
    display: none;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--yellow-primary);
    background: var(--yellow-subtle);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cta {
    display: none;
    align-items: center;
    padding: 8px 20px;
    background: var(--yellow-primary);
    color: var(--text-inverse) !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.header-cta:hover {
    background: var(--yellow-light);
    color: var(--text-inverse) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 24px 20px;
    gap: 8px;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-nav.mobile-open .nav-link {
    font-size: 18px;
    padding: 14px 16px;
}

/* ---------- Desktop Nav ---------- */
@media (min-width: 900px) {
    .main-nav {
        display: flex;
    }
    .header-cta {
        display: flex;
    }
    .mobile-toggle {
        display: none;
    }
}

/* ---------- Main content offset ---------- */
main {
    padding-top: var(--header-h);
}

/* ---------- CTA Buttons ---------- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--yellow-primary);
    color: var(--text-inverse) !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover {
    background: var(--yellow-light);
    color: var(--text-inverse) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-btn:hover::after {
    left: 100%;
}

.cta-btn-large {
    padding: 18px 44px;
    font-size: 18px;
}

.cta-btn-outline {
    background: transparent;
    border: 2px solid var(--yellow-primary);
    color: var(--yellow-primary) !important;
}

.cta-btn-outline:hover {
    background: var(--yellow-primary);
    color: var(--text-inverse) !important;
}

.cta-arrow {
    font-size: 20px;
    transition: transform 0.3s;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(4px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(240, 185, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 185, 11, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-glow-1 {
    background: var(--yellow-primary);
    top: -200px;
    right: -100px;
}

.hero-glow-2 {
    background: #f0b90b;
    bottom: -200px;
    left: -100px;
    opacity: 0.08;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--yellow-subtle);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--yellow-primary);
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
    color: var(--yellow-primary);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow-primary);
    border-radius: 2px;
    opacity: 0.4;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 36px;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-icon {
    color: var(--green);
    font-size: 16px;
}

/* Hero right visual */
.hero-visual {
    display: none;
}

@media (min-width: 900px) {
    .hero .container {
        display: flex;
        align-items: center;
        gap: 60px;
    }
    .hero-content {
        flex: 1;
    }
    .hero-visual {
        display: flex;
        flex: 0 0 400px;
        justify-content: center;
        align-items: center;
        position: relative;
    }
}

/* ---------- Floating Crypto Card ---------- */
.crypto-card-float {
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}

.crypto-card-float .crypto-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.crypto-card-float .coin-name {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-en);
}

.crypto-card-float .coin-symbol {
    color: var(--text-secondary);
    font-size: 14px;
}

.crypto-card-float .price-change {
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
}

.crypto-card-float .price-big {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-en);
    margin-bottom: 16px;
}

/* Mini chart SVG */
.mini-chart {
    width: 100%;
    height: 60px;
}

.mini-chart path {
    stroke: var(--yellow-primary);
    stroke-width: 2;
    fill: none;
}

.mini-chart .chart-fill {
    fill: url(#chartGrad);
    stroke: none;
}

/* ---------- Section Styles ---------- */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-header h2 .highlight {
    color: var(--yellow-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Feature Cards (Benefits) ---------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--yellow-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow-subtle);
    border-radius: var(--radius-md);
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Steps (Registration) ---------- */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s;
}

.step-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--yellow-glow);
}

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow-primary);
    color: var(--text-inverse);
    font-weight: 800;
    font-size: 18px;
    border-radius: 50%;
    font-family: var(--font-en);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Crypto Ranking Table ---------- */
.ranking-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 14px;
}

.ranking-table th {
    background: var(--bg-tertiary);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ranking-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    white-space: nowrap;
}

.ranking-table tr:hover td {
    background: rgba(240, 185, 11, 0.03);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-en);
}

.price-up { color: var(--green); }
.price-down { color: var(--red); }

/* ---------- Calculator ---------- */
.calculator-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
}

.calc-row {
    margin-bottom: 20px;
}

.calc-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.calc-input-wrap {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.calc-input-wrap:focus-within {
    border-color: var(--yellow-primary);
}

.calc-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-en);
    outline: none;
}

.calc-input::placeholder {
    color: var(--text-tertiary);
}

.calc-select {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.calc-result {
    background: var(--yellow-subtle);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.calc-result-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.calc-result-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--yellow-primary);
    font-family: var(--font-en);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: var(--border-hover);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
    user-select: none;
}

.faq-question:hover {
    background: rgba(255,255,255,0.02);
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s;
}

.faq-item.open .faq-toggle {
    background: var(--yellow-primary);
    color: var(--text-inverse);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ---------- Beginner Guide Cards ---------- */
.guide-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .guide-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s;
    display: block;
    color: var(--text-primary);
}

.guide-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.guide-card-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.guide-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.guide-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--yellow-primary);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- CTA Banner (mid-page) ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
}

.cta-banner h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: 0;
}

.footer-cta-section {
    text-align: center;
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

.footer-cta-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-cta-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    font-family: var(--font-en);
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-about {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--yellow-primary);
}

.footer-disclaimer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ---------- Article Page Styles ---------- */
.article-hero {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.article-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

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

.article-hero h1 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--yellow-primary);
    display: inline-block;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
}

.article-content ul, .article-content ol {
    margin: 16px 0 20px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content .info-box {
    background: var(--yellow-subtle);
    border-left: 4px solid var(--yellow-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content .info-box strong {
    color: var(--yellow-primary);
}

/* Sidebar on desktop */
.article-layout {
    display: flex;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .article-sidebar {
        display: block;
        flex: 0 0 280px;
        position: sticky;
        top: calc(var(--header-h) + 24px);
        align-self: flex-start;
    }
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sidebar-card a {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 0;
}

.sidebar-card a:hover {
    color: var(--yellow-primary);
}

/* ---------- Quiz Styles ---------- */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.quiz-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--yellow-primary);
    border-radius: 3px;
    transition: width 0.4s;
}

.quiz-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--yellow-primary);
    background: var(--yellow-subtle);
}

.quiz-option.correct {
    border-color: var(--green);
    background: rgba(14, 203, 129, 0.1);
}

.quiz-option.wrong {
    border-color: var(--red);
    background: rgba(246, 70, 93, 0.1);
}

/* ---------- Glossary ---------- */
.glossary-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.glossary-filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.glossary-filter-btn.active,
.glossary-filter-btn:hover {
    background: var(--yellow-primary);
    color: var(--text-inverse);
    border-color: var(--yellow-primary);
}

.glossary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glossary-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.glossary-term {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--yellow-primary);
}

.glossary-reading {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.glossary-def {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Blog List ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: block;
    color: var(--text-primary);
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.blog-card-thumb {
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--yellow-subtle);
    color: var(--yellow-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
}

.blog-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 12px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-yellow { color: var(--yellow-primary); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* ---------- Particles background ---------- */
.particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Ensure main content above particles */
.site-header, main, .site-footer {
    position: relative;
    z-index: 1;
}
