/* Title Race Page Styles */

:root {
    --accent-color: #e2001a;
    --secondary-color: #1e272e;
    --tertiary-color: #f1f2f6;
    --text-color: #2d3436;
    --light-text: #f5f5f5;
    --ajax-color: #e2001a;
    --psv-color: #FF0000;
    --border-radius: 6px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Hero Section */
.title-race-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/eredivisie-title-race-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.intro-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.final-standings {
    margin-bottom: 3rem;
}

.final-standings h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.standings-table thead {
    background-color: var(--secondary-color);
    color: white;
}

.standings-table th, 
.standings-table td {
    padding: 1rem;
    text-align: center;
}

.standings-table tbody tr {
    border-bottom: 1px solid #eee;
}

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

.standings-table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

.champion {
    background-color: rgba(255, 0, 0, 0.1) !important;
}

.runner-up {
    background-color: rgba(226, 0, 26, 0.1) !important;
}

.trophy-icon {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.title-race-summary {
    max-width: 1000px;
    margin: 0 auto;
}

.summary-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: center;
}

.key-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.key-stat {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.key-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Final Day Section */
.final-day-section {
    padding: 5rem 0;
}

.final-day-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.final-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.match-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.ajax-match .match-header {
    background-color: var(--ajax-color);
}

.psv-match .match-header {
    background-color: var(--psv-color);
}

.match-header {
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.match-date {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.match-header h3 {
    font-size: 1.8rem;
    margin: 0;
}

.match-content {
    padding: 2rem;
}

.team-lineups {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.lineup {
    flex: 1;
    min-width: 200px;
}

.lineup h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.lineup ul {
    list-style: none;
    padding: 0;
}

.lineup li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.match-timeline {
    margin-bottom: 2rem;
}

.match-timeline h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #eee;
}

.timeline li {
    position: relative;
    padding-left: 30px;
    padding-bottom: 1.5rem;
}

.timeline li:before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
}

.timeline li.goal:before {
    background-color: #4caf50;
}

.timeline li.yellow:before {
    background-color: #ffeb3b;
}

.timeline li.red:before {
    background-color: #f44336;
}

.timeline li.sub:before {
    background-color: #2196f3;
}

.timeline li.news:before {
    background-color: #9c27b0;
}

.timeline li.end:before {
    background-color: #795548;
}

.time {
    font-weight: 700;
    color: var(--text-color);
    margin-right: 0.5rem;
}

.match-stats h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.stat-row {
    margin-bottom: 1.5rem;
}

.stat-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-bar {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-weight: 500;
}

.ajax {
    background-color: var(--ajax-color);
}

.opponent {
    background-color: #666;
}

.psv {
    background-color: var(--psv-color);
}

.post-match-reactions {
    padding-top: 2rem;
}

.post-match-reactions h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.reactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.reaction-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: rgba(226, 0, 26, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.reaction-card blockquote {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem 0;
    padding: 0;
}

.reaction-author {
    text-align: right;
    font-style: italic;
    color: #666;
}

/* Turning Points Section */
.turning-points-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #ddd;
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 80px;
}

.event-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    z-index: 1;
}

.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.event-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.event-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-impact {
    display: flex;
    align-items: center;
}

.impact-label {
    margin-right: 1rem;
    font-weight: 600;
}

.impact-meter {
    display: flex;
}

.impact-level {
    width: 20px;
    height: 10px;
    background-color: var(--accent-color);
    margin-right: 5px;
}

.impact-level.empty {
    background-color: #eee;
}

.impact-meter.finished .impact-level {
    background-color: black;
}

/* Season Analysis */
.season-analysis {
    padding: 5rem 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.analysis-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.wide-card {
    grid-column: 1 / -1;
}

.analysis-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.analysis-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.stats-comparison {
    margin-top: 2rem;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    font-weight: 600;
}

.ajax-header {
    color: white;
    background-color: var(--ajax-color);
    padding: 1rem;
    text-align: center;
}

.psv-header {
    color: white;
    background-color: var(--psv-color);
    padding: 1rem;
    text-align: center;
}

.team-header {
    padding: 1rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.comparison-row:last-child {
    border-bottom: none;
}

.stat-name {
    padding: 1rem;
    font-weight: 500;
}

.ajax-value, .psv-value {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.ajax-value {
    color: var(--ajax-color);
}

.psv-value {
    color: var(--psv-color);
}

.coach-quote {
    background-color: #f9f9f9;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.coach-quote blockquote {
    margin: 0;
    font-style: italic;
}

.coach-quote cite {
    display: block;
    margin-top: 1rem;
    text-align: right;
    font-style: normal;
    font-weight: 600;
}

.historical-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.example {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.example h4 {
    color: var(--text-color);
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.analysis-conclusion {
    font-weight: 600;
    margin-top: 1.5rem;
}

.player-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.player-highlight {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.player-highlight h4 {
    color: var(--accent-color);
    margin-bottom: 0.7rem;
}

.player-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.8rem;
}

.fan-reactions {
    margin-top: 2rem;
}

.fan-reaction {
    background-color: #f9f9f9;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.fan-reaction:last-child {
    margin-bottom: 0;
}

.fan-reaction blockquote {
    margin: 0;
    font-style: italic;
}

.fan-reaction cite {
    display: block;
    margin-top: 1rem;
    text-align: right;
    font-style: normal;
    font-weight: 600;
}

/* Looking Forward */
.looking-forward {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.forward-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.forward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.forward-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.forward-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.expert-view {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 1200px;
    margin: 0 auto;
}

.expert-view h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.expert-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.expert-image {
    flex: 1;
    max-width: 250px;
}

.expert-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.expert-quote {
    flex: 3;
}

.expert-quote blockquote {
    margin: a;
    font-style: italic;
    line-height: 1.6;
}

.expert-quote p {
    margin-bottom: 1rem;
}

/* Fan Engagement */
.fan-engagement {
    padding: 5rem 0;
}

.engagement-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.engagement-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 1.5rem;
}

.engagement-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engagement-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.engagement-info {
    flex: 1;
}

.engagement-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.engagement-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.engagement-link:hover {
    text-decoration: underline;
}

.message-to-fans {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.message-to-fans h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.message-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.message-signature {
    text-align: right;
    font-style: italic;
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: white;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.cta-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.cta-card:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.cta-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .final-day-grid,
    .analysis-grid,
    .forward-grid,
    .engagement-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .expert-content {
        flex-direction: column;
    }
    
    .expert-image {
        max-width: 200px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .reactions-grid {
        grid-template-columns: 1fr;
    }
    
    .player-highlights {
        grid-template-columns: 1fr;
    }
    
    .historical-examples {
        grid-template-columns: 1fr;
    }
    
    .comparison-header,
    .comparison-row {
        font-size: 0.9rem;
    }
    
    .engagement-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .engagement-info {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .stat-row {
        flex-direction: column;
    }
    
    .standings-table {
        font-size: 0.8rem;
    }
    
    .standings-table th, 
    .standings-table td {
        padding: 0.5rem;
    }
    
    .team-lineups {
        flex-direction: column;
    }
}