/* Font Face Declarations */
@font-face {
    font-family: 'Formula1';
    src: url('./assets/Formula1-Bold_web_0.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Formula1';
    src: url('./assets/Formula1-Regular_web_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties - Dark Racing Theme */
:root {
    --bg: #1a1a1a;
    --text: #ffffff;
    --accent: #EE0000;
    --highlight: #FFD700;
    --border: #404040;
    --max-width: 1600px;
    --base-font-size: 16px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: 'Formula1', sans-serif;
    font-weight: normal;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Formula1', sans-serif;
    font-weight: bold;
    color: var(--text);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: normal;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-link:hover {
    color: var(--accent);
    background-color: rgba(220, 20, 60, 0.15);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
    background-color: var(--bg);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: normal;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text);
    font-weight: bold;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
}

/* Driver Cards Section */
.drivers-section {
    padding: 4rem 0;
    background-color: var(--bg);
    text-align: center;
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 110rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.driver-card {
    background-color: var(--bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: left;
}

.driver-card:hover {
    border-color: var(--accent);
}

.driver-image {
    width: 100%;
    height: 28rem;
    overflow: hidden;
}

.driver-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-info {
    padding: 2rem;
}

.driver-name {
    margin-bottom: 1rem;
}

.driver-name a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.driver-name a:hover {
    color: var(--highlight);
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.ca-label {
    color: var(--text);
    font-weight: normal;
    white-space: nowrap;
}

.ca-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--text);
    background: none;
    border: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background-color: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.copy-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* Live Stream Section */
.live-section {
    padding: 4rem 0;
    background-color: var(--bg);
}

.stream-container {
    max-width: 56.25rem;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--bg);
    border: 1px solid var(--border);
}

.stream-container iframe {
    width: 100%;
    height: 31.25rem;
    border: none;
    background: var(--text);
}

.stream-placeholder {
    text-align: center;
    padding: 1rem;
    color: var(--text);
    font-style: italic;
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 0;
    background-color: var(--bg);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 50rem;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 1rem;
    padding: 1.5rem;
    min-width: 8rem;
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--highlight);
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--text);
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Prize Pool Section */
.prize-section {
    padding: 4rem 0;
    background-color: var(--bg);
}

.prize-content {
    max-width: 75rem;
    margin: 0 auto;
}

.prize-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.prize-item {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.prize-item:hover {
    border-color: var(--accent);
    transform: translateY(-0.25rem);
}

.prize-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.prize-item h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: bold;
}

.prize-item p {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.6;
    opacity: 0.9;
}

.prize-item p strong {
    color: var(--highlight);
    font-weight: bold;
}

.prize-highlight {
    background: linear-gradient(135deg, rgba(238, 0, 0, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--accent);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prize-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.prize-highlight h3 {
    font-size: 1.75rem;
    color: var(--highlight);
    font-weight: bold;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Socials Section */
.socials-section {
    padding: 4rem 0;
    background-color: var(--bg);
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 1.5rem;
    max-width: 37.5rem;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-weight: normal;
}

.social-link:hover {
    background-color: rgba(220, 20, 60, 0.15);
    border-color: var(--accent);
}

.social-link i {
    font-size: 1.25rem;
    color: var(--accent);
}

.x-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.social-link .x-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0;
    margin-right: 0.75rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    color: var(--text);
}

/* Copy Success State */
.copy-success {
    background-color: var(--highlight) !important;
    color: var(--text) !important;
}

/* Mobile Responsive */
@media (max-width: 48rem) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
        min-height: 70vh;
    }
    
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    .drivers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 42rem;
        padding: 0 1rem;
    }
    
    .socials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contract-address {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .ca-text {
        text-align: center;
        white-space: normal;
        word-break: break-all;
    }
    
    .stream-container iframe {
        height: 18.75rem;
    }
    
    .driver-image {
        height: 24rem;
    }
    
    .prize-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .prize-item {
        padding: 1.5rem;
    }
    
    .prize-item i {
        font-size: 2rem;
    }
    
    .prize-item h3 {
        font-size: 1.25rem;
    }
    
    .prize-item p {
        font-size: 1rem;
    }
    
    .prize-highlight {
        padding: 1.5rem;
    }
    
    .prize-highlight h3 {
        font-size: 1.5rem;
    }
    
    .countdown-container {
        gap: 0.75rem;
    }
    
    .countdown-item {
        padding: 1rem;
        min-width: 6rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
}

@media (max-width: 30rem) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .drivers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stream-container iframe {
        height: 15.625rem;
    }
    
    .driver-image {
        height: 22rem;
    }
    
    .prize-item {
        padding: 1.25rem;
    }
    
    .prize-item i {
        font-size: 1.75rem;
    }
    
    .prize-item h3 {
        font-size: 1.125rem;
    }
    
    .prize-highlight {
        padding: 1.25rem;
    }
    
    .prize-highlight h3 {
        font-size: 1.25rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        padding: 0.75rem;
        min-width: 5rem;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
}

/* Desktop Grid Override for Drivers */
@media (min-width: 48.0625rem) {
    .drivers-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 110rem;
        padding: 0 2rem;
        gap: 1.5rem;
    }
} 