/* Hell Hole Wiki - v1.0 (PhoenixVGA Edition) */

/* Import Custom Font */
@font-face {
    font-family: 'PhoenixVGA';
    src: url('fonts/phoenixvga.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #000000;
    --text-red: #cc0000;
    --text-gold: #aa8800;
    --text-white: #dcdcdc;
    --border-dim: #330000;
    --border-bright: #ff0000;

    --font-main: 'PhoenixVGA', monospace;
}

* {
    box-sizing: border-box;
    image-rendering: pixelated;
}

body {
    background-color: var(--bg-color);
    background-image: url('https://media.giphy.com/media/26BRQaiZM0IeyoJfa/giphy.gif');
    /* Keep the subtle fire */
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
    color: var(--text-white);
    font-family: var(--font-main);
    margin: 0;
    padding: 20px;
    font-size: 16px;
    /* 16px base for 8x16 font looks best */
    line-height: 1.5;
    padding-top: 40px;
    /* Make room for ticker */
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    background: rgba(10, 0, 0, 0.95);
    border: 2px solid var(--border-bright);
    outline: 2px solid var(--border-dim);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    min-height: 90vh;
    padding: 2px;
    /* Tight border padding like a DOS TUI */
}

/* --- Ticker (New) --- */
.ticker-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 30px;
    background-color: black;
    border-bottom: 2px solid var(--text-gold);
    z-index: 1000;
    line-height: 30px;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    color: var(--text-gold);
    font-weight: bold;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* --- TUI Header --- */
header {
    text-align: center;
    border-bottom: 4px double var(--text-red);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.main-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 600px;
    /* Adjust based on preference */
    image-rendering: pixelated;
    /* Essential for pixel art */
}

h1 {
    font-size: 4rem;
    margin: 0;
    text-shadow: 4px 4px 0px #000;
    letter-spacing: 5px;
    display: none;
    /* Hide H1 if we keep it for SEO, but we are fully replacing it */
}

.subtitle {
    display: block;
    font-size: 1rem;
    margin-top: 5px;
    font-weight: bold;
}

/* --- Navigation --- */
.nav-menu {
    display: flex;
    justify-content: space-evenly;
    background: var(--border-dim);
    border-top: 1px solid var(--border-bright);
    border-bottom: 1px solid var(--border-bright);
    padding: 10px 0;
    margin-bottom: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--text-red);
    color: black;
    box-shadow: 0 0 10px var(--text-red);
}

/* --- Layout Grid --- */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* --- Panels / "Windows" --- */
.panel {
    border: 2px solid var(--border-dim);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.panel h2 {
    background: var(--border-dim);
    color: var(--text-red);
    margin: -15px -15px 15px -15px;
    padding: 5px 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-bright);
}

.panel-highlight {
    border-color: var(--text-gold);
}

.panel-highlight h2 {
    background: var(--text-gold);
    color: black;
}

/* --- Typography --- */
p {
    margin-bottom: 1rem;
}

ul {
    margin-bottom: 1rem;
    padding-left: 20px;
}

li::marker {
    color: var(--text-red);
    content: "> ";
}

/* --- Images --- */
img {
    max-width: 100%;
    border: 2px solid var(--border-dim);
    display: block;
    margin: 0 auto;
}

.caption {
    text-align: center;
    color: var(--text-red);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* --- Item Grid (New) --- */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.item-card {
    border: 1px solid var(--text-white);
    padding: 10px;
    text-align: center;
    transition: 0.2s;
}

.item-card:hover {
    background: var(--border-dim);
    border-color: var(--text-red);
    transform: translateY(-2px);
}

.item-title {
    color: var(--text-gold);
    border-bottom: 1px dashed var(--text-white);
    margin-bottom: 5px;
    display: block;
}

/* --- Infomercial Elements --- */
.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.timer-box {
    background: #000;
    color: red;
    font-size: 2rem;
    text-align: center;
    border: 4px double yellow;
    margin: 10px 0;
    padding: 10px;
    font-family: var(--font-main);
    letter-spacing: 2px;
}

.limited-banner {
    background: yellow;
    color: red;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
    border: 2px dashed red;
    padding: 5px;
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    text-align: center;
    border-top: 2px solid var(--text-white);
    padding: 20px;
    background: var(--border-dim);
    margin-top: auto;
}

/* --- Concept Art Styling --- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.concept-frame {
    position: relative;
    width: 250px;
    border: 2px solid var(--text-gold);
    background: black;
    padding: 5px;
    box-shadow: 5px 5px 0px var(--border-dim);
}

.gallery-caption {
    text-align: center;
    color: var(--text-white);
    margin-top: 5px;
    font-weight: bold;
    border-top: 1px dotted var(--text-white);
    padding-top: 5px;
}

.watermark {
    position: absolute;
    bottom: 40px;
    /* Above caption */
    right: 10px;
    background: black;
    color: var(--text-red);
    font-size: 0.8rem;
    padding: 2px 5px;
    border: 1px solid var(--text-red);
    opacity: 0.8;
    z-index: 10;
    pointer-events: none;
}