/* xracing Common Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 32px;
}

.logo-image-nav {
    height: 32px;
    width: auto;
}

.logo-text-nav {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ec4d3b;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

footer a {
    color: #ec4d3b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    padding: 5px;
}

footer a:hover {
    opacity: 0.8;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Logo Styles */
.x {
    color: #ec4d3b;
}

.racing {
    color: #ffffff;
}

.logo-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin: 0;
}

/* Container Utilities */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ec4d3b, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Component Base */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s, background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #ec4d3b;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
}

.card-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.card-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Typography */
h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ec4d3b;
}

h3 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
}

p, ul, li {
    line-height: 1.6;
    margin-bottom: 1rem;
}

ul {
    padding-left: 20px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ec4d3b;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
}

.button:hover {
    background-color: #a02a45;
    transform: translateY(-2px);
}

.button-outline {
    display: inline-block;
    padding: 12px 30px;
    color: #ec4d3b;
    text-decoration: none;
    border: 2px solid #ec4d3b;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
}

.button-outline:hover {
    background-color: #ec4d3b;
    color: #ffffff;
    transform: translateY(-2px);
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #ec4d3b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #a02a45;
}

/* App Store Buttons */
.app-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.store-button {
    height: 50px;
    transition: transform 0.2s;
}

.store-button:hover {
    transform: scale(1.05);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.last-updated {
    font-style: italic;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .card {
        padding: 25px;
        margin: 0;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 40px 10px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-text-nav {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .card {
        padding: 20px 15px;
        max-width: 100%;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .store-button {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 2rem;
    }
}