/* ================================================
   Urban Trail Wrks - Jungle Gaming Theme
   ================================================ */

:root {
    /* Jungle Color Palette */
    --jungle-green: #1a5f3a;
    --forest-dark: #0d3a24;
    --leaf-bright: #3fb574;
    --bamboo-yellow: #f0d960;
    --earth-brown: #5d4e37;
    --stone-gray: #4a5859;
    --mist-white: #f4f7f5;
    --vine-teal: #2d8b6e;
    --sunset-orange: #ff8c42;
    
    /* Text Colors */
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Gradients */
    --jungle-gradient: linear-gradient(135deg, var(--forest-dark) 0%, var(--jungle-green) 50%, var(--vine-teal) 100%);
    --earth-gradient: linear-gradient(90deg, var(--earth-brown) 0%, var(--stone-gray) 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13, 58, 36, 0.12);
    --shadow-md: 0 4px 6px rgba(13, 58, 36, 0.15);
    --shadow-lg: 0 10px 25px rgba(13, 58, 36, 0.2);
    --shadow-xl: 0 20px 40px rgba(13, 58, 36, 0.25);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    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: var(--text-dark);
    background: var(--mist-white);
    overflow-x: hidden;
}

.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-legal {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ================================================
   Navbar - Unique Jungle Design
   ================================================ */

.navbar-wrap {
    background: var(--jungle-gradient);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--bamboo-yellow);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    background: var(--leaf-bright);
    box-shadow: 0 2px 8px rgba(63, 181, 116, 0.3);
}

/* ================================================
   Hero Section - Jungle Vibe
   ================================================ */

.hero-wrap {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        var(--jungle-gradient),
        url('../img/hero.jpg') center center / cover no-repeat;
    background-blend-mode: multiply;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(13, 58, 36, 0.493) 0%,
            rgba(26, 95, 58, 0.308) 50%,
            rgba(45, 139, 109, 0.281) 100%
        );
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--mist-white));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(240, 217, 96, 0.2);
    border: 2px solid var(--bamboo-yellow);
    border-radius: 50px;
    color: var(--bamboo-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--bamboo-yellow);
    margin-bottom: var(--space-xl);
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--sunset-orange);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--leaf-bright);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ================================================
   About Section
   ================================================ */

.section-about {
    padding: var(--space-2xl) 0;
    background: var(--mist-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.section-heading {
    font-size: 2.5rem;
    color: var(--jungle-green);
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.about-text {
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--leaf-bright), var(--vine-teal));
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.visual-card {
    background: var(--text-white);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--leaf-bright);
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.visual-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.visual-card h3 {
    font-size: 1.4rem;
    color: var(--jungle-green);
    margin-bottom: var(--space-xs);
}

.visual-card p {
    color: var(--text-medium);
}

/* ================================================
   Features Section - Unique Grid Layout
   ================================================ */

.section-features {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--mist-white) 0%, #e8f2ed 100%);
}

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

.section-subtext {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature-box {
    background: var(--text-white);
    padding: var(--space-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--leaf-bright);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-wrap {
    display: inline-block;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--leaf-bright), var(--vine-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

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

.feature-title {
    font-size: 1.3rem;
    color: var(--jungle-green);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.feature-desc {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ================================================
   Game Section
   ================================================ */

.section-game {
    padding: var(--space-2xl) 0;
    background: var(--mist-white);
}

.game-showcase {
    margin-top: var(--space-xl);
}

.game-frame-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: var(--jungle-gradient);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.game-frame-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(45deg, var(--bamboo-yellow), var(--sunset-orange), var(--leaf-bright));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.game-iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
    background: var(--text-dark);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ================================================
   Reviews Section
   ================================================ */

.section-reviews {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #e8f2ed 0%, var(--mist-white) 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.review-card {
    background: var(--text-white);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.review-stars {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.review-text {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 2px solid var(--leaf-bright);
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--jungle-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--jungle-green);
}

.author-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ================================================
   Page Header (Legal Pages)
   ================================================ */

.page-header {
    background: var(--jungle-gradient);
    padding: var(--space-xl) 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--bamboo-yellow);
}

/* ================================================
   Legal Sections
   ================================================ */

.section-legal {
    padding: var(--space-2xl) 0;
    background: var(--mist-white);
}

.alert-box {
    background: linear-gradient(135deg, var(--sunset-orange), #ffb366);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    display: flex;
    gap: var(--space-md);
    align-items: start;
    box-shadow: var(--shadow-md);
}

.alert-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.alert-content h3 {
    color: var(--forest-dark);
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.alert-content p {
    color: var(--text-dark);
    line-height: 1.7;
}

.legal-content {
    background: var(--text-white);
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.legal-content h2 {
    color: var(--jungle-green);
    font-size: 1.7rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--leaf-bright);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--vine-teal);
    font-size: 1.3rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.legal-content li {
    color: var(--text-medium);
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.legal-content a {
    color: var(--leaf-bright);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--jungle-green);
    border-bottom-color: var(--jungle-green);
}

/* ================================================
   Contact Section
   ================================================ */

.section-contact {
    padding: var(--space-2xl) 0;
    background: var(--mist-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-form-wrap {
    background: var(--text-white);
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-heading {
    font-size: 1.8rem;
    color: var(--jungle-green);
    margin-bottom: var(--space-lg);
}

.form-row {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--jungle-green);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--leaf-bright);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--mist-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--jungle-green);
    box-shadow: 0 0 0 3px rgba(26, 95, 58, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--jungle-gradient);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-card {
    background: var(--text-white);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--sunset-orange);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.info-title {
    font-size: 1.2rem;
    color: var(--jungle-green);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.info-text {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ================================================
   Play Page Specific
   ================================================ */

.section-play-game {
    padding: var(--space-2xl) 0;
    background: var(--mist-white);
}

.game-info {
    max-width: 900px;
    margin: var(--space-xl) auto 0;
    background: var(--text-white);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.game-info-title {
    font-size: 1.5rem;
    color: var(--jungle-green);
    margin-bottom: var(--space-md);
}

.game-tips {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.game-tips li {
    padding-left: 1.5rem;
    color: var(--text-medium);
    position: relative;
}

.game-tips li::before {
    content: '🌿';
    position: absolute;
    left: 0;
}

/* ================================================
   Footer - Unique Jungle Design
   ================================================ */

.footer-wrap {
    background: var(--jungle-gradient);
    color: var(--text-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--bamboo-yellow);
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bamboo-yellow);
    transform: translateX(5px);
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(240, 217, 96, 0.3);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

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

.disclaimer-header h4 {
    color: var(--bamboo-yellow);
    font-size: 1.2rem;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   Modal/Popup Styles
   ================================================ */

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 58, 36, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.show {
    display: flex;
}

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

.popup-content {
    background: var(--text-white);
    border-radius: 16px;
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: popIn 0.4s ease;
    border: 4px solid var(--leaf-bright);
}

@keyframes popIn {
    from { 
        transform: scale(0.8); 
        opacity: 0;
    }
    to { 
        transform: scale(1); 
        opacity: 1;
    }
}

.popup-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.popup-title {
    font-size: 1.8rem;
    color: var(--jungle-green);
    text-align: center;
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.popup-message {
    color: var(--text-medium);
    line-height: 1.8;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.popup-btn {
    width: 100%;
    padding: 1rem;
    background: var(--jungle-gradient);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--jungle-gradient);
        flex-direction: column;
        padding: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .game-frame-wrap {
        padding: 1rem;
    }
    
    .popup-content {
        padding: var(--space-lg);
    }
}
