/* =============================================
   PIROTS 2 — Jungle Premium Design
   ============================================= */

/* === CSS Variables === */
:root {
    /* Colors */
    --color-primary: #1a472a;
    /* Deep Jungle Green */
    --color-primary-light: #2e7d32;
    --color-accent: #ffca28;
    /* Amber Gold */
    --color-accent-hover: #ffb300;
    --color-action: #e53935;
    /* Dino Red */
    --color-action-hover: #c62828;
    --color-bg: #f4f7f6;
    /* Pale Stone */
    --color-bg-card: #ffffff;
    --color-text-main: #2d3436;
    --color-text-light: #636e72;
    --color-text-white: #ffffff;

    /* Gradients */
    --grad-jungle: linear-gradient(135deg, #1a472a 0%, #2e7d32 100%);
    --grad-amber: linear-gradient(135deg, #ffca28 0%, #ff6f00 100%);
    --grad-dino: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    --grad-overlay: linear-gradient(180deg, rgba(26, 71, 42, 0.8) 0%, rgba(26, 71, 42, 0.95) 100%);

    /* Fonts */
    --font-heading: 'Titan One', cursive;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(#e0e5e5 1px, transparent 1px);
    background-size: 20px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-primary);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.lang-switch:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ... */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    background-image: var(--grad-overlay), url('../images/pirots-2-hero-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-white);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero::before {
    display: none;
    /* Remove SVG pattern if using image */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--color-accent);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 4px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(5px);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-primary {
    background: var(--grad-amber);
    color: #4e342e;
    /* Dark brown for contrast on amber */
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(255, 202, 40, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.btn-cta {
    background: var(--grad-dino);
    color: white;
    font-size: 1.2rem;
    padding: 18px 36px;
    width: 100%;
    justify-content: center;
    max-width: 400px;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

/* === Sections === */
.section {
    padding: 80px 0;
}

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

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

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--grad-jungle);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--grad-jungle);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Game Info Table === */
.game-info-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.game-info-table {
    width: 100%;
    border-collapse: collapse;
}

.game-info-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.game-info-table tr:last-child td {
    border-bottom: none;
}

.game-info-label {
    font-weight: 700;
    color: var(--color-text-light);
    width: 40%;
}

.game-info-value {
    color: var(--color-primary);
    font-weight: 700;
    text-align: right;
}

/* === Mechanics (CollectR) === */
.mechanic-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.mechanic-block:nth-child(even) {
    flex-direction: row-reverse;
}

.mechanic-text {
    flex: 1;
}

.mechanic-visual {
    flex: 1;
    height: 300px;
    background: #e0f2f1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* === FAQ === */
.faq-item {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    list-style: none;
    /* Hide default arrow */
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

details[open] .faq-icon {
    transform: rotate(45deg);
    color: var(--color-action);
}

.faq-answer {
    padding: 0 25px 25px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* === Footer === */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 60px;
}

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

.footer h3 {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
    transform: translateX(5px);
}

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

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Simplified for now, JS toggle needed */
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .mechanic-block {
        flex-direction: column !important;
    }
}

/* === Animations === */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === Premium Image Styles === */
.img-premium {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.img-premium:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* === Gallery Section === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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