/* ═════════════════════════════════════════════════════════════
   BRB Drama — Y2K RETRO CHAOS THEME
   Inspired by 1995–2000 web graphics, loud sale ads, magazine spreads
   Principles:
   • Bright yellow (#FFEBC6) backdrop
   • Blocky bold sans-serif with heavy drop shadows
   • No rounded corners — sharp rectangular edges
   • Asymmetric collage layout
   • Loud, playful, unpolished energy
   ═════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ─── Variables ───────────────────────────────────────────── */
:root {
    /* Background */
    --bg-body:     #FFEBC6;
    --bg-pink:     #FF99CC;
    --bg-purple:   #C8A8FF;
    --bg-cyan:     #00E0E0;
    --bg-orange:   #FF8C42;
    --bg-lime:     #CCFF00;
    --bg-cream:    #FFF8E7;
    --bg-hot:      #FF3366;
    --bg-dark:     #1a1a2e;

    /* Text */
    --text:        #000000;
    --text-inv:    #ffffff;
    --text-muted:  #333333;

    /* Accent */
    --accent-pink: #FF3366;
    --accent-cyan: #00B4D8;
    --accent-purple:#9D4EDD;
    --accent-yellow:#FFD60A;
    --accent-green: #2EC4B6;
    --accent-orange:#FF8C42;

    /* Borders */
    --border:      #000000;
    --border-thick:4px;

    /* Typefaces */
    --font-display: "Archivo Black", Impact, "Arial Black", sans-serif;
    --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    "Space Mono", "Courier New", monospace;
}

/* ─── Base ────────────────────────────────────────────────── */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--bg-body) !important;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-bottom: 4rem;
}

/* ─── Y2K Display Typography ──────────────────────────────── */
.y2k-title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-inv);
    text-shadow:
        4px 4px 0px #000000,
        3px 3px 0px #000000,
        2px 2px 0px #000000,
        1px 1px 0px #000000;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.y2k-title--xl {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
}

.y2k-title--lg {
    font-size: clamp(2rem, 6vw, 4rem);
}

.y2k-title--md {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.y2k-title--sm {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* Title color variants */
.y2k-title--pink  { color: #FF99CC; text-shadow: 4px 4px 0 #000, 3px 3px 0 #000, 2px 2px 0 #000, 1px 1px 0 #000; }
.y2k-title--cyan  { color: #00E0E0; text-shadow: 4px 4px 0 #000, 3px 3px 0 #000, 2px 2px 0 #000, 1px 1px 0 #000; }
.y2k-title--lime  { color: #CCFF00; text-shadow: 4px 4px 0 #000, 3px 3px 0 #000, 2px 2px 0 #000, 1px 1px 0 #000; }
.y2k-title--orange{ color: #FF8C42; text-shadow: 4px 4px 0 #000, 3px 3px 0 #000, 2px 2px 0 #000, 1px 1px 0 #000; }
.y2k-title--yellow{ color: #FFD60A; text-shadow: 4px 4px 0 #000, 3px 3px 0 #000, 2px 2px 0 #000, 1px 1px 0 #000; }
.y2k-title--white { color: #ffffff; text-shadow: 4px 4px 0 #000, 3px 3px 0 #000, 2px 2px 0 #000, 1px 1px 0 #000; }

/* Body text */
.content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
}

.content p { margin-bottom: 1.25rem; }

.content strong,
.content b {
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.content a {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-pink);
    transition: background 0.15s;
}

.content a:hover {
    background: var(--accent-pink);
    color: #fff;
}

h1, h2, h3, h4, h5, h6,
.title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

h1.title.is-1,
h1.title.is-2,
h1.title.is-3 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--text); }
h2.title.is-2,
h2.title.is-3,
.title.is-3  { font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--text); }
.title.is-4,
.title.is-5  { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--text); }

.subtitle {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-weight: 600;
}

/* Override Bulma's generic dark colors */
.has-text-dark,
.has-text-grey,
.has-text-grey-dark,
.has-text-grey-light { color: var(--text) !important; }

/* ─── Retro Banners & Boxes ───────────────────────────────── */
.y2k-banner {
    background: var(--bg-pink);
    border: var(--border-thick) solid var(--border);
    box-shadow: 6px 6px 0 #000;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.y2k-banner--cyan    { background: var(--bg-cyan); }
.y2k-banner--purple  { background: var(--bg-purple); }
.y2k-banner--orange  { background: var(--bg-orange); }
.y2k-banner--lime    { background: var(--bg-lime); }
.y2k-banner--yellow  { background: var(--accent-yellow); }
.y2k-banner--hot     { background: var(--bg-hot); }
.y2k-banner--dark    { background: var(--bg-dark); }

.y2k-banner--tilt-left { transform: rotate(-1.5deg); }
.y2k-banner--tilt-right{ transform: rotate(1.5deg); }

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar {
    background-color: #FFD72F !important;
    border-bottom: var(--border-thick) solid #000;
    box-shadow: none;
    min-height: 4rem;
}

.navbar-brand {
    padding-left: 1rem;
}

.navbar-brand a {
    display: flex;
    align-items: center;
}

.navbar-brand strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #000000 !important;
    text-transform: uppercase;
    text-shadow: none;
}

.navbar-brand img {
    max-height: 2.5rem !important;
    margin-right: 0.75rem;
    filter: contrast(1.4) saturate(2);
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000 !important;
    border-left: var(--border-thick) solid #000;
    transition: none;
}

.navbar-item:hover,
.navbar-item.is-active {
    background-color: #000 !important;
    color: #FFD72F !important;
}

.navbar-burger {
    color: #000;
    height: 4rem;
    width: 4rem;
}

.navbar-burger:hover {
    background-color: #000 !important;
    color: #FFD72F;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
    background-color: #FFD72F;
    color: #000;
    border-top: var(--border-thick) solid #000;
    padding: 3.5rem 1.5rem 2.5rem;
}

.footer p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000;
}

.footer .button.is-light {
    background-color: transparent;
    border: 3px solid #000;
    color: #000;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.footer .button.is-light:hover {
    background-color: #000;
    color: #FFD72F;
    border-color: #000;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    background-color: #fff;
    color: var(--text);
    border: var(--border-thick) solid var(--border);
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 #000;
}

.card-content .title.is-5 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    transition: color 0.15s;
}

.card-hover:hover .card-content .title.is-5 {
    color: var(--accent-pink);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-footer {
    border-top: var(--border-thick) solid var(--border);
    background: #f0f0f0;
}

.card-footer-item {
    border-right: var(--border-thick) solid var(--border);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #000;
}
.card-footer-item:last-child {
    border-right: none;
}

/* ─── Tags ────────────────────────────────────────────────── */
.tag {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    border-radius: 0 !important;
    padding: 0.4em 0.9em;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.tag.is-light {
    background-color: var(--bg-cyan);
    color: #000;
    border: 2px solid #000;
}

.category-tags {
    background-color: var(--bg-pink);
    border: var(--border-thick) solid var(--border);
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 #000;
}

.category-tags__tag {
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.15s;
    text-decoration: none;
    border-radius: 0 !important;
    padding: 0.5em 1em;
    box-shadow: 2px 2px 0 #000;
    display: inline-block;
    margin: 0.25rem;
}

.category-tags__tag:hover {
    background-color: var(--accent-yellow);
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

/* ─── Forms / Search ──────────────────────────────────────── */
.input {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    background-color: #fff;
    border: var(--border-thick) solid var(--border);
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 #000;
    color: var(--text);
    transition: box-shadow 0.15s;
}

.input::placeholder {
    color: #999;
    font-weight: 500;
}

.input:focus,
.input:active {
    border-color: #000 !important;
    box-shadow: 6px 6px 0 #FF3366 !important;
    outline: none;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.button {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 0 !important;
    transition: all 0.15s;
    border: var(--border-thick) solid #000;
    box-shadow: 4px 4px 0 #000;
}

.button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.button.is-light {
    background-color: #fff;
    border-color: #000;
    color: #000;
}

.button.is-light:hover {
    background-color: var(--bg-lime);
}

.button.is-link.is-medium {
    background-color: var(--accent-pink) !important;
    color: #fff !important;
    border: var(--border-thick) solid #000;
}

.button.is-link.is-medium:hover {
    background-color: #FF6699 !important;
}

.back-to-games-button {
    background-color: var(--accent-pink) !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 6px 6px 0 #000;
    min-width: 200px;
}

.back-to-games-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #000;
    background-color: #FF6699 !important;
}

/* ─── Press Kit Button ────────────────────────────────────── */
.presskit-button {
    background-color: var(--accent-cyan) !important;
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 6px 6px 0 #000;
    min-width: 200px;
    border: var(--border-thick) solid #000;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 1em 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.presskit-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #000;
    background-color: #33E0E0 !important;
}

/* ─── Game Cover ──────────────────────────────────────────── */
.game-cover {
    position: relative;
    aspect-ratio: 92 / 43;
    overflow: hidden;
    border: var(--border-thick) solid #000;
    background-color: #000;
    box-shadow: 8px 8px 0 #000;
}

.game-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ─── Game Short Description ──────────────────────────────── */
.game-short-desc {
    max-width: 720px;
    margin: 1.5rem auto 2.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text);
}

/* ─── Game Thumbnails ─────────────────────────────────────── */
.collage-item--tall .game-thumbnail-figure {
    aspect-ratio: auto !important;
    height: 520px !important;
}

.game-thumbnail-figure {
    aspect-ratio: 92 / 43;
    position: relative;
    margin: 0;
    background-color: #000;
    overflow: hidden;
    border-bottom: var(--border-thick) solid #000;
}

.game-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease, filter 0.2s;
}

.card-hover:hover .game-thumbnail-img {
    transform: scale(1.04);
    filter: saturate(1.3) contrast(1.1);
}

/* ─── Collage Grid ────────────────────────────────────────── */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.collage-item {
    grid-column: span 4;
}

.collage-item--wide {
    grid-column: span 8;
}

.collage-item--full {
    grid-column: span 12;
}

.collage-item--tall {
    grid-column: span 4;
    grid-row: span 2;
}

.collage-item:nth-child(odd) {
    transform: rotate(-0.8deg);
}

.collage-item:nth-child(even) {
    transform: rotate(0.8deg);
}

.collage-item:hover {
    transform: rotate(0deg) translate(-3px, -3px);
}

/* ─── Pagination ──────────────────────────────────────────── */
.pagination-link,
.pagination-previous,
.pagination-next {
    border: var(--border-thick) solid #000;
    color: #000;
    background-color: #fff;
    border-radius: 0 !important;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.15s;
}

.pagination-link:hover,
.pagination-previous:not([disabled]):hover,
.pagination-next:not([disabled]):hover {
    background-color: var(--bg-lime);
    color: #000;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
}

.pagination-link.is-current {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #CCFF00 !important;
    font-weight: 700;
    box-shadow: 3px 3px 0 #000;
}

/* ─── Decorative Starbursts ───────────────────────────────── */
.y2k-starburst {
    position: relative;
    display: inline-block;
    background: #FF3366;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0.6em 1em;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    z-index: 1;
}

/* ─── Newsletter / Formkit overrides ──────────────────────── */
.formkit-form {
    border-radius: 0 !important;
    border: var(--border-thick) solid #000 !important;
    box-shadow: 6px 6px 0 #000 !important;
}

/* ─── Utility / Misc ──────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .collage-item,
    .collage-item--wide,
    .collage-item--tall {
        grid-column: span 6;
    }
}

@media screen and (max-width: 768px) {
    body { font-size: 1rem; }
    .collage-item,
    .collage-item--wide,
    .collage-item--tall,
    .collage-item--full {
        grid-column: span 12;
        transform: none !important;
    }
    .navbar-brand strong {
        font-size: 1.2rem;
    }
    .main-content { padding-bottom: 2rem; }
}

/* Smooth fade for lazy-loaded elements */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.5s ease both;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-left: 2px solid #000;
}
::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
    background: #FF3366;
}
