
/* Premium Modern Design for Racing List */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary color palette - Racing-inspired premium colors */
    --primary-color: #0a1428;
    --primary-light: #1c2940;
    --secondary-color: #d4af37; /* Gold */
    --accent-color: #c0392b; /* Racing red */
    --neutral-dark: #2c3e50;
    --neutral-light: #ecf0f1;
    
    /* UI elements */
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    
    /* Effects */
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 35px rgba(0,0,0,0.12);
    --btn-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    
    /* Typography */
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 0;
    margin: 0;
    font-weight: 400;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium header with subtle animation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.8rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
}

.logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

header p {
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    color: #ffffff; /* Ensuring text is white */
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Adding subtle shadow for better contrast */
}

/* Race header with premium styling */
.race-header {
    background: linear-gradient(to right, var(--secondary-color), #f5cd47);
    color: var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.race-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 20px 20px;
    z-index: -1;
}

.race-header h1 {
    font-family: var(--header-font);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

.race-header p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    opacity: 0.85;
}

.race-header p i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Premium card sections with subtle hover effects */
section {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-top-color: var(--secondary-color);
}

/* Section headers with modern styling */
h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 12px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
}

h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Enhanced list styling */
ul, ol {
    padding-left: 1.8rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
}

li::marker {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Premium trend card with hover effect */
.key-trend {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: rgba(236, 240, 241, 0.6);
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    position: relative;
}

.key-trend:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateX(5px);
    background-color: rgba(236, 240, 241, 0.9);
}

.key-trend strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Premium data table styling */
.trend-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.trend-table th, .trend-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.trend-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.trend-table th:first-child {
    border-top-left-radius: 12px;
}

.trend-table th:last-child {
    border-top-right-radius: 12px;
}

.trend-table tr:nth-child(even) {
    background-color: rgba(236, 240, 241, 0.4);
}

.trend-table tr:hover {
    background-color: rgba(236, 240, 241, 0.7);
}

.trend-table td {
    border-bottom: 1px solid var(--border-color);
}

.trend-table tr:last-child td {
    border-bottom: none;
}

/* Premium golden nugget insights */
.golden-nugget {
    background: linear-gradient(to right, rgba(250, 241, 204, 0.7), rgba(252, 243, 207, 0.3));
    border-left: 5px solid var(--secondary-color);
    padding: 1.8rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.golden-nugget::before {
    content: "★";
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.golden-nugget h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--header-font);
}

/* Premium call-to-action section */
.call-to-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="8" height="8" fill="rgba(255,255,255,0.03)"/></svg>');
    z-index: 0;
}

.call-to-action h3 {
    color: white;
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.call-to-action p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

/* Premium button styling */
.button {
    display: inline-block;
    background: linear-gradient(to right, var(--secondary-color), #f5cd47);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: var(--btn-shadow);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(to right, #f5cd47, var(--secondary-color));
}

.button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.button:hover i {
    transform: translateX(5px);
}

/* Premium footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    position: relative;
}

footer p {
    margin-bottom: 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.9);
}

/* Premium 2-column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .race-header h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Premium animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a520;
}

/* Interactive elements - tooltips */
.has-tooltip {
    position: relative;
    border-bottom: 1px dotted var(--secondary-color);
    cursor: help;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    width: 200px;
    font-size: 0.9rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.has-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Jump to top button */
.jump-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.jump-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.jump-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
