/* ===================================
   Trees Hate You - CSS Styles
   Light Green Theme
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-green: #7FD99A;
    --dark-green: #4A9B6B;
    --light-green: #B8E6C9;
    --bg-color: rgba(248, 255, 249, 0.7);
    --text-dark: #2C3E2F;
    --text-light: #6B8E6F;
    --accent: #FFB84D;
    --white: rgba(255, 255, 255, 0.85);
    --shadow: rgba(74, 155, 107, 0.1);
    --shadow-hover: rgba(74, 155, 107, 0.2);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --card-padding: 30px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: 
        linear-gradient(180deg, rgba(248, 255, 249, 0.82) 0%, rgba(200, 240, 215, 0.85) 100%),
        url("/images/site-bg.jpg") center top / cover fixed no-repeat;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

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

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--light-green);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background-color: var(--light-green);
    border-color: var(--primary-green);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(248, 255, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-green);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Game Demo Section */
.game-demo {
    padding: var(--section-padding);
    background-color: var(--white);
}

.game-container {
    max-width: 960px;
    margin: 0 auto;
}

.game-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(180deg, #173221 0%, #102016 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 46px rgba(8, 16, 11, 0.26);
}

.game-shell {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background-color: #000;
}

.game-stage {
    position: relative;
    width: 100%;
    min-height: 320px;
    padding-bottom: 62.5%;
    background:
        radial-gradient(circle at top, rgba(127, 217, 154, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(8, 18, 12, 0.88), rgba(5, 10, 8, 0.98));
}

.game-wrapper iframe,
.game-launcher {
    position: absolute;
    inset: 0;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #fff;
}

.game-wrapper iframe:not(.is-loaded) {
    visibility: hidden;
    pointer-events: none;
}

.game-launcher {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(15, 30, 21, 0.92), rgba(7, 13, 10, 0.88)),
        url("/images/gameplay-screenshot.jpg") center/cover no-repeat;
}

.game-launcher::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 21, 14, 0.86), rgba(8, 16, 11, 0.72));
}

.game-launcher > * {
    position: relative;
    z-index: 1;
}

.game-launcher-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.game-launcher h3 {
    max-width: 28rem;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.game-launcher p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.game-launch-btn {
    border: 0;
    cursor: pointer;
}

.game-launcher.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.game-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 999px;
    background-color: rgba(11, 23, 16, 0.78);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    transition: background-color 0.2s ease;
}

.game-close:hover {
    background-color: rgba(11, 23, 16, 0.92);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px var(--shadow);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: var(--card-padding);
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    border: 2px solid var(--light-green);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--primary-green);
}

.feature-icon {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* How to Play Section */
.how-to-play {
    padding: var(--section-padding);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    padding: var(--card-padding);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Why Players Love Section */
.why-love {
    padding: var(--section-padding);
    background-color: var(--white);
}

.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.love-card {
    padding: var(--card-padding);
    background: linear-gradient(135deg, var(--light-green) 0%, var(--bg-color) 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-green);
}

.love-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-green);
}

.love-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Platform & Release Section */
.platform-release {
    padding: var(--section-padding);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.platform-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-green);
}

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

.platform-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-green);
}

.platform-item.available {
    border-color: var(--primary-green);
}

.platform-item.coming {
    border-color: var(--accent);
}

.platform-item.unconfirmed {
    border-color: #ccc;
    opacity: 0.7;
}

.platform-icon {
    font-size: 2rem;
}

.platform-info {
    display: flex;
    flex-direction: column;
}

.platform-info strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.platform-status {
    font-size: 0.9rem;
    color: var(--text-light);
}

.release-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Community Section */
.community {
    padding: var(--section-padding);
    background-color: var(--white);
}

.community-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.community-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: var(--bg-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-green);
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: translateX(5px);
}

.social-link.discord:hover {
    background-color: #5865F2;
    border-color: #5865F2;
}

.social-link.steam:hover {
    background-color: #171a21;
    border-color: #171a21;
}

.social-link.youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
}

.social-link.tiktok:hover {
    background-color: #000000;
    border-color: #000000;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
}

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

.faq-item {
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-green);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-color);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-green);
}

.footer-description {
    margin-bottom: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .platform-content {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .game-stage {
        min-height: 390px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 4px 10px var(--shadow);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid,
    .steps-grid,
    .love-grid {
        grid-template-columns: 1fr;
    }

    .community-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .game-stage {
        min-height: 320px;
        padding-bottom: 70%;
    }

    .game-launcher {
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .game-wrapper {
        padding: 0.75rem;
        border-radius: 22px;
    }

    .game-shell {
        border-radius: 18px;
    }

    .game-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}
