/* ========================================
   Midnight Cheesecake — Simple Black + Purple
   Clean indie studio aesthetic
   ======================================== */

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #0A0A0F;
    color: #E9E7F8;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: #E9E7F8; text-decoration: none; transition: color 0.2s; }
a:hover { color: #A78BFA; }

img { max-width: 100%; display: block; }

/* ---- Reset residual Bulma ---- */
.navbar, .container, .section, .columns, .column, .card, .card-content,
.card-image, .tags, .tag, .content, .level, .pagination, .box,
.notification, .hero, .breadcrumb-list, .buttons, .button,
.has-text-centered, .is-medium, .py-5, .mt-5 {
    all: unset;
    box-sizing: border-box;
}

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

/* ---- Layout ---- */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content { flex: 1; }

/* ---- Simple Navbar ---- */
.navbar-simple {
    padding: 2rem 1.5rem 1.25rem;
    text-align: center;
}

.navbar-simple__brand {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #E9E7F8;
    margin-bottom: 0.75rem;
}

.navbar-simple__brand:hover { color: #C4B5FD; }

.navbar-simple__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.navbar-simple__nav a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9CA3AF;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-simple__nav a:hover {
    color: #C4B5FD;
    background: rgba(139, 92, 246, 0.12);
}

/* ---- Page Container ---- */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #E9E7F8;
    margin-bottom: 1.5rem;
}

.page-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #E9E7F8;
    margin: 2rem 0 0.75rem;
}

.page-container p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-container ul, .page-container ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
    font-size: 0.95rem;
}

.page-container li { margin-bottom: 0.4rem; }
.page-container strong { color: #E9E7F8; }
.page-container a { color: #A78BFA; }
.page-container a:hover { text-decoration: underline; }

/* ---- Section Headings ---- */
.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #C4B5FD;
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading__icon {
    font-size: 1.1rem;
}

/* ---- Search ---- */
.search-box {
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.search-box__input {
    width: 100%;
    background: #141318;
    border: 1px solid #252233;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #E9E7F8;
    outline: none;
    transition: all 0.25s;
}

.search-box__input::placeholder { color: #6B7280; }

.search-box__input:focus {
    border-color: #A78BFA;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

/* ---- Game Grid ---- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.game-card {
    background: #141318;
    border: 1px solid #252233;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.game-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0A0A0F;
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card__media img {
    transform: scale(1.03);
}

.game-card__info {
    padding: 1rem 1.1rem 1.1rem;
}

.game-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #E9E7F8;
    margin-bottom: 0.35rem;
}

.game-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card__tags {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.tag-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: #A78BFA;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.tag-badge:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #C4B5FD;
}

/* ---- Detail Page ---- */
.detail-hero {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.detail-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, #0A0A0F 0%, #0A0A0F 25%, rgba(30,20,50,0.6) 55%, rgba(20,15,35,0.3) 80%, transparent 100%);
}

.detail-hero__content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.detail-hero__info { flex: 1; min-width: 0; }

.detail-hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: #E9E7F8;
    margin-bottom: 0.5rem;
}

.detail-hero__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #9CA3AF;
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.detail-hero__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.detail-hero__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn--primary {
    background: #7C3AED;
    color: #fff;
}

.btn--primary:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: #E9E7F8;
    border: 1px solid #252233;
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #3E3A52;
    color: #C4B5FD;
}

/* ---- Detail Content ---- */
.detail-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
}

.detail-main { min-width: 0; }

.detail-main h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #C4B5FD;
    margin-bottom: 1rem;
}

.detail-main p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-main ul, .detail-main ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.detail-main li { margin-bottom: 0.35rem; }
.detail-main strong { color: #E9E7F8; font-weight: 600; }
.detail-main a { color: #A78BFA; }
.detail-main a:hover { text-decoration: underline; }

.detail-side { min-width: 0; }

.side-panel {
    background: #141318;
    border: 1px solid #252233;
    border-radius: 10px;
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.side-panel__title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6B7280;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #252233;
}

.side-panel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.side-panel__row:not(:last-child) {
    border-bottom: 1px solid rgba(37, 34, 51, 0.5);
}

.side-panel__label { color: #6B7280; }
.side-panel__value { color: #E9E7F8; font-weight: 500; }

.side-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.side-panel__actions .btn {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
}

/* ---- Section Header ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
}

.section-header__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #C4B5FD;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header__link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #A78BFA;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: all 0.2s;
}

.section-header__link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

/* ---- No Results ---- */
.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
}

.no-results__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.no-results__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #E9E7F8;
    margin-bottom: 0.4rem;
}

.no-results__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6B7280;
}

/* ---- Footer ---- */
.footer-simple {
    border-top: 1px solid #252233;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-simple__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-simple__nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-simple__nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6B7280;
    transition: color 0.2s;
}

.footer-simple__nav a:hover { color: #A78BFA; }

.footer-simple__copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #4B5563;
}

/* ---- Pagination ---- */
.pagination-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pagination-simple a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: #141318;
    border: 1px solid #252233;
    color: #9CA3AF;
    transition: all 0.2s;
}

.pagination-simple a:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: #A78BFA;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-hero { height: 35vh; min-height: 250px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
}

@media (max-width: 600px) {
    .games-grid { grid-template-columns: 1fr; }
    .navbar-simple__brand { font-size: 1.2rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .detail-hero__title { font-size: 1.6rem; }
}
