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

/* Warm Color Palette - Design #3 */
:root {
    --primary: #ea580c;
    --secondary: #78716c;
    --background: #fefaf6;
    --surface: #ffffff;
    --text: #292524;
    --text-light: #57534e;
    --text-muted: #a8a29e;
    --border: #e7e5e4;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent: #fb923c;
    --success: #16a34a;
    --warning: #eab308;
    --error: #dc2626;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* Base Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header and Navigation */
.header {
    background-color: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary);
    color: white;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--background) 0%, #fff7ed 100%);
    padding: var(--spacing-3xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* Game Section */
.game-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--surface);
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.game-wrapper {
    background-color: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px var(--shadow);
}

.game-wrapper iframe {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
}

.game-info {
    padding: var(--spacing-lg);
}

.game-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.game-controls h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.game-controls ul {
    list-style: none;
    padding-left: 0;
}

.game-controls li {
    padding: var(--spacing-sm) 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.game-controls li:last-child {
    border-bottom: none;
}

/* Section Styles */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.subsection-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--primary);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.section-text {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.section-intro {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* About Character Section */
.about-character-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px var(--shadow);
}

.image-caption {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
    font-style: italic;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.feature-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Gameplay Section */
.gameplay-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background);
}

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

.step-card {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.step-text {
    color: var(--text-light);
    line-height: 1.6;
}

.gameplay-tips {
    background-color: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px var(--shadow);
}

.tips-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: var(--spacing-md) 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.tips-list li:last-child {
    border-bottom: none;
}

/* Context, Platform, Viral Sections */
.context-section,
.platform-section,
.viral-section {
    padding: var(--spacing-3xl) 0;
}

.context-section {
    background-color: var(--surface);
}

.platform-section {
    background-color: var(--background);
}

.viral-section {
    background-color: var(--surface);
}

/* Tips Section */
.tips-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.tip-card {
    background-color: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

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

.tip-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.tip-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Games Section */
.related-games-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--surface);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.game-card {
    background-color: var(--background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px var(--shadow);
}

.game-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.game-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.feature-tag {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

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

.faq-item {
    background-color: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.cta-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background-color: var(--background);
}

.cta-section .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--text);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg) 0;
}

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

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--accent);
}

.footer-text {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: inline-block;
    font-size: var(--font-size-xl);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .gameplay-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .game-wrapper iframe {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .game-wrapper {
        padding: var(--spacing-md);
    }
    
    .game-wrapper iframe {
        height: 250px;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
}

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

/* Focus states for keyboard navigation */
.nav-link:focus,
.btn:focus,
.footer-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Video Tutorials Section */
.video-tutorials-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--surface);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.video-card {
    background-color: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: var(--spacing-xl);
}

.video-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.video-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.video-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.highlight {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Image Gallery Section */
.image-gallery-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background);
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.gallery-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    line-height: 1.4;
}

.gallery-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .video-card {
        margin: 0 var(--spacing-sm);
    }
    
    .image-gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .gallery-item {
        margin: 0 var(--spacing-sm);
    }
    
    .gallery-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .video-highlights {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .video-info {
        padding: var(--spacing-lg);
    }
    
    .video-title {
        font-size: var(--font-size-lg);
    }
    
    .gallery-overlay {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-section,
    .video-tutorials-section,
    .image-gallery-section {
        display: none;
    }
    
    .game-wrapper iframe {
        display: none;
    }
    
    * {
        box-shadow: none !important;
    }
}