/* ===== NERTZ DESIGN SYSTEM ===== */
/* Matches Unity game's "light-card-on-wood" visual identity */

:root {
    /* Colors - from Unity USS files */
    --color-navy: rgb(40, 40, 60);
    --color-navy-light: rgb(60, 60, 80);
    --color-text-dark: rgb(50, 50, 50);
    --color-text-muted: rgb(80, 80, 80);
    --color-card-bg: rgba(235, 235, 235, 0.95);
    --color-card-border: rgb(80, 80, 80);
    --color-white-surface: rgba(255, 255, 255, 0.85);
    --color-separator: rgb(180, 180, 180);
    --color-green: rgba(60, 140, 60, 0.9);
    --color-green-hover: rgba(70, 160, 70, 1);
    --color-green-active: rgba(50, 120, 50, 1);
    --color-green-border: rgb(40, 100, 40);
    --color-gold: #C8900A;
    --color-gold-light: #e0a520;

    /* Radii */
    --radius-card: 12px;
    --radius-button: 8px;

    /* Fonts */
    --font-display: 'Carter One', cursive;
    --font-heading: 'Nunito Sans', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* ===== BASE ===== */

html {
    position: relative;
    min-height: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-image: url('/images/wood-texture.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 80px;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-navy);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

a {
    color: var(--color-gold);
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-gold-light);
}

/* ===== CONTENT CARD ===== */

.content-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-card-border);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.content-card-wide {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-card-border);
    padding: 28px 32px;
    margin-bottom: 24px;
    max-width: 100%;
}

/* ===== NAVBAR ===== */

.navbar {
    background-color: var(--color-navy) !important;
    border-bottom: 2px solid var(--color-gold) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
}

.navbar .navbar-brand {
    padding: 0;
}

.navbar .navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--color-gold) !important;
}

.navbar .nav-link.active {
    color: var(--color-gold) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== BUTTONS ===== */

.btn-primary,
.btn-primary:visited {
    background-color: var(--color-green);
    border-color: var(--color-green-border);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-button);
    padding: 10px 24px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--color-green-hover);
    border-color: var(--color-green-border);
    color: #fff;
}

.btn-primary:active,
.btn-primary:focus {
    background-color: var(--color-green-active) !important;
    border-color: var(--color-green-border) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(60, 140, 60, 0.4) !important;
}

.btn-secondary,
.btn-secondary:visited {
    background-color: var(--color-white-surface);
    border: 1px solid var(--color-card-border);
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-button);
    padding: 10px 24px;
    transition: background-color 0.15s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: var(--color-card-border);
    color: var(--color-text-dark);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.15rem;
}

/* ===== HERO SECTION ===== */

.hero-section {
    text-align: center;
    padding: 48px 20px 40px;
}

.hero-section .hero-logo {
    max-width: 400px;
    width: 80%;
    margin-bottom: 20px;
}

.hero-section .hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 28px;
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

/* ===== FEATURE CARDS ===== */

.feature-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-card-border);
    padding: 24px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-card ul li {
    padding: 4px 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.feature-card ul li::before {
    content: "\2660";
    color: var(--color-gold);
    margin-right: 8px;
    font-weight: bold;
}

/* ===== SCREENSHOT SECTION ===== */

.screenshot-section {
    text-align: center;
    margin: 32px 0;
}

.screenshot-section img {
    max-width: 100%;
    border-radius: var(--radius-card);
    border: 2px solid var(--color-card-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.screenshot-section .caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ===== PLATFORM CARDS ===== */

.platform-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-card-border);
    padding: 28px 24px;
    text-align: center;
    height: 100%;
}

.platform-card .platform-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.platform-card h4 {
    margin-bottom: 8px;
}

.platform-card .platform-status {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.platform-card .badge-available {
    background-color: var(--color-green);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-card .badge-coming-soon {
    background-color: var(--color-gold);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== SECTION HEADINGS ===== */

.section-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-navy);
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.section-separator {
    border: none;
    border-top: 1px solid var(--color-separator);
    margin: 20px 0;
}

/* ===== GAMEPLAY PAGE ===== */

.gameplay-content .bullet-item {
    padding: 4px 0 4px 20px;
    position: relative;
    margin-bottom: 6px;
}

.gameplay-content .sub-note {
    padding-left: 40px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */

.site-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--color-navy);
    border-top: 2px solid var(--color-gold);
    padding: 16px 0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer,
.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--color-gold);
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* ===== PAGE CONTAINER ===== */

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 767px) {
    .content-card {
        padding: 20px 16px;
    }

    .hero-section {
        padding: 32px 16px 28px;
    }

    .hero-section .hero-tagline {
        font-size: 1.15rem;
    }

    .hero-section .hero-logo {
        max-width: 280px;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
}

@media (max-width: 575px) {
    .feature-card {
        margin-bottom: 16px;
    }
}
