/* Custom CSS for 2026 World Cup Betting Guide */
/* Based on BRIEF.md design specification */

:root {
    --dark-green: #0a1a0a;
    --gold: #FFD700;
    --white: #FFFFFF;
    --light-text: #D0C8B0;
    --dark-gray: #1a2a1a;
    --border-dark: #000000;
}

/* Base Typography */
body {
    background-color: var(--dark-green);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

/* Header Styles */
header {
    background-color: var(--dark-green);
}

header a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--gold);
}

/* Navigation */
nav a {
    position: relative;
    font-weight: 600;
    font-size: 15px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* CTA Button */
.btn-cta {
    background-color: var(--gold);
    color: var(--dark-green);
    font-weight: 800;
    border: 2px solid var(--border-dark);
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--white);
    transform: translate(0, -2px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

/* Article Cards */
.article-card {
    background-color: var(--dark-gray);
    border: 3px solid var(--border-dark);
    transition: all 0.3s ease;
    overflow: hidden;
}

.article-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px);
}

.article-card img {
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--gold);
    color: var(--dark-green);
}

.badge-secondary {
    background-color: var(--dark-gray);
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* Section Headers */
.section-header {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--gold);
    letter-spacing: -1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, rgba(26, 42, 26, 0.8) 100%);
    padding: 60px 0;
}

.hero-odds {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 16px;
}

.hero-team {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

/* Focus Card */
.focus-card {
    background-color: var(--dark-gray);
    border: 3px solid var(--gold);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.focus-card h3 {
    font-size: 28px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.odds-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-green);
}

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

.odds-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    border-top: 3px solid var(--gold);
    margin-top: 64px;
}

footer a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold);
}

/* Prose / Article Content */
.prose h2 {
    font-size: 28px;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.prose h3 {
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--white);
}

.prose p {
    line-height: 1.8;
    margin-bottom: 16px;
}

.prose ul, .prose ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.prose li {
    margin-bottom: 8px;
}

.prose a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: var(--white);
}

.prose blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-style: italic;
    background-color: var(--dark-gray);
    margin-bottom: 16px;
}

.prose code {
    background-color: var(--dark-gray);
    color: var(--gold);
    padding: 4px 8px;
    border: 1px solid var(--gold);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.prose pre {
    background-color: var(--dark-gray);
    border: 2px solid var(--gold);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.prose pre code {
    border: none;
    padding: 0;
    background-color: transparent;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--gold);
    margin-bottom: 16px;
}

.prose th {
    background-color: var(--dark-gray);
    color: var(--gold);
    font-weight: 800;
    padding: 12px;
    text-align: left;
    border: 1px solid var(--gold);
}

.prose td {
    padding: 12px;
    border: 1px solid var(--gold);
}

.prose tr:nth-child(even) {
    background-color: rgba(26, 42, 26, 0.5);
}

/* FAQ Section */
.faq-item {
    border-left: 4px solid var(--gold);
    padding-left: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.faq-question {
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--light-text);
    line-height: 1.8;
}

/* Risk Alert */
.risk-alert {
    background-color: var(--dark-gray);
    border: 3px solid var(--gold);
    padding: 24px;
    margin-bottom: 32px;
}

.risk-alert h2 {
    color: var(--gold);
    margin-bottom: 16px;
    border-bottom-color: var(--gold);
}

.risk-alert ul {
    list-style: none;
    margin-left: 0;
}

.risk-alert li {
    color: var(--light-text);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.risk-alert li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

/* Related Articles */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.related-card {
    border: 3px solid var(--border-dark);
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--dark-gray);
}

.related-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
}

.related-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: var(--dark-green);
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-card-title {
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-card:hover .related-card-title {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-odds {
        font-size: 36px;
    }
    
    .section-header {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-card-image {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 3px solid var(--border-dark);
    }
    
    .article-card-content {
        width: 100%;
    }
    
    .prose h2 {
        font-size: 24px;
    }
    
    .prose h3 {
        font-size: 18px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode (default) - override if needed */
@media (prefers-color-scheme: light) {
    body {
        background-color: #f5f5f5;
        color: #000;
    }
    
    header {
        background-color: #fff;
        border-bottom-color: var(--gold);
    }
}

/* Print styles */
@media print {
    header, footer, .article-card {
        border: 1px solid #999;
    }
    
    .btn-cta, .focus-card {
        display: none;
    }
}
