/* ============================================
   STARTER THEME - Pure CSS (No TailwindCSS)
   Color: Emerald (#10b981) + Violet (#8b5cf6)
   Font: Inter
   ============================================ */

/* === CSS Variables === */
:root {
    --color-primary: #10b981;
    --color-primary-hover: #059669;
    --color-accent: #8b5cf6;
    --color-accent-hover: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #10b981, #8b5cf6);
    --gradient-hero: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);

    /* Light Mode */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-alt: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-card-hover-shadow: rgba(16, 185, 129, 0.15);

    --header-height: 64px;
    --max-width: 1320px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* Dark Mode Variables */
html.dark {
    --color-bg: #0f1117;
    --color-surface: #1a1d27;
    --color-surface-alt: #242837;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-card-hover-shadow: rgba(16, 185, 129, 0.2);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === Container === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    transition: background 0.3s, border-color 0.3s;
}

html.dark .site-header {
    background: rgba(15, 17, 23, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.header-brand .brand-accent {
    color: var(--color-primary);
}

/* Navigation */
.header-nav {
    display: none;
    align-items: center;
    gap: 4px;
}

@media (min-width: 1024px) {
    .header-nav { display: flex; }
}

.header-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--color-primary);
    background: rgba(16, 185, 129, 0.1);
}

/* Search */
.header-search {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.header-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.header-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 18px;
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.2s;
    font-size: 20px;
}

.btn-icon:hover {
    background: var(--color-surface-alt);
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    z-index: 99;
    padding: 20px;
    overflow-y: auto;
    animation: slideDown 0.25s ease;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 48px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.06;
    pointer-events: none;
}

html.dark .hero-section::before {
    opacity: 0.1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 20px; }
}

.hero-featured {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.hero-featured:hover img {
    transform: scale(1.05);
}

.hero-featured .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.hero-featured .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 12px;
}

.hero-featured .hero-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .hero-featured .hero-title { font-size: 36px; }
}

.hero-featured .hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .hero-small-grid { grid-template-columns: 1fr; gap: 12px; }
}

.hero-small-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero-small-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-small-card:hover img {
    transform: scale(1.08);
}

.hero-small-card .hero-small-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.hero-small-card .hero-small-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .title-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title .title-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--color-primary); }
.section-title .title-icon.violet { background: rgba(139, 92, 246, 0.12); color: var(--color-accent); }
.section-title .title-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.section-link:hover { gap: 8px; }

/* ============================================
   GAME CARD
   ============================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }

.game-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--color-card-hover-shadow);
}

.game-card .card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

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

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

.game-card .card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.game-card .card-rating .star {
    color: #fbbf24;
    font-size: 12px;
}

.game-card .card-info {
    padding: 12px;
}

.game-card .card-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.game-card:hover .card-title {
    color: var(--color-primary);
}

.game-card .card-genres {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   GENRE PILLS / TAGS
   ============================================ */
.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.genre-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(16, 185, 129, 0.08);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.pagination-info {
    font-size: 13px;
    color: var(--color-text-muted);
}

.pagination-info strong {
    color: var(--color-text);
    font-weight: 700;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    transition: all 0.2s;
}

.pagination-list a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-list .active span {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.pagination-list .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-list .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 22px !important;
    font-weight: normal !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.pagination-list a.pagination-nav,
.pagination-list span.pagination-nav {
    font-size: 0;
    line-height: 0;
}

.pagination-list a.pagination-nav .material-symbols-outlined,
.pagination-list span.pagination-nav .material-symbols-outlined {
    font-size: 22px !important;
    line-height: 1;
}

/* ============================================
   PAGE HEADER (Genre, Category, etc.)
   ============================================ */
.page-header {
    padding: 40px 0 32px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.page-breadcrumb a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

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

.page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-heading .heading-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-primary);
}

.page-heading h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .page-heading h1 { font-size: 36px; }
}

.page-heading .heading-count {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero .hero-bg {
    position: absolute;
    inset: 0;
}

.detail-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    opacity: 0.5;
    transform: scale(1.1);
}

.detail-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(0,0,0,0.2) 100%);
}

.detail-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .detail-main { grid-template-columns: 1fr 340px; }
}

.detail-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: 24px;
    margin-bottom: 24px;
}

.detail-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

/* Stats row */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.stat-item .material-symbols-outlined {
    font-size: 18px;
}

.stat-item strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Action buttons */
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.action-btn.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-answer {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================
   PLAY PAGE
   ============================================ */
.play-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 16px;
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    border: 2px solid var(--color-border);
}

.game-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    margin-top: 8px;
}

.game-controls .control-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.control-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   FILTER PAGE
   ============================================ */
.filter-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
}

.filter-panel label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: var(--color-primary);
}

.filter-genres {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

@media (min-width: 640px) { .filter-genres { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .filter-genres { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .filter-genres { grid-template-columns: repeat(5, 1fr); } }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.filter-checkbox input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   SEO CONTENT
   ============================================ */
.seo-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 40px;
}

.seo-content {
    max-height: 7.5rem;
    overflow: hidden;
    transition: max-height 0.3s;
    line-height: 1.8;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.seo-content.expanded {
    max-height: none;
}

.seo-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 16px;
    margin-bottom: 8px;
}

.seo-content p { margin-bottom: 12px; }

.seo-content strong { color: var(--color-primary); }

.seo-content a {
    color: var(--color-primary) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-content ul, .seo-content ol { margin-left: 20px; margin-bottom: 12px; }
.seo-content li { margin-bottom: 6px; }
.seo-content ul li::marker { color: var(--color-primary); }

.seo-toggle {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
    padding: 40px 0 24px;
    background: var(--color-surface);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-content {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 14px;
    transition: all 0.2s;
}

.footer-socials a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-primary); }

.footer-copy {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
}

.empty-state .material-symbols-outlined {
    font-size: 56px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--color-text-secondary);
    font-size: 16px;
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
.load-more-wrapper {
    text-align: center;
    margin-top: 32px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 16px var(--color-card-hover-shadow);
}

/* ============================================
   RATING STARS
   ============================================ */
.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars .star {
    font-size: 24px;
    color: var(--color-border);
    cursor: pointer;
    transition: color 0.15s;
}

.rating-stars .star.filled { color: #fbbf24; }
.rating-stars .star:hover { color: #f59e0b; }

/* ============================================
   UTILITIES
   ============================================ */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary) !important; }
.fw-bold { font-weight: 700; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-secondary); }

/* Selection */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--color-text);
}
