/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --text-color: #333;
    --background-color: #fff;
    --footer-bg: #f5f5f5;
    
    /* Typography */
    --font-main: 'Arial', sans-serif;
    --font-heading: 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1rem;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Header Styles */
.site-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.main-nav {
    display: flex;
    align-items: center;
    padding: 0.5rem var(--container-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Main Content Sections */
section {
    padding: var(--spacing-lg) 0;
}

/* Game Section */
.game-section {
    margin-top: 60px; /* Account for fixed header */
    background-color: #f8f9fa;
    padding: 0;
}

.game-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #000;
}

.game-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px); /* Full height minus header */
    max-height: 900px;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background-color: #000;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.fullscreen-icon {
    fill: white;
    width: 24px;
    height: 24px;
}

/* Fullscreen styles */
.game-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    z-index: 9999;
}

/* Hero Section */
.hero-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-lg) 0;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    background-color: var(--background-color);
    padding: var(--spacing-lg) 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: var(--spacing-md);
}

.feature-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.feature-content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.feature-content p {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.feature-highlights {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0;
}

.feature-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-highlights li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* Responsive Design for Features */
@media (min-width: 768px) {
    .feature-card {
        display: flex;
        align-items: stretch;
    }

    .feature-image {
        width: 40%;
        height: auto;
    }

    .feature-content {
        width: 60%;
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .feature-image {
        height: 200px;
    }

    .feature-content {
        padding: var(--spacing-sm);
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-content h4 {
        font-size: 1.1rem;
    }
}

/* Accessibility Improvements */
.feature-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-image img {
        transition: none;
    }
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
}

.footer-nav a,
.footer-social a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding: var(--spacing-xs) 0;
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }

    .game-wrapper {
        height: calc(100vh - 60px);
        max-height: none;
    }

    .fullscreen-btn {
        bottom: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .fullscreen-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Ensure content below game is properly spaced */
    .hero-section {
        margin-top: var(--spacing-lg);
    }
}

/* Accessibility */
:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

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

/* About Section */
.about-section {
    background-color: #f8f9fa;
    padding: var(--spacing-lg) 0;
}

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

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.about-features, .game-stats, .developer-info {
    margin-top: var(--spacing-lg);
}

.about-content h4 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content ul li {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.about-content ul li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* How to Play Section */
.how-to-play-section {
    background-color: white;
    padding: var(--spacing-lg) 0;
}

.gameplay-guide {
    max-width: 800px;
    margin: 0 auto;
}

.gameplay-guide h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.basics, .survival-tips, .evolution-path, .advanced-tactics {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gameplay-guide h4 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.gameplay-guide ul, .gameplay-guide ol {
    padding-left: 1.5rem;
}

.gameplay-guide li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.evolution-path ol {
    counter-reset: evolution-steps;
}

.evolution-path ol li {
    counter-increment: evolution-steps;
    position: relative;
    padding-left: 2rem;
}

.evolution-path ol li::before {
    content: counter(evolution-steps);
    color: white;
    background-color: var(--primary-color);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Why Play Section */
.why-play-section {
    background-color: #f8f9fa;
    padding: var(--spacing-lg) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.benefit-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.benefit-card ul {
    list-style: none;
    padding: 0;
}

.benefit-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefit-card li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .gameplay-guide {
        padding: 0 var(--spacing-sm);
    }

    .benefit-card {
        margin-bottom: var(--spacing-sm);
    }
}

/* Accessibility */
.benefit-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .benefit-card {
        transition: none;
    }
} 

/* FAQ Section */
.faq-section {
    background-color: white;
    padding: var(--spacing-lg) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-color);
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: var(--spacing-md);
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Hover and Focus States */
.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-list {
        padding: 0 var(--spacing-sm);
    }

    .faq-question span {
        font-size: 1rem;
    }

    .faq-question {
        padding: var(--spacing-sm);
    }

    .faq-question[aria-expanded="true"] + .faq-answer {
        padding: var(--spacing-sm);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-icon,
    .faq-question {
        transition: none;
    }
} 