/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
}

h2 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #1d1d1f;
}

h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #424245;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #007AFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007AFF;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main {
    min-height: 100vh;
}

/* Featured Game Section */
.featured-game {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-info h2 {
    font-size: 1.2rem;
    color: #007AFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.featured-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1d1d1f, #424245);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.game-description {
    color: #6e6e73;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.game-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Game Frame Containers */
.game-frame-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-frame-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.game-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.featured-frame {
    height: 500px;
}

/* Games Section */
.games-section {
    padding: 4rem 0;
    background: #ffffff;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

/* Game Cards */
.game-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* Game Cover Styles */
.game-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.game-cover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 2;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cover-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.cover-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cover-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Game Cover Color Variations */
.game-cover-1 {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
}

.game-cover-2 {
    --primary-color: #5856D6;
    --secondary-color: #AF52DE;
}

.game-cover-3 {
    --primary-color: #FF6B6B;
    --secondary-color: #FF8E53;
}

.game-cover-4 {
    --primary-color: #4ECDC4;
    --secondary-color: #45B7D1;
}

.game-cover-5 {
    --primary-color: #45B7D1;
    --secondary-color: #007AFF;
}

.game-content {
    padding: 1.5rem;
}

.game-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.game-content .game-intro {
    font-size: 1rem;
    color: #424245;
    margin-bottom: 1rem;
}

.game-content .game-description {
    font-size: 0.9rem;
    color: #6e6e73;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-content .game-stats {
    margin-bottom: 1rem;
}

.game-content .stat {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #f5f5f7;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #424245;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #86868b;
}

.footer-section a {
    color: #86868b;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007AFF;
}

.footer-bottom {
    border-top: 1px solid #424245;
    padding-top: 1rem;
    text-align: center;
    color: #86868b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #86868b;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #007AFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Header */
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    /* Featured Game */
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .featured-info h3 {
        font-size: 2rem;
    }

    .game-intro {
        font-size: 1.1rem;
    }

    .featured-frame {
        height: 350px;
    }

    .game-frame {
        height: 300px;
    }

    /* Games Grid */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .games-section h2 {
        font-size: 2rem;
    }

    /* Game Cards */
    .game-content {
        padding: 1rem;
    }

    .game-image {
        height: 150px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .featured-game {
        padding: 2rem 0;
    }

    .games-section {
        padding: 2rem 0;
    }

    .about-section {
        padding: 2rem 0;
    }

    .featured-frame {
        height: 300px;
    }

    .game-frame {
        height: 250px;
    }

    .game-stats {
        justify-content: center;
    }

    .stat {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.footer-section a:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #ffffff;
        color: #000000;
    }

    .game-card {
        border: 2px solid #000000;
    }

    .stat {
        background: #000000;
        color: #ffffff;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .game-frame-container {
        display: none;
    }

    .main {
        padding: 0;
    }

    .game-card {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
} 