:root {
    --primary: #da1e28;
    --primary-dark: #b91621;
    --accent: #0078d4;
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6c757d;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, var(--primary) 0%, #b91621 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #ff4d4f;
        --primary-dark: #da1e28;
        --accent: #4dabf7;
        --bg-main: #0d1117;
        --bg-secondary: #161b22;
        --bg-card: #1c2128;
        --text-primary: #e6edf3;
        --text-secondary: #c9d1d9;
        --text-muted: #8b949e;
        --border: #30363d;
        --shadow: rgba(0, 0, 0, 0.4);
        --shadow-hover: rgba(0, 0, 0, 0.6);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
    overflow-x: hidden;
}

header {
    background: var(--gradient);
    color: white;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
header p {
    color: #fff;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>');
    opacity: 0.1;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

nav {
    background: var(--bg-secondary);
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

nav.ptoc{
    margin: 16px 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
}

nav a:hover,
nav a:focus {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

section:hover {
    box-shadow: 0 4px 16px var(--shadow-hover);
    transform: translateY(-2px);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

h2::before {
    content: '';
    margin-right: 0.5rem;
    font-size: 0.9em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--accent);
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-align: justify;
}

strong {
    color: var(--text-primary);
    font-weight: 700;
}

mark {
    background: rgba(218, 30, 40, 0.15);
    color: var(--primary);
    padding: 0.15em 0.3em;
    border-radius: 3px;
    font-weight: 600;
}

aside {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

aside h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(218, 30, 40, 0.1) 0%, rgba(0, 120, 212, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.stat-card h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    margin: 0.5rem 0;
}

.tip-list {
    list-style: none;
    padding: 0;
}

.tip-list li {
    padding: 1rem;
    margin: 0.75rem 0;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tip-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px var(--shadow);
}

.tip-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 0.75rem;
}

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 3px solid var(--primary);
}

footer p {
    text-align: center;
    margin-bottom: 0.5rem;
}

.warning {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning::before {
    content: '⚠';
    font-size: 1.5em;
    margin-right: 0.5rem;
}

/* IMAGE STYLES */
.image-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-hover);
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover .content-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(218, 30, 40, 0) 0%, rgba(218, 30, 40, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.hero-image-container {
    border-radius: 0 0 12px 12px;
    max-height: 480px;
    overflow: hidden;
}

.hero-image-container .content-image {
    object-position: center 30%;
    min-height: 300px;
}

.tactical-image {
    max-width: 100%;
    border: 3px solid var(--primary);
    border-radius: 12px;
    background: var(--bg-secondary);
    padding: 1rem;
}

.stats-image-container {
    margin: 2rem 0 3rem 0;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.betting-types-image {
    float: right;
    max-width: 45%;
    margin: 0 0 1.5rem 2rem;
    shape-outside: margin-box;
}

.stadium-image-container {
    margin: 3rem -2rem;
    border-radius: 0;
    max-height: 500px;
}

.stadium-image-container .content-image {
    object-position: center;
}

.derby-image-container {
    position: relative;
    margin: 2rem 0;
    border: 4px solid var(--primary);
}

.derby-image-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient);
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.derby-image-container:hover::before {
    opacity: 0.3;
}

.image-caption {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
    padding: 0 1rem;
}

details {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border);
}

summary {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details[open] summary {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .betting-types-image {
        float: none;
        max-width: 100%;
        margin: 2rem 0;
    }
    
    .stadium-image-container {
        margin: 2rem -1rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 1.5rem;
    }

    .hero-image-container {
        max-height: 300px;
    }
    
    .stadium-image-container {
        margin: 2rem 0;
        max-height: 350px;
    }
    
    .image-container {
        margin: 1.5rem 0;
    }
    
    .stats-image-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        max-height: 250px;
    }
    
    .hero-image-container .content-image {
        min-height: 200px;
    }
    
    .stadium-image-container {
        max-height: 250px;
    }
}

:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: var(--primary);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .tactical-image {
        background: var(--bg-card);
        border-color: var(--primary);
    }
    
    .stats-image-container {
        background: var(--bg-card);
        border-color: var(--border);
    }
    
    .image-overlay {
        background: linear-gradient(180deg, rgba(255, 77, 79, 0) 0%, rgba(255, 77, 79, 0.2) 100%);
    }
}