/* ═══════════════════════════════════════════
   AI Song Checker — Blog Report Design v1.0
   Editorial / Data-Journalism Aesthetic
   Fonts: Instrument Serif (display) + DM Sans (body)
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
    --report-bg: #08080d;
    --report-surface: #0e0e16;
    --report-surface-2: #141420;
    --report-border: rgba(255,255,255,0.06);
    --report-border-accent: rgba(249,160,63,0.25);
    --report-text: #b8b8c8;
    --report-text-muted: #6e6e82;
    --report-heading: #f0f0f5;
    --report-accent: #f9a03f;
    --report-accent-2: #e06caa;
    --report-accent-glow: rgba(249,160,63,0.08);
    --report-green: #5de8a0;
    --report-red: #f06868;
    --report-blue: #68a8f0;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ── Page-Level ── */
body.blog-report-page {
    font-family: var(--font-body);
    background: var(--report-bg);
    color: var(--report-text);
    -webkit-font-smoothing: antialiased;
}

body.blog-report-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(249,160,63,0.03) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 85% 20%, rgba(224,108,170,0.02) 0%, transparent 60%);
}

/* Grain texture overlay */
body.blog-report-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header Override for Blog ── */
.blog-report-page .report-header {
    border-bottom: 1px solid var(--report-border);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.blog-report-page .report-header .logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--report-text-muted);
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-report-page .report-header .logo:hover { color: var(--report-heading); }

.blog-report-page .report-header nav {
    display: flex;
    gap: 28px;
}
.blog-report-page .report-header nav a {
    font-size: 0.82rem;
    color: var(--report-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.blog-report-page .report-header nav a:hover { color: var(--report-heading); }

/* ── Article Container ── */
.report-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    position: relative;
    z-index: 1;
}

/* ── Hero / Title Area ── */
.report-hero {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--report-border);
}

.report-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--report-accent);
    margin-bottom: 20px;
    opacity: 0;
    animation: reportFadeUp 0.6s ease forwards;
}

.report-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--report-accent);
    border-radius: 50%;
    animation: reportPulse 2s ease-in-out infinite;
}

.report-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--report-heading);
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    opacity: 0;
    animation: reportFadeUp 0.6s ease 0.1s forwards;
}

.report-hero h1 em {
    font-style: italic;
    color: var(--report-accent);
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 0.82rem;
    color: var(--report-text-muted);
    opacity: 0;
    animation: reportFadeUp 0.6s ease 0.2s forwards;
}

.report-meta .divider {
    width: 3px;
    height: 3px;
    background: var(--report-text-muted);
    border-radius: 50%;
}

.report-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 3px 10px;
    background: rgba(93,232,160,0.08);
    color: var(--report-green);
    border: 1px solid rgba(93,232,160,0.15);
    border-radius: 4px;
    letter-spacing: 0.03em;
}

/* ── Key Stats Grid ── */
.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--report-border);
    border: 1px solid var(--report-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 36px 0 44px;
    opacity: 0;
    animation: reportFadeUp 0.6s ease 0.3s forwards;
}

.report-stat-card {
    background: var(--report-surface);
    padding: 24px 20px;
    text-align: center;
    transition: background 0.3s;
}
.report-stat-card:hover {
    background: var(--report-surface-2);
}

.report-stat-card .value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--report-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.report-stat-card .value.accent { color: var(--report-accent); }
.report-stat-card .value.green { color: var(--report-green); }

.report-stat-card .label {
    font-size: 0.72rem;
    color: var(--report-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

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

/* ── Table of Contents ── */
.report-toc {
    background: var(--report-surface);
    border: 1px solid var(--report-border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 0 0 48px;
}

.report-toc h3 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--report-text-muted);
    margin-bottom: 16px;
}

.report-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.report-toc li {
    counter-increment: toc;
    margin-bottom: 8px;
}

.report-toc li a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--report-text);
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}
.report-toc li a:hover { color: var(--report-accent); }

.report-toc li a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--report-text-muted);
    min-width: 20px;
}

/* ── Body Content ── */
.report-content p {
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--report-text);
    margin-bottom: 22px;
}

.report-content strong {
    color: var(--report-heading);
    font-weight: 600;
}

/* ── Section Headings ── */
.report-content h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--report-heading);
    letter-spacing: -0.02em;
    margin: 64px 0 24px;
    padding-top: 40px;
    border-top: 1px solid var(--report-border);
    line-height: 1.15;
}

.report-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.report-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--report-heading);
    margin: 36px 0 16px;
    letter-spacing: -0.01em;
}

/* ── Data Tables ── */
.report-table-wrap {
    margin: 28px 0 32px;
    border: 1px solid var(--report-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--report-surface);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.report-table thead {
    background: var(--report-surface-2);
}

.report-table th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--report-text-muted);
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--report-border);
}

.report-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--report-border);
    color: var(--report-text);
    font-variant-numeric: tabular-nums;
    transition: background 0.15s;
}

.report-table tbody tr:last-child td { border-bottom: none; }

.report-table tbody tr:hover td {
    background: rgba(249,160,63,0.03);
}

.report-table td strong,
.report-table td.highlight {
    color: var(--report-heading);
    font-weight: 600;
}

.report-table .row-accent td {
    background: rgba(249,160,63,0.04);
}
.report-table .row-accent td:first-child {
    box-shadow: inset 3px 0 0 var(--report-accent);
}

.report-source {
    font-size: 0.76rem;
    color: var(--report-text-muted);
    font-style: italic;
    margin-top: -24px;
    margin-bottom: 28px;
    padding: 0 4px;
}

/* ── Exclusive Data Box ── */
.report-exclusive {
    position: relative;
    margin: 44px 0;
    padding: 32px;
    background: var(--report-surface);
    border: 1px solid var(--report-border-accent);
    border-radius: 12px;
    overflow: hidden;
}

.report-exclusive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--report-accent), var(--report-accent-2));
}

.report-exclusive-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--report-accent), var(--report-accent-2));
    color: #fff;
    border-radius: 4px;
    margin-bottom: 16px;
}

.report-exclusive h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--report-heading);
    margin: 0 0 20px !important;
}

/* ── CTA Blocks ── */
.report-cta {
    position: relative;
    margin: 44px 0;
    padding: 28px 32px;
    background: var(--report-surface);
    border: 1px solid var(--report-border);
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s;
}
.report-cta:hover {
    border-color: var(--report-border-accent);
}

.report-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--report-accent), var(--report-accent-2), var(--report-accent));
    opacity: 0;
    transition: opacity 0.3s;
}
.report-cta:hover::after { opacity: 1; }

.report-cta p {
    margin: 0 !important;
    font-size: 0.95rem !important;
}

.report-cta a {
    color: var(--report-accent) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.report-cta a:hover { color: var(--report-heading) !important; }

/* ── FAQ Section ── */
.report-faq {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--report-border);
}

.report-faq > h2 {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.report-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--report-border);
}

.report-faq-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--report-heading);
    margin: 0 0 12px !important;
    cursor: default;
}

.report-faq-item p {
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    color: var(--report-text) !important;
    margin-bottom: 0 !important;
}

/* ── Related Articles ── */
.report-related {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--report-border);
}

.report-related h2 {
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: var(--report-text-muted) !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
}

.report-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
}

.report-related li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--report-surface);
    border-radius: 8px;
    color: var(--report-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.report-related li a:hover {
    background: var(--report-surface-2);
    color: var(--report-accent);
    transform: translateX(4px);
}

.report-related li a::after {
    content: '→';
    color: var(--report-text-muted);
    transition: color 0.2s;
}
.report-related li a:hover::after { color: var(--report-accent); }

/* ── Footer ── */
.report-footer {
    border-top: 1px solid var(--report-border);
    padding: 36px 24px;
    text-align: center;
    color: var(--report-text-muted);
    font-size: 0.82rem;
    max-width: 900px;
    margin: 60px auto 0;
}
.report-footer a {
    color: var(--report-text);
    text-decoration: none;
    transition: color 0.2s;
}
.report-footer a:hover { color: var(--report-accent); }

/* ── Animations ── */
@keyframes reportFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reportPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Scroll Reveal ── */
.report-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.report-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .report-article { padding: 40px 16px 60px; }
    .report-hero h1 { font-size: 1.85rem; }
    .report-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .report-stat-card .value { font-size: 1.5rem; }
    .report-table { font-size: 0.8rem; }
    .report-table th, .report-table td { padding: 10px 12px; }
    .report-content h2 { font-size: 1.5rem; margin-top: 48px; }
    .report-exclusive { padding: 24px 20px; }
    .report-cta { padding: 22px 20px; }
}

@media (max-width: 400px) {
    .report-stats-grid { grid-template-columns: 1fr; }
}
