/* ============================================================================
   SHARKBYTEZ — "ISSUE" THEME (structured layout, original dark site look)
   ============================================================================
   Same class hooks as before (.newspaper-backdrop / .newspaper-page /
   .newspaper-header / .newspaper-grid / etc.) so index.html and
   newspaper-theme.js don't need any changes — this file just restyles
   everything back to the site's normal dark navy/orange/cyan look instead
   of the vintage newsprint look, and organizes the featured article and
   the archive list into their own clearly bordered blocks.
   ============================================================================ */

/* 1. BACKDROP — just the site's normal dark background, no paper-stack effect */
.newspaper-backdrop {
    min-height: 100vh;
    background-color: var(--bg);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 2. PAGE WRAPPER — plain width constraint, no card styling of its own
   (the main article and archive each get their own block below) */
.newspaper-page {
    max-width: 1100px;
    width: 100%;
    color: var(--text);
    font-family: var(--font-body);
    box-sizing: border-box;
}

/* 3. MASTHEAD */
.newspaper-header {
    text-align: center;
    border-top: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    padding: 14px 0;
    margin-bottom: 32px;
}
.masthead-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 8px 0;
    color: var(--text);
    text-shadow: 0 0 30px rgba(255,138,61,0.35);
}
.issue-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* 4. STRUCTURAL GRID */
.newspaper-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 28px;
    align-items: start;
}
.newspaper-main-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.main-content-block.image-block {
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius, 16px);
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                linear-gradient(135deg, var(--cyan), var(--orange)) border-box;
    box-shadow: 0 0 24px rgba(34,211,238,0.18), 0 0 30px rgba(255,138,61,0.22);
}
.main-content-block.image-block:empty {
    display: none;
}
.main-content-block.image-block .comic-panel {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    clip-path: none;
    border-radius: 0;
}

/* 5. MAIN ARTICLE — its own defined block, matching the site's card language */
.main-content-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius, 16px);
    padding: 28px 32px;
}
.main-content-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    line-height: 1.15;
    margin: 14px 0 8px;
    color: var(--text);
}
.main-content-block .editorial-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
}
.main-content-block .editorial-body p {
    margin-bottom: 16px;
}
.lead-paragraph::first-letter {
    font-size: 2.6rem;
    float: left;
    margin: 4px 8px 0 0;
    line-height: 0.85;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--orange);
}

/* 6. SIDEBAR — matching block treatment, stacked widgets each their own card */
.newspaper-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius, 16px);
    padding: 18px 20px;
}
.sidebar-widget h3 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--cyan);
    margin: 0 0 10px;
}
.sidebar-widget p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-dim);
    margin: 0;
}

/* 7. INLINE BODY IMAGES (mid-article, not the featured comic image) */
.main-content-block .editorial-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 10px;
    border: 1px solid var(--line);
}

/* Featured comic image keeps the site's standard orange-glow treatment —
   no override needed here now, .comic-panel from style.css already fits
   this dark layout natively. */

/* 8. TRADINGVIEW WIDGET SLOT */
.newspaper-tradingview-slot {
    grid-column: 1 / -1;
    min-height: 60px;
    margin-top: 32px;
}
.newspaper-tradingview-slot:empty::before {
    content: 'TradingView widget goes here';
    display: block;
    text-align: center;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius, 16px);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 9. OLDER ISSUES — its own defined block wrapping the archive grid */
.newspaper-archive {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius, 16px);
    padding: 26px 28px;
    margin-top: 32px;
}
.newspaper-archive h2 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin: 0 0 18px;
}
.newspaper-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 700px) {
    .newspaper-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.newspaper-archive-card {
    text-decoration: none;
    color: var(--text);
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.newspaper-archive-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,138,61,0.5);
}
.newspaper-archive-card .thumb {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--surface);
}
.newspaper-archive-card .card-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    font-weight: 700;
    margin: 10px 12px 4px;
}
.newspaper-archive-card h3 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    line-height: 1.3;
    margin: 0 12px 12px;
    color: var(--text);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .newspaper-grid {
        grid-template-columns: 1fr;
    }
    .main-content-block {
        padding: 22px 20px;
    }
}
