/* ═══════════════════════════════════════════════════════════════════
   Golden Shrimp Chips — Flat Indie Theme v4
   Simple. No borders. No card backgrounds. Images are the star.
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ─── Variables ─────────────────────────────────────────────────── */
:root {
    --bg:           #1f1f23;
    --bg-elevated:  #26262a;
    --text:         #ececec;
    --text-dim:     #a5a0ad;
    --text-muted:   #6b6670;

    --accent:       #f5b04a;
    --accent-hover: #ffd07a;

    --font-display: "Fredoka", "Nunito", sans-serif;
    --font-body:    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-sm:    8px;
    --radius:       14px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-body);
    font-size: 1rem; line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh; overflow-x: hidden;
}
input, button, select, textarea {
    font-family: inherit; font-size: inherit; color: inherit;
    background: none; border: none; outline: none;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ─── Layout ────────────────────────────────────────────────────── */
.site-wrapper {
    display: flex; flex-direction: column;
    min-height: 100vh;
}
.main-content { flex: 1; padding-bottom: 2rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 2.5rem 0; }
.pt-0 { padding-top: 0; }

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
    background: rgba(31, 31, 35, 0.85);
    backdrop-filter: blur(6px);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 100;
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar-logo {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-decoration: none;
}
.navbar-logo:hover { color: var(--accent); }

.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }
.navbar-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600; font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.navbar-item:hover, .navbar-item.is-active {
    color: var(--accent);
}

.navbar-burger {
    display: none; flex-direction: column; gap: 5px; padding: 0.5rem;
    cursor: pointer; background: none; border: none;
}
.navbar-burger span { display: block; width: 22px; height: 2px; background: #ffffff; border-radius: 1px; transition: all 0.25s; }

@media (max-width: 768px) {
    .navbar-burger { display: flex; }
    .navbar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background: var(--bg); padding: 0.75rem; gap: 0.25rem; }
    .navbar-menu.is-active { display: flex; }
    .navbar-item { width: 100%; justify-content: center; }
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
    background: transparent;
    padding: 3rem 1rem 2.5rem;
    margin-top: auto;
}
.footer .container {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600;
    color: var(--text-dim);
}
.footer-social-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    color: var(--text-muted); font-size: 1rem;
    transition: color 0.2s; text-decoration: none;
}
.social-btn:hover { color: var(--accent); }
.copyright-text { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero-section { padding: 2.5rem 0 0.5rem; text-align: center; }
.hero-title {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}
.hero-tagline {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 480px; margin: 0.4rem auto 0;
}

/* ─── Section Titles ────────────────────────────────────────────── */
.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
    text-align: center;
}

/* ─── Games Grid ────────────────────────────────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}
@media (max-width: 640px) {
    .games-grid { grid-template-columns: 1fr; }
}

.game-card-wrapper {
    display: block; text-decoration: none; color: inherit;
}
.game-card {
    transition: opacity 0.2s;
    height: 100%;
    display: flex; flex-direction: column;
}
.game-card-wrapper:hover .game-card {
    opacity: 0.85;
}

.game-thumbnail {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}
.game-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: var(--radius);
    transition: transform 0.3s ease;
}
.game-card-wrapper:hover .game-thumbnail img { transform: scale(1.03); }

.game-thumbnail-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: var(--radius);
}
.game-thumbnail-placeholder i { font-size: 2rem; color: var(--text-muted); }

.card-content { padding: 0.8rem 0.1rem 0; }
.game-title {
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem; line-height: 1.3;
}
.game-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

/* ─── Tags ──────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.75rem; font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.tag:hover { color: var(--accent); }

/* ─── Search ────────────────────────────────────────────────────── */
.search-bar-wrap {
    max-width: 420px; margin: 0 auto 1.5rem;
    position: relative;
}
.search-input {
    width: 100%; padding: 0.65rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem; color: var(--text);
    transition: box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { box-shadow: 0 0 0 2px rgba(245, 176, 74, 0.25); }

/* ─── Game Detail Page ──────────────────────────────────────────── */
.game-cover {
    border-radius: var(--radius); overflow: hidden;
    margin-bottom: 1rem;
}
.game-cover__img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.game-cover-placeholder {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-detail-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.game-short-desc {
    font-size: 1rem; color: var(--text-dim);
    text-align: center; margin-bottom: 1.5rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}

.content.is-medium { font-size: 1rem; line-height: 1.75; color: var(--text); }
.content.is-medium p { margin-bottom: 1rem; }
.content.is-medium h2 {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem; margin-bottom: 0.6rem;
}
.content.is-medium h3 {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 600;
    color: var(--text);
    margin-top: 1.25rem; margin-bottom: 0.4rem;
}
.content.is-medium ul, .content.is-medium ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content.is-medium li { margin-bottom: 0.3rem; }
.content.is-medium a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.content.is-medium a:hover { color: var(--accent-hover); }

/* ─── Action Buttons ───────────────────────────────────────────── */
.action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem; font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-dim);
    cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.action-btn:hover { color: var(--accent); background: rgba(245, 176, 74, 0.1); }
.action-btn--special {
    background: var(--accent);
    color: var(--bg);
}
.action-btn--special:hover {
    background: var(--accent-hover);
    color: var(--bg);
}

/* ─── Navigation (detail-nav) ──────────────────────────────────── */
.detail-nav {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem;
}

/* ─── Pagination ────────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; flex-wrap: wrap;
    margin-top: 2rem; padding-top: 1.5rem;
}
.pagination a {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.85rem; color: var(--text-dim);
    transition: all 0.2s; text-decoration: none;
}
.pagination a:hover { color: var(--accent); }
.pagination a.is-current {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
}
.pagination a[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pagination-list { display: flex; gap: 0.3rem; list-style: none; flex-wrap: wrap; }

/* ─── Empty / No Results State ────────────────────────────────── */
.no-results { text-align: center; padding: 3rem 1rem; }
.no-results i { font-size: 2rem; color: var(--text-muted); margin-bottom: 0.75rem; display: inline-block; }
.no-results .title.is-4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: 0.4rem; }
.no-results .subtitle.is-5 { font-size: 0.9rem; color: var(--text-dim); }

.is-hidden { display: none !important; }

/* ─── Category tags on detail page ──────────────────────────────── */
.category-tags__list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

/* ─── Utility ───────────────────────────────────────────────────── */
.has-text-centered { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

/* ─── Columns fallback ──────────────────────────────────────────── */
.columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.columns.is-centered { display: flex; justify-content: center; }
.column.is-10-desktop { width: 100%; max-width: 800px; }
.column.is-8 { width: 100%; max-width: 700px; }

.level { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.level-left, .level-right { display: flex; align-items: center; gap: 0.5rem; }
.level-item { display: flex; }

/* ─── Content global ────────────────────────────────────────────── */
.content { max-width: 800px; margin: 0 auto; }
.content h1 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; color: var(--text); }
.content p { margin-bottom: 1rem; }
.content a { color: var(--accent); }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-title { font-size: 1.5rem; }
    .section { padding: 2rem 0; }
    .game-detail-title { font-size: 1.4rem; }
    .detail-nav { justify-content: center; }
}
