/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-color: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav__menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav__menu a:hover::after {
    width: 80%;
}

/* Game Section */
.game-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.game__container {
    max-width: 1200px;
    margin: 0 auto;
}

.game__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.game__frame-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.game__main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #f8f9fa;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Game container loading state */
.game__frame-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.game__frame-container.loaded::before {
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Section */
.hero {
    padding: 4rem 1rem;
    background-color: var(--background-light);
    text-align: center;
}

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

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn--primary:hover {
    background-color: #5855eb;
    transform: translateY(-2px);
}

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

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

/* YouTube Videos Section */
.youtube-videos {
    padding: 4rem 1rem;
    background-color: var(--background-light);
}

.youtube-videos__container {
    max-width: 1200px;
    margin: 0 auto;
}

.youtube-videos__container h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.youtube-videos__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.youtube-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical videos */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* Features Section */
.features {
    padding: 4rem 1rem;
    background-color: var(--background-color);
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.features__title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card--1 {
    background-color: #4285f4;
    color: white;
}
.feature-card--2 {
    background-color: #764ba2;
    color: white;
}
.feature-card--3 {
    background-color: #f39c12;
    color: white;
}
.feature-card--4 {
    background-color: #9c27b0;
    color: #ffffff;
}

.feature-card--1 h3,
.feature-card--1 p,
.feature-card--1 ul li {
    color: #ffffff !important;
}

.feature-card--2 h3,
.feature-card--2 p,
.feature-card--2 ul li {
    color: #ffffff !important;
}

.feature-card--3 h3,
.feature-card--3 p,
.feature-card--3 ul li {
    color: #ffffff !important;
}

.feature-card--4 h3,
.feature-card--4 p,
.feature-card--4 ul li {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75em;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    margin: 0 0 10px 0;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.feature-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: auto;
}

.feature-card li {
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.25em;
    padding-left: 1rem;
    position: relative;
    font-size: 0.85rem;
}

.feature-card li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

.feature-card--1::before,
.feature-card--2::before,
.feature-card--3::before,
.feature-card--4::before {
    color: #ffffff !important;
}

/* What is Section */
.what-is {
    padding: 4rem 1rem;
    background-color: var(--background-light);
}

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

.what-is__title {
    margin-bottom: 2rem;
}

.what-is__description {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* How to Play Section */
.how-to-play {
    padding: 4rem 1rem;
    background-color: var(--background-color);
}

.how-to-play__container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-to-play__title {
    text-align: center;
    margin-bottom: 3rem;
}

.how-to-play__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.how-to-play__steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-to-play__image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100%;
}

.how-to-play__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.step {
    padding: 2rem;
    background-color: #d1fae5;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: var(--shadow);
}

.step__title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step__description {
    color: var(--text-light);
}

/* Why Play Section */
.why-play {
    padding: 4rem 1rem;
    background-color: var(--background-light);
}

.why-play__container {
    max-width: 1000px;
    margin: 0 auto;
}

.why-play__title {
    text-align: center;
    margin-bottom: 3rem;
}

.why-play__content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.why-play__content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: justify;
}

.why-play__content p:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    padding: 4rem 1rem;
    background-color: var(--background-color);
}

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

.faq__title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq__item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq__item p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__copyright {
    color: #9ca3af;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__container {
        padding: 1rem;
    }
    
    .nav__logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav__title {
        font-size: 1.5rem;
    }
    
    .nav__menu {
        gap: 1.5rem;
    }
    
    .nav__menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .game__title {
        font-size: 2rem;
    }
    
    .features__title {
        font-size: 2rem;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .youtube-videos__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card__image {
        height: 180px;
    }
    
    .feature-card__title {
        font-size: 1.3rem;
        margin: 1.25rem 1.25rem 0.75rem;
    }
    
    .feature-card__description {
        font-size: 0.95rem;
        margin: 0 1.25rem 1.25rem;
    }
    
    .game__frame-container {
        padding-bottom: 75%; /* 4:3 aspect ratio for tablets */
        margin: 0 0.5rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .how-to-play__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-to-play__image {
        order: -1;
    }
    
    .why-play__reasons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav__container {
        padding: 0.75rem 1rem;
    }
    
    .nav__logo {
        gap: 0.5rem;
    }
    
    .nav__logo-img {
        width: 28px;
        height: 28px;
    }
    
    .nav__title {
        font-size: 1.25rem;
    }
    
    .nav__menu {
        gap: 1rem;
    }
    
    .nav__menu a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .game__title {
        font-size: 1.75rem;
    }
    
    .features__title {
        font-size: 1.75rem;
    }
    
    .feature-card__image {
        height: 160px;
    }
    
    .feature-card__title {
        font-size: 1.2rem;
        margin: 1rem 1rem 0.5rem;
    }
    
    .feature-card__description {
        font-size: 0.9rem;
        margin: 0 1rem 1rem;
        line-height: 1.6;
    }
    
    .game-section {
        padding: 2rem 0.5rem;
    }
    
    .game__frame-container {
        padding-bottom: 133.33%; /* 3:4 aspect ratio for mobile */
        border-radius: 12px;
    }
} 