/*
 * Newspaper / Week Summary Screen Styles (Memphis Comic Style)
 */

.week-summary-newspaper {
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
}

.newspaper-wrapper {
    width: 100%;
    max-width: 1200px;
    background: #fdfaf5; /* Off-white paper background */
    border: 8px solid var(--border-color);
    box-shadow: 12px 12px 0 #141414;
    padding: 20px;
    color: #141414;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
}

/* --- 1. Header (Masthead & Ads) --- */
.newspaper-header {
    border-bottom: 6px double #141414;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.newspaper-masthead {
    text-align: center;
    margin-bottom: 10px;
}

.newspaper-title {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    color: var(--accent-color);
    text-shadow: 4px 4px 0 #141414;
    margin: 0;
}

.newspaper-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 4px;
    color: #141414;
    text-transform: uppercase;
}

.newspaper-date {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
    border-top: 1px solid #ccc;
    padding-top: 5px;
    display: inline-block;
}

.newspaper-banner-ads {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.banner-ad {
    flex: 1;
    text-align: center;
    background: var(--accent-3);
    border: 2px solid #141414;
    padding: 8px 12px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: #141414;
    box-shadow: 3px 3px 0 #141414;
    transform: skewX(-5deg);
}

/* --- 2. Main Content Grid --- */
.newspaper-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Lead story and highlights on the left, stats on the right */
    gap: 20px;
    border-top: 1px solid #141414;
    padding-top: 20px;
}

/* --- Lead Story / Recap --- */
.lead-story-section {
    grid-column: 1 / 2;
    border-right: 1px solid #ccc;
    padding-right: 20px;
    position: relative;
}

.week-recap-panel {
    /* Styles are mostly handled by week-recap-panel.css */
    margin: -10px 0;
}

/* --- Race Results Grid --- */
.race-results-grid {
    grid-column: 1 / 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    border-top: 4px double #141414;
    padding-top: 20px;
}

.race-result-card {
    background: var(--accent-4);
    border: 3px solid #141414;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0 #141414;
}

.race-card-header {
    border-bottom: 2px dashed #141414;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
.race-title {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #141414;
    margin: 0;
}
.track-name {
    font-size: 0.8rem;
    color: #444;
}
.race-winner {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    color: #141414;
    text-align: center;
}
.winner-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}
.winner-name {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.race-result-card .comic-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.6;
}
.race-result-card .victory-burst {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-weight: 900;
    color: var(--accent-color);
    transform: rotate(10deg);
}

/* --- Stats & Highlights Sidebar --- */
.stats-sidebar {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    border: 4px double #141414;
    padding: 15px;
    background: #fff;
}

.sidebar-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    color: #141414;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 var(--accent-3);
}

.highlight-item {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 5px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 3px;
}

.betting-section {
    /* Override background for earnings panel */
    padding: 0;
    border: none;
    background: transparent;
}

.earnings-panel {
    /* Match container background */
    background: #fff !important;
    border: 4px double #141414 !important;
    box-shadow: none !important;
    padding: 15px !important;
}

/* --- Fun Facts Section (Full Width Footer Article) --- */
.fun-facts-section {
    grid-column: 1 / -1;
    border-top: 4px double #141414;
    padding-top: 20px;
}

.comic-panel {
    border: 4px solid #141414;
    padding: 20px;
    background: var(--accent-2);
    box-shadow: 6px 6px 0 var(--accent-3);
    position: relative;
}

.comic-panel .comic-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    text-align: center;
    color: #141414;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.fun-fact-bubble {
    position: relative;
    background: #fff;
    border: 2px solid #141414;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 3px 3px 0 #141414;
}

.fun-fact-bubble .fact-text {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #141414;
}

.fun-fact-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #fff;
    filter: drop-shadow(0 2px 0 #141414);
}


/* --- 3. Footer (Next Week Teaser & Button) --- */
.newspaper-footer {
    border-top: 6px double #141414;
    padding-top: 15px;
}

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

.next-week-teaser h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent-5);
    margin: 0 0 5px 0;
}

.next-week-teaser p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
}

.newspaper-button {
    position: relative;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: var(--accent-color);
    border: 4px solid #141414;
    padding: 15px 30px;
    cursor: pointer;
    box-shadow: 6px 6px 0 #141414;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.newspaper-button:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 #141414;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .newspaper-content {
        grid-template-columns: 1fr;
    }
    .lead-story-section {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ccc;
        padding-bottom: 20px;
    }
    .stats-sidebar {
        grid-column: 1 / -1;
    }
    .newspaper-title {
        font-size: 3rem;
    }
    .newspaper-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .newspaper-title {
        font-size: 2.5rem;
    }
    .lead-article .headline {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}