/*
* ============================
* styles.css - Lobzird Games
* Purpose: Global stylesheet enforcing a retro, pixel‑game aesthetic.
* Uses the "Press Start 2P" font, square corners, solid borders, and deliberate shadows
* to create a cohesive game‑UI feel across all pages.
* ============================
*/

/* --- Pixel Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --- Global Reset & CSS Custom Properties --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Remove all rounded corners for the retro‑game look */
    border-radius: 0 !important;
}

:root {
    --sidebar-width: 230px;
    --sidebar-bg: #3d1414;
    --sidebar-border: #c9a44b;
    --footer-height: 60px;
    --body-bg: #f0ecdd;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --accent: #c9a44b;
    --accent-dark: #8b6914;
    --footer-bg: #2a0e0e;
    --font-pixel: 'Press Start 2P', 'Courier New', monospace;
    --border-thick: 4px solid #3a1515;
    --border-accent: 4px solid var(--accent);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Force pixelated rendering on scaled images (retro feel) */
    image-rendering: pixelated;
}

body {
    font-family: var(--font-pixel);
    background-color: var(--body-bg);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
    /* Subtle pixel‑grid overlay reinforces the game aesthetic */
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* --- Fixed Sidebar (Vertical Navigation) --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    /* Solid accent border on the right, no box‑shadow */
    border-right: var(--border-accent);
    padding-bottom: var(--footer-height);
    overflow-y: auto;
}

/* Branding area inside the sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 20px;
    border-bottom: var(--border-accent);
    flex-shrink: 0;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background-color: rgba(255,255,255,0.1);
    padding: 4px;
    border: 2px solid var(--accent);
    image-rendering: pixelated;
}

.company-name {
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: var(--text-light);
    /* Hard pixel shadow instead of blur */
    text-shadow: 2px 2px 0 #000;
}

/* Navigation links */
.sidebar-nav {
    flex: 1;
    padding-top: 12px;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 10px;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    transition: background-color 0.1s;
    border: 2px solid transparent;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.nav-link:hover {
    background-color: #7a3333;
    border-color: var(--accent);
}

.nav-link.active {
    background-color: var(--accent);
    color: #1e1e1e;
    border-color: #000;
    font-weight: bold;
}

/* --- Main Content Offset --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 40px 32px calc(var(--footer-height) + 40px);
    min-height: 200vh;
    font-family: var(--font-pixel);
}

/* --- Pixel Text Box (dialogue box) --- */
.pixel-textbox {
    background: #ffffff;
    color: #1a1a1a;
    border: var(--border-accent);
    padding: 18px 20px;
    margin: 28px auto;
    max-width: 800px;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
    position: relative;
    /* Layered shadow creates a chunky "pixel" depth */
    box-shadow:
        inset 0 0 0 2px #fff,
        inset 0 0 0 4px var(--accent),
        4px 4px 0 #3a1515;
}

/* Corner squares give an old‑school UI frame */
.pixel-textbox::before,
.pixel-textbox::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    background: #3a1515;
}

.pixel-textbox::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.pixel-textbox::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.pixel-textbox .sub-heading {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    color: #3a1515;
    margin-bottom: 14px;
    border-bottom: 2px dashed var(--accent);
    padding-bottom: 6px;
    display: inline-block;
}

/* --- Page Titles --- */
.page-title {
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: #3a1515;
    margin-bottom: 24px;
    text-shadow: 2px 2px 0 rgba(201,164,75,0.4);
}

/* --- Carousel (Home Page) --- */
.carousel-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0 30px;
}

.carousel-heading {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: #3a1515;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 2px 2px 0 #aaa;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: var(--border-accent);
    overflow: hidden;
    /* Pixel drop shadow instead of soft blur */
    box-shadow: 6px 6px 0 #3a1515;
    background: #1a1a1a;
    padding: 0;
}

.carousel-track {
    display: flex;
    /* Instantaneous slide transition for a retro feel */
    transition: transform 0.4s steps(1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    max-width: 100%;      /* prevents growing past the track width */
    flex-shrink: 0;
    overflow: hidden;     /* crops any image overflow into the slide boundary */
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    image-rendering: pixelated;
}

/* Navigation arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #3a1515;
    color: #fff;
    border: 2px solid var(--accent);
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
    font-family: monospace;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #000;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Indicator dots – replaced by solid squares */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.1s;
}

.dot.active {
    background: var(--accent);
    border-color: #000;
}

/* --- Blurb Box (Home Page) --- */
.carousel-blurb {
    max-width: 750px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 0.75rem;
}

.carousel-blurb .footnote {
    font-size: 0.6rem;
    color: #555;
    margin-top: 10px;
}

.asterisk {
    color: #c94b4b;
}

/* --- Footer (Fixed) --- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--footer-bg);
    color: #ccc;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: var(--border-accent);
    font-family: var(--font-pixel);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
    font-size: 0.6rem;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    color: #e0c56e;
    text-decoration: underline;
}

.footer-copy {
    white-space: nowrap;
}

/* --- Team Cards (About Page) --- */
.team-section {
    margin-top: 60px;
    padding: 0 10px;
}

.team-section .sub-heading {
    font-family: var(--font-pixel);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.3rem;
    color: #3a1515;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1 1 250px;
    max-width: 300px;
    min-width: 220px;
    transition: transform 0.1s;
}

/* Pixel‑style hover: slight offset instead of scaling */
.team-card-link:hover {
    transform: translate(-2px, -2px);
}

.team-member {
    background: #fff;
    border: var(--border-accent);
    padding: 24px 16px 20px;
    text-align: center;
    box-shadow: 4px 4px 0 #3a1515;
    font-family: var(--font-pixel);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 14px;
    image-rendering: pixelated;
}

.team-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #3a1515;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.7rem;
    color: #7a5a3a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-bio {
    font-size: 0.65rem;
    line-height: 1.6;
    color: #3a1a1a;
    margin: 0;
}

/* --- Spacer for scroll depth --- */
.scroll-spacer {
    height: 40vh;
    min-height: 200px;
}

/* --- Responsive: collapse sidebar on narrow screens --- */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --footer-height: 56px;
    }

    .sidebar {
        position: relative;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-right: none;
        border-bottom: var(--border-accent);
    }

    .sidebar-nav ul {
        flex-direction: row;
        gap: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px calc(var(--footer-height) + 20px);
        min-height: 150vh;
    }

    .carousel-heading { font-size: 1rem; }
    .carousel-btn { width: 36px; height: 36px; }

    .team-grid { gap: 20px; }
    .team-card-link { max-width: 100%; flex: 1 1 100%; }
}