/* Pixel Art Inspired Styles for Veloland - Matching Game Screenshot */

:root {
    /* Game Color Palette from Screenshot */
    --sky-teal: #7FB3D3;
    --mountain-green-1: #90C695;
    --mountain-green-2: #6AB04C;
    --mountain-green-3: #4A7C59;
    --earth-brown: #8B4513;
    --grass-green: #4CAF50;
    --orange-button: #FF6600;
    --orange-border: #CC5500;
    --orange-shadow: #994400;
    --play-green: #4CAF50;
    --play-green-border: #2E7D32;
    --play-green-shadow: #1B5E20;
    --training-blue: #4DD0E1;
    --training-blue-border: #00BCD4;
    --training-blue-shadow: #0097A7;
    --route-purple: #BA68C8;
    --route-purple-border: #9C52A8;
    --route-purple-shadow: #7A4284;
    --purchase-yellow: #FFD700;
    --purchase-yellow-border: #FFC107;
    --purchase-yellow-shadow: #F9A825;
    --gray-button: #808080;
    --gray-border: #606060;
    --gray-shadow: #404040;
    --pixel-dark: #1a1a1a;
    --pixel-light: #ffffff;
    --pixel-border: #000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: transparent;
    color: var(--pixel-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-image: url('/public/images/game-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
.header {
    background-color: transparent;
    border-bottom: none;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
}

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

.logo {
    font-size: 1.5rem;
    color: var(--pixel-light);
    text-decoration: none;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-logo {
    height: 40px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--pixel-light);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--gray-button);
    border: none;
    border-top: 4px solid var(--gray-shadow);
    border-left: 4px solid var(--gray-shadow);
    border-bottom: 4px solid var(--gray-shadow);
    border-right: 4px solid var(--gray-shadow);
    position: relative;
    transition: all 0.1s;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.nav-links a[href="/privacy"] {
    background-color: #52C0C3;
    border-top: 4px solid #369E9F;
    border-left: 4px solid #369E9F;
    border-bottom: 4px solid #369E9F;
    border-right: 4px solid #369E9F;
}

.nav-links a[href="/privacy"]:hover {
    background-color: #45A8AB;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Section with Game Background */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: transparent;
    background-image: none;
    border-bottom: none;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.hero-background {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 600px;
    max-width: 90vw;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block;
    transform: translateX(15px);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--pixel-light);
    margin-top: 0;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--pixel-light);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    animation: pixel-bounce 0.3s ease;
    background-color: var(--orange-button);
    border: none;
    border-top: 4px solid var(--orange-shadow);
    border-left: 4px solid var(--orange-shadow);
    padding: 1rem 2rem;
    display: inline-block;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: -4px;
    height: 4px;
    background-color: var(--orange-shadow);
}

.hero-tagline {
    font-size: 1rem;
    color: var(--pixel-light);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    background-color: var(--orange-button);
    border: none;
    border-top: 3px solid var(--orange-shadow);
    border-left: 3px solid var(--orange-shadow);
    padding: 0.5rem 1rem;
    display: inline-block;
    position: relative;
}

.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: -3px;
    height: 3px;
    background-color: var(--orange-shadow);
}

.app-store-badge {
    margin: 2rem 0;
    text-align: center;
}

.app-store-badge a {
    display: inline-block;
}

.availability {
    font-size: 0.75rem;
    color: var(--pixel-light);
    margin-top: 1rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Scroll Hint Button */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--pixel-light);
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.scroll-hint:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.scroll-hint-text {
    font-size: 0.6rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-hint-arrow {
    font-size: 1.25rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--sky-teal);
}

.features h2 {
    font-size: 2rem;
    color: var(--pixel-light);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    background-color: var(--orange-button);
    border: none;
    border-top: 4px solid var(--orange-shadow);
    border-left: 4px solid var(--orange-shadow);
    padding: 1rem 2rem;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: -4px;
    height: 4px;
    background-color: var(--orange-shadow);
}

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

.feature {
    padding: 2rem;
    text-align: center;
    transition: all 0.1s;
    border: none;
    position: relative;
}

.feature:nth-child(1) {
    background-color: var(--play-green);
    border-top: 4px solid var(--play-green-border);
    border-left: 4px solid var(--play-green-border);
}

.feature:nth-child(1)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: -4px;
    height: 4px;
    background-color: var(--play-green-shadow);
}

.feature:nth-child(2) {
    background-color: var(--training-blue);
    border-top: 4px solid var(--training-blue-border);
    border-left: 4px solid var(--training-blue-border);
}

.feature:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: -4px;
    height: 4px;
    background-color: var(--training-blue-shadow);
}

.feature:nth-child(3) {
    background-color: var(--route-purple);
    border-top: 4px solid var(--route-purple-border);
    border-left: 4px solid var(--route-purple-border);
}

.feature:nth-child(3)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: -4px;
    height: 4px;
    background-color: var(--route-purple-shadow);
}

.feature:nth-child(4) {
    background-color: var(--purchase-yellow);
    border-top: 4px solid var(--purchase-yellow-border);
    border-left: 4px solid var(--purchase-yellow-border);
}

.feature:nth-child(4)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: -4px;
    height: 4px;
    background-color: var(--purchase-yellow-shadow);
}

.feature:hover {
    transform: none;
}

.feature h3 {
    font-size: 1rem;
    color: var(--pixel-light);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.feature p {
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--pixel-light);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    background-color: transparent;
    border-top: none;
    padding: 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--pixel-light);
}

.footer a {
    color: var(--pixel-light);
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.footer a:hover {
    text-decoration: underline;
}

/* Features Showcase Section */
.features-showcase {
    background: rgba(0, 0, 0, 0.6);
    padding: 6rem 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    min-width: 0;
    max-width: 50%;
}

.feature-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.placeholder-image {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.feature-text {
    flex: 1;
    min-width: 0;
    max-width: 50%;
    padding: 0 1rem;
}

.feature-text h3 {
    font-size: 1rem;
    color: var(--pixel-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.feature-text p {
    font-size: 0.7rem;
    line-height: 2;
    color: var(--pixel-light);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
    opacity: 0.85;
}

/* Site Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.75);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-cta {
    margin-bottom: 3rem;
}

.newsletter-cta h4 {
    font-size: 1rem;
    color: var(--pixel-light);
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.newsletter-cta p {
    font-size: 0.65rem;
    color: var(--pixel-light);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.newsletter-btn {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--pixel-light);
    background-color: var(--play-green);
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    border: none;
    transition: all 0.15s ease;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.newsletter-btn:hover {
    background-color: var(--play-green-border);
}

.newsletter-btn:active {
    background-color: var(--play-green-shadow);
}

.footer-links {
    margin-bottom: 2rem;
    font-size: 0.55rem;
}

.footer-links a {
    color: var(--pixel-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links .divider {
    color: var(--pixel-light);
    opacity: 0.3;
    margin: 0 0.75rem;
}

.copyright {
    font-size: 0.5rem;
    color: var(--pixel-light);
    opacity: 0.4;
}

/* Legal Pages (Normal Font) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.8;
    color: var(--pixel-dark);
    background-color: var(--pixel-light);
}

.legal-content h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--pixel-dark);
    margin-bottom: 2rem;
    text-shadow: none;
    background-color: transparent;
    border: none;
    padding: 0;
    display: block;
    position: static;
}

.legal-content h1::after {
    display: none;
}

.legal-content h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--orange-button);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--orange-button);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes pixel-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        width: 90vw;
        max-width: 90vw;
    }
    
    .scroll-hint {
        bottom: 1.5rem;
    }
    
    .scroll-hint-text {
        font-size: 0.5rem;
    }
    
    .scroll-hint-arrow {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 0.8rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .nav-links {
        gap: 1rem;
        justify-content: center;
        margin-left: 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .features h2 {
        font-size: 1.5rem;
    }
    
    /* Features Showcase Responsive */
    .features-showcase {
        padding: 4rem 1rem;
    }
    
    .feature-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .feature-row.reverse {
        flex-direction: column;
    }
    
    .feature-image {
        max-width: 100%;
    }
    
    .feature-text {
        max-width: 100%;
        padding: 0;
    }
    
    .feature-text h3 {
        font-size: 0.85rem;
    }
    
    .feature-text p {
        font-size: 0.6rem;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    /* Footer Responsive */
    .site-footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .newsletter-cta h4 {
        font-size: 0.85rem;
    }
    
    .newsletter-btn {
        font-size: 0.6rem;
        padding: 0.75rem 1.25rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links .divider {
        display: none;
    }
}

/* Pixel Art Effects */
.pixel-border {
    border: 4px solid var(--pixel-border);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}


