/* ============================================
   Minimal responsive layout - light theme
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --accent: #f97316;
    --bg: #f5f7fb;
    --bg-card: #ffffff;
    --bg-secondary: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #eef2fb;
    --border: #dfe5f1;
    --border-color: #dfe5f1;
    --text: #1f2933;
    --text-primary: #1f2933;
    --text-secondary: #4b5563;
    --text-soft: #4b5563;
    --text-muted: #9aa5b1;
    --warning: #f59e0b;
    --success: #10b981;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-2xl: 24px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12);
    --shadow-neon: 0 0 20px rgba(168, 85, 247, 0.3);
    --transition: all .2s ease;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-4xl: 2.25rem;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

body {
    font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
}

.site-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.main-nav {
    display: flex;
    gap: .5rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    font-size: .9rem;
    color: var(--text-soft);
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface-muted);
    padding: .15rem .75rem;
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    font-size: .85rem;
    padding: .35rem;
    color: var(--text);
}

.search-field::placeholder { color: var(--text-muted); }

.search-submit {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: .85rem;
    cursor: pointer;
}

.theme-toggle,
.menu-toggle { display: none; }

/* Hero */
.hero-banner {
    margin-top: 1.25rem;
    padding: 2.5rem 1.5rem 1.5rem;
    background: radial-gradient(circle at top, #e3ecff 0%, #f5f7fb 55%, #f5f7fb 100%);
}

.hero-split {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-kicker {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .3em;
    color: var(--text-muted);
}

.hero-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-heading span { color: var(--primary); }

.hero-text {
    color: var(--text-soft);
    max-width: 520px;
}

.hero-search-form {
    display: flex;
    gap: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: .35rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .35rem .5rem;
    font-size: .95rem;
}

.hero-search-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: .45rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
}

.hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: .5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid transparent;
    font-size: .9rem;
}

.cta-primary {
    background: var(--primary);
    color: #fff;
}

.cta-secondary {
    border-color: var(--border);
    color: var(--text-soft);
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.hero-panel-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.hero-panel-image {
    position: relative;
    overflow: hidden;
}

.hero-panel-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 10%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

.hero-panel-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-panel-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.hero-panel-category {
    font-size: .75rem;
    letter-spacing: .2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-panel-link {
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
}

.hero-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .9rem;
    flex: 1;
    min-width: 120px;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}

.metric-label {
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: .2em;
}

/* Categories */
.category-tags-bar {
    background: transparent;
    padding: 1rem 1.5rem;
}

.category-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.category-chip {
    border: 1px solid var(--border);
    padding: .35rem .95rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    color: var(--text-soft);
    background: var(--surface);
}

.category-chip.active,
.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* Highlight + sections */
.highlight-section,
.collection-section,
.layout-grid,
.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.section-kicker {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .25em;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
}

.highlight-grid,
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.highlight-card,
.collection-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.highlight-image img {
    border-radius: var(--radius-md);
    height: 140px;
    object-fit: cover;
}

.highlight-tag {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .2em;
}

.collection-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.collection-card p,
.highlight-card p {
    color: var(--text-soft);
    font-size: .9rem;
}

/* Main layout */
.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 1.5rem;
}

.filters-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    position: sticky;
    top: 90px;
    align-self: start;
}

.filters-panel h3 {
    font-size: 1.1rem;
    margin-bottom: .35rem;
}

.filters-panel p {
    color: var(--text-soft);
    font-size: .9rem;
    margin-bottom: .85rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.2rem;
}

.filter-pill {
    padding: .3rem .85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-soft);
    background: var(--surface-muted);
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filters-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.filters-list a {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--text-soft);
}

.filters-badge {
    padding: .15rem .5rem;
    background: var(--primary-soft);
    border-radius: var(--radius-full);
    font-size: .75rem;
    color: var(--primary);
}

.main-grid-column {
    background: transparent;
}

.content-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .75rem;
}

.content-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.content-subtitle {
    color: var(--text-soft);
    font-size: .9rem;
}

.content-count {
    font-size: .8rem;
    color: var(--text-muted);
}

.games-grid,
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.game-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: .8rem;
    right: .8rem;
    background: rgba(37, 99, 235, .9);
    color: #fff;
    font-size: .7rem;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-description {
    font-size: .85rem;
    color: var(--text-soft);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-muted);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-category {
    font-size: .75rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.play-button-large {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition);
}

.play-button-large:hover {
    transform: scale(1.05);
}

/* Simple detail styles */
.breadcrumb {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .9rem 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.game-detail-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.detail-container {
    width: 100%;
}

.game-detail-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-image-section {
    display: flex;
    flex-direction: column;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(37, 99, 235, .9);
    color: #fff;
    font-size: .75rem;
    padding: .3rem .7rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    z-index: 1;
}

.game-main-image {
    position: relative;
}

.game-meta-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.game-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.game-main-image img {
    width: 100%;
    height: auto;
}

.play-btn-large {
    width: 100%;
    margin-top: .8rem;
    border: none;
    background: var(--primary);
    color: #fff;
    padding: .8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.game-info-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.game-detail-title {
    font-size: 1.6rem;
    margin-bottom: .6rem;
}

.game-description {
    color: var(--text-soft);
    font-size: .95rem;
    margin: 1rem 0;
    word-break: break-word;
}

.game-features {
    margin-top: 1.5rem;
    max-width: 640px;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.game-feature-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.game-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.game-feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.game-feature-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.game-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: white;
    flex-shrink: 0;
}

.game-feature-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.related-games {
    margin-top: 2rem;
}

.detail-related-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Page Wrapper for search/tags pages */
.page-wrapper {
    min-height: calc(100vh - 200px);
}

.main-content {
    width: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Section for about/privacy/contact/termly pages */
.section {
    width: 100%;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: .6rem;
    color: var(--text-primary);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .9rem;
    color: var(--text-soft);
}

.footer-menu a {
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: .8rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
}

/* Responsive tweaks */
@media (max-width: 960px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav {
        order: 3;
        flex-wrap: wrap;
    }
    
    .hero-banner {
        padding-top: 2rem;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .games-grid,
    .games-container,
    .highlight-grid,
    .collection-grid,
    .detail-related-grid {
        grid-template-columns: 1fr;
    }
    
    .game-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .game-meta-info {
        flex-direction: column;
    }
    
    .game-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .game-features {
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
}

