/* Global Styles */
:root {
    --primary-color: #222;
    --secondary-color: #444;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    gap: 15px;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* Game Section */
.game-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 30px;
    margin-bottom: 80px;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.share-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.9;
}

.twitter { background-color: #1DA1F2; }
.facebook { background-color: #4267B2; }
.linkedin { background-color: #0077b5; }
.reddit { background-color: #FF4500; }
.tiktok { background-color: #000000; }

/* Features Section */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* How to Play Section */
.how-to-play {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instruction-block {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.instruction-block ul {
    list-style-position: inside;
    margin-top: 15px;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: var(--light-bg);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        justify-content: center;
    }
}

/* Section Headers */
h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feature-card, .instruction-block, .faq-item {
    animation: fadeIn 0.5s ease-out;
}

/* Guides Section */
.guides {
    padding: 80px 0;
    background: var(--light-bg);
}

.guides h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 36px;
}

.guides-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.guides .guide-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.guides .guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guides .guide-content {
    padding: 20px;
}

.guides .guide-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.guides .guide-content p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.guides .guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
    font-size: 14px;
}

.guides .read-more {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.guides .read-more:hover {
    background: var(--secondary-color);
}

.guides-cta {
    text-align: center;
}

.view-all-guides {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-all-guides:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .guides {
        padding: 60px 0;
    }

    .guides h2 {
        font-size: 28px;
    }

    .guides .guide-content h3 {
        font-size: 20px;
    }
}

/* Game Window Social Share */
.game-social-share {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
}

.game-social-share .share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.game-social-share .share-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.game-social-share .share-btn:hover {
    opacity: 0.9;
}

.game-social-share .twitter { background: #1DA1F2; }
.game-social-share .facebook { background: #4267B2; }
.game-social-share .linkedin { background: #0077b5; }
.game-social-share .reddit { background: #FF4500; }
.game-social-share .tiktok { background: #000000; } 