/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #667eea;
    background: #f0f2ff;
}

.nav-link.active {
    color: white;
    background: #667eea;
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.lead {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
}

.app-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.app-details, .game-features {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.app-details h3, .game-features h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.app-details ul, .game-features ul {
    list-style: none;
}

.app-details li, .game-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.app-details li:last-child, .game-features li:last-child {
    border-bottom: none;
}

.game-features li::before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Download section */
.download-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.download-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.store-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: not-allowed;
    opacity: 0.6;
}

.store-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Document styles */
.document {
    max-width: 800px;
    margin: 0 auto;
}

.document-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.document-content h2 {
    font-size: 1.6rem;
    color: #667eea;
}

.document-content h3 {
    font-size: 1.3rem;
    color: #555;
}

.document-content h4 {
    font-size: 1.1rem;
    color: #666;
}

.document-content p {
    margin-bottom: 1.2rem;
}

.document-content ul,
.document-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

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

.document-content strong {
    color: #333;
    font-weight: 600;
}

.document-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9ff;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 8px 8px 0;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        padding: 0.8rem 0;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .app-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-details, .game-features {
        padding: 1.5rem;
    }
    
    .download-section {
        padding: 1.5rem;
    }
    
    .document-content {
        padding: 2rem 1.5rem;
    }
    
    .store-links {
        flex-direction: column;
        align-items: center;
    }
    
    .store-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .document-content {
        padding: 1.5rem 1rem;
    }
    
    .document-content h1 {
        font-size: 1.8rem;
    }
    
    .document-content h2 {
        font-size: 1.4rem;
    }
}

/* Loading and transitions */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    margin: 1rem 0;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}