/* ═══════════════════════════════════════════════════════════════════════════════
   BLOXVAULT WIKI - PUBLIC WIKI STYLES
   A sleek, game-focused design for Roblox game wikis
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   BASE & VARIABLES
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap');

:root {
    --wiki-bg: #0a0a12;
    --wiki-surface: #13131f;
    --wiki-surface-2: #1a1a2a;
    --wiki-border: #1e293b;
    --wiki-text: #ffffff;
    --wiki-text-muted: #94a3b8;
    --wiki-primary: #00d4ff;
    --wiki-secondary: #ff6b35;
    --wiki-accent: #a855f7;
    --wiki-success: #22c55e;
    --wiki-warning: #eab308;
    --wiki-radius: 12px;
    --wiki-radius-lg: 20px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-layout {
    min-height: 100vh;
    background: var(--wiki-bg);
    display: flex;
    flex-direction: column;
}

.wiki-header {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--wiki-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.wiki-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wiki-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--wiki-text);
    outline: none;
}

.wiki-logo:focus {
    outline: none;
}

.wiki-logo .mud-icon-root {
    color: var(--wiki-primary);
}

.wiki-logo-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--wiki-primary), var(--wiki-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-logo-badge {
    background: var(--wiki-primary);
    color: var(--wiki-bg);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wiki-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wiki-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wiki-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    outline: none;
}

.wiki-nav-link:hover {
    color: var(--wiki-primary);
}

.wiki-nav-link:focus {
    outline: none;
}

.wiki-nav-admin {
    background: var(--wiki-surface-2);
    padding: 0.5rem 1rem;
    border-radius: var(--wiki-radius);
    border: 1px solid var(--wiki-border);
}

.wiki-main {
    flex: 1;
}

.wiki-footer {
    background: var(--wiki-surface);
    border-top: 1px solid var(--wiki-border);
    padding: 2rem;
    text-align: center;
}

.wiki-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: var(--wiki-text-muted);
    font-size: 0.875rem;
}

.wiki-footer strong {
    color: var(--wiki-primary);
}

.wiki-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOADING & EMPTY STATES
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-loading,
.wiki-not-found,
.wiki-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--wiki-text-muted);
}

.wiki-loading .mud-icon-root,
.wiki-not-found .mud-icon-root,
.wiki-empty .mud-icon-root {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.wiki-not-found h2,
.wiki-empty h2 {
    color: var(--wiki-text);
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION (Original)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-hero {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.wiki-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 40%);
}

.wiki-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.wiki-hero-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--wiki-text);
    margin-bottom: 1rem;
}

.wiki-hero-title-gradient {
    background: linear-gradient(135deg, var(--wiki-primary), var(--wiki-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-hero-subtitle {
    font-size: 1.25rem;
    color: var(--wiki-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOME PAGE HERO (Redesigned)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-home-hero {
    position: relative;
    padding: 8rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.wiki-home-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.wiki-home-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.wiki-home-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.wiki-home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--wiki-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.wiki-home-hero-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--wiki-text);
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.wiki-home-hero-title .gradient {
    background: linear-gradient(135deg, var(--wiki-primary), var(--wiki-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-home-hero-subtitle {
    font-size: 1.25rem;
    color: var(--wiki-text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.wiki-home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.wiki-home-hero-stat {
    text-align: center;
}

.wiki-home-hero-stat .value {
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wiki-text);
}

.wiki-home-hero-stat .label {
    font-size: 0.875rem;
    color: var(--wiki-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wiki-home-hero-stat.live .value {
    color: #22c55e;
}

.wiki-home-hero-stat.live .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-home-hero-stat.live .label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOME PAGE GAME CARDS
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-home-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.wiki-home-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--wiki-text);
    transition: all 0.3s ease;
}

.wiki-home-game-card:hover {
    transform: translateY(-8px);
    border-color: var(--game-color);
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.5),
        0 0 60px -20px var(--game-color);
}

.wiki-home-game-bg {
    position: absolute;
    inset: 0;
}

.wiki-home-game-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.wiki-home-game-card:hover .wiki-home-game-bg img {
    opacity: 0.6;
    transform: scale(1.05);
}

.wiki-home-game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 18, 0.5) 0%,
        rgba(10, 10, 18, 0.7) 40%,
        rgba(10, 10, 18, 0.95) 100%
    );
}

.wiki-home-game-live {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.wiki-home-game-live .pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.wiki-home-game-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 1;
}

.wiki-home-game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 3px solid var(--game-color);
    background: var(--wiki-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.wiki-home-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-home-game-icon .mud-icon-root {
    color: var(--game-color);
    font-size: 2rem;
}

.wiki-home-game-info {
    flex: 1;
}

.wiki-home-game-info h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.wiki-home-game-studio {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--wiki-text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.wiki-home-game-desc {
    color: var(--wiki-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.wiki-home-game-stats {
    display: flex;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1rem;
}

.wiki-home-game-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--wiki-text-muted);
    font-size: 0.8125rem;
}

.wiki-home-game-stat .mud-icon-root {
    font-size: 1rem;
    opacity: 0.7;
}

.wiki-home-game-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--game-color);
    font-weight: 600;
    font-size: 0.9375rem;
}

.wiki-home-game-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--game-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.wiki-home-game-card:hover .wiki-home-game-glow {
    opacity: 1;
}

/* Other Games (Simple Cards) */
.wiki-home-other-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wiki-text-muted);
    margin-bottom: 1rem;
}

.wiki-home-other-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wiki-home-game-card-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--wiki-text);
    transition: all 0.2s ease;
}

.wiki-home-game-card-simple:hover {
    background: var(--wiki-surface-2);
    border-color: var(--game-color);
    transform: translateX(8px);
}

.wiki-home-game-card-simple-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--game-color);
    background: linear-gradient(135deg, color-mix(in srgb, var(--game-color) 20%, transparent), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wiki-home-game-card-simple-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-home-game-card-simple-icon .mud-icon-root {
    color: var(--game-color);
}

.wiki-home-game-card-simple-info {
    flex: 1;
}

.wiki-home-game-card-simple-info h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.wiki-home-game-card-simple-info .studio {
    color: var(--wiki-text-muted);
    font-size: 0.8125rem;
    margin-right: 1rem;
}

.wiki-home-game-card-simple-info .worlds {
    color: var(--wiki-text-muted);
    font-size: 0.8125rem;
}

.wiki-home-game-card-simple .arrow {
    color: var(--wiki-text-muted);
    transition: all 0.2s;
}

.wiki-home-game-card-simple:hover .arrow {
    color: var(--game-color);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .wiki-home-hero-title {
        font-size: 2.5rem;
    }
    
    .wiki-home-hero-stats {
        gap: 1.5rem;
    }
    
    .wiki-home-hero-stat .value {
        font-size: 1.75rem;
    }
    
    .wiki-home-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-section {
    margin-bottom: 3rem;
}

.wiki-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wiki-text);
    margin-bottom: 1.5rem;
}

.wiki-section-title .mud-icon-root {
    color: var(--wiki-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BREADCRUMBS
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-breadcrumbs {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem;
}

.wiki-breadcrumbs .mud-breadcrumb-item {
    color: var(--wiki-text-muted);
}

.wiki-breadcrumbs a {
    color: var(--wiki-text-muted) !important;
    opacity: 0.8;
}

.wiki-breadcrumbs a:hover {
    color: var(--wiki-primary) !important;
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GAME CARDS (Home Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.wiki-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: var(--wiki-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--wiki-text);
    transition: all 0.3s ease;
}

.wiki-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--game-color, var(--wiki-primary));
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5), 0 0 30px -10px var(--game-color, var(--wiki-primary));
}

.wiki-game-card-bg {
    height: 160px;
    background: linear-gradient(135deg, var(--wiki-surface-2), var(--wiki-surface));
    position: relative;
    overflow: hidden;
}

.wiki-game-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--wiki-surface) 100%);
}

.wiki-game-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-game-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: -40px;
    position: relative;
}

.wiki-game-icon,
.wiki-game-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 3px solid var(--wiki-surface);
    background: var(--wiki-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wiki-game-icon {
    object-fit: cover;
}

.wiki-game-icon-placeholder .mud-icon-root {
    color: var(--game-color, var(--wiki-primary));
    font-size: 2rem;
}

.wiki-game-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wiki-game-desc {
    color: var(--wiki-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-game-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--wiki-border);
}

.wiki-game-worlds {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--wiki-text-muted);
    font-size: 0.8125rem;
}

.wiki-game-card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--game-color, var(--wiki-primary)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.wiki-game-card:hover .wiki-game-card-glow {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GAME HERO (Redesigned Game Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-game-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.wiki-game-hero-slideshow {
    position: absolute;
    inset: 0;
}

.wiki-game-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.wiki-game-hero-slide.active {
    opacity: 1;
}

.wiki-game-hero-bg {
    position: absolute;
    inset: 0;
}

.wiki-game-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-game-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 18, 0.3) 0%,
        rgba(10, 10, 18, 0.6) 50%,
        rgba(10, 10, 18, 0.95) 100%
    );
}

.wiki-game-hero-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.wiki-game-hero-info {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wiki-game-hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    border: 4px solid var(--game-color, var(--wiki-primary));
    background: var(--wiki-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 60px -20px var(--game-color, var(--wiki-primary));
    flex-shrink: 0;
}

.wiki-game-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-game-hero-icon .mud-icon-root {
    color: var(--game-color, var(--wiki-primary));
    font-size: 4rem;
}

.wiki-game-hero-text h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--wiki-text);
    margin: 0 0 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wiki-game-hero-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wiki-text-muted);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.wiki-game-hero-creator strong {
    color: var(--wiki-text);
}

.wiki-verified-badge {
    color: var(--wiki-primary) !important;
}

.wiki-game-hero-desc {
    color: var(--wiki-text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
}

/* Live Stats */
.wiki-game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wiki-game-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-game-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-game-stat-icon.playing {
    background: linear-gradient(135deg, #22c55e20, #22c55e40);
    color: #22c55e;
}

.wiki-game-stat-icon.visits {
    background: linear-gradient(135deg, #3b82f620, #3b82f640);
    color: #3b82f6;
}

.wiki-game-stat-icon.favorites {
    background: linear-gradient(135deg, #ef444420, #ef444440);
    color: #ef4444;
}

.wiki-game-stat-icon.genre {
    background: linear-gradient(135deg, #a855f720, #a855f740);
    color: #a855f7;
}

.wiki-game-stat-info {
    display: flex;
    flex-direction: column;
}

.wiki-game-stat-value {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wiki-text);
}

.wiki-game-stat-label {
    font-size: 0.8125rem;
    color: var(--wiki-text-muted);
}

/* Play Button */
.wiki-game-actions {
    display: flex;
    gap: 1rem;
}

.wiki-play-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px -8px rgba(34, 197, 94, 0.5);
    transition: all 0.2s ease;
}

.wiki-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(34, 197, 94, 0.6);
}

/* Slideshow Indicators */
.wiki-game-hero-indicators {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}

.wiki-game-hero-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.wiki-game-hero-indicators button.active {
    background: var(--game-color, var(--wiki-primary));
    width: 30px;
    border-radius: 5px;
}

/* Worlds Showcase */
.wiki-section-subtitle {
    color: var(--wiki-text-muted);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

.wiki-worlds-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.wiki-world-showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 280px;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--wiki-text);
    transition: all 0.3s ease;
}

.wiki-world-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--world-color, var(--wiki-primary));
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.5),
        0 0 40px -10px var(--world-color, var(--wiki-primary));
}

.wiki-world-showcase-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wiki-surface-2), var(--wiki-surface));
}

.wiki-world-showcase-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.wiki-world-showcase-card:hover .wiki-world-showcase-bg img {
    opacity: 0.5;
    transform: scale(1.05);
}

.wiki-world-showcase-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 18, 0.95) 70%);
}

.wiki-world-showcase-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--world-color, var(--wiki-primary)) 30%, transparent), rgba(255,255,255,0.1));
    border: 2px solid var(--world-color, var(--wiki-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.wiki-world-showcase-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-world-showcase-icon .mud-icon-root {
    color: var(--world-color, var(--wiki-primary));
    font-size: 1.75rem;
}

.wiki-world-showcase-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wiki-world-showcase-content p {
    color: var(--wiki-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.wiki-world-showcase-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--world-color, var(--wiki-primary));
    font-weight: 600;
    font-size: 0.9375rem;
}

.wiki-world-showcase-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--world-color, var(--wiki-primary)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.wiki-world-showcase-card:hover .wiki-world-showcase-glow {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WORLDS SHOWCASE V2 - Modern Redesign
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-worlds-showcase-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.wiki-world-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: var(--wiki-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wiki-world-card-v2:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--world-color);
    box-shadow: 
        0 32px 64px -16px rgba(0, 0, 0, 0.6),
        0 0 60px -10px var(--world-color),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Background */
.wiki-world-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--world-color) 20%, var(--wiki-surface)) 0%,
        var(--wiki-surface) 100%);
}

.wiki-world-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(20px) brightness(0.8);
    transition: all 0.4s ease;
}

.wiki-world-card-v2:hover .wiki-world-card-bg img {
    opacity: 0.25;
    filter: blur(15px) brightness(1);
    transform: scale(1.1);
}

.wiki-world-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(10, 10, 18, 0.6) 40%,
        rgba(10, 10, 18, 0.95) 100%);
}

/* World Order Badge */
.wiki-world-card-order {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 18, 0.9);
    border: 1px solid var(--world-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--world-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(20px);
    z-index: 2;
    box-shadow: 0 8px 24px -8px var(--world-color);
    transition: all 0.3s ease;
}

.wiki-world-card-v2:hover .wiki-world-card-order {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px var(--world-color);
}

/* Content */
.wiki-world-card-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-top: 3rem;
    z-index: 1;
}

/* Icon Container with Glow Effect */
.wiki-world-card-icon-container {
    position: relative;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.wiki-world-card-icon-glow {
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle, var(--world-color) 0%, transparent 70%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.wiki-world-card-v2:hover .wiki-world-card-icon-glow {
    opacity: 0.6;
    animation: pulse-glow 2s infinite;
}

.wiki-world-card-icon {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--world-color) 30%, transparent),
        rgba(10, 10, 18, 0.8));
    border: 2px solid var(--world-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 16px 40px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s ease;
}

.wiki-world-card-v2:hover .wiki-world-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 20px 50px -12px rgba(0, 0, 0, 0.9),
        0 0 40px -10px var(--world-color);
}

.wiki-world-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-world-card-icon .mud-icon-root {
    color: var(--world-color);
    font-size: 2.5rem;
}

/* Info */
.wiki-world-card-info {
    flex: 1;
    margin-bottom: 1.5rem;
}

.wiki-world-card-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--wiki-text), color-mix(in srgb, var(--world-color) 60%, var(--wiki-text)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.wiki-world-card-v2:hover .wiki-world-card-name {
    transform: translateX(4px);
}

.wiki-world-card-desc {
    color: var(--wiki-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Button */
.wiki-world-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--world-color) 15%, transparent),
        rgba(255, 255, 255, 0.02));
    border: 1px solid color-mix(in srgb, var(--world-color) 30%, transparent);
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--world-color);
    transition: all 0.3s ease;
}

.wiki-world-card-v2:hover .wiki-world-card-action {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--world-color) 25%, transparent),
        rgba(255, 255, 255, 0.05));
    border-color: var(--world-color);
    transform: translateX(4px);
}

.wiki-world-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--world-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wiki-world-card-arrow .mud-icon-root {
    color: var(--wiki-bg);
    font-size: 1.25rem;
}

.wiki-world-card-v2:hover .wiki-world-card-arrow {
    transform: translateX(8px) scale(1.1);
    box-shadow: 0 8px 24px -8px var(--world-color);
}

/* Animated Border */
.wiki-world-card-border {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        var(--world-color), 
        transparent, 
        var(--world-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.wiki-world-card-v2:hover .wiki-world-card-border {
    opacity: 1;
    animation: border-rotate 3s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes border-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wiki-worlds-showcase-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wiki-world-card-v2 {
        min-height: 320px;
    }
    
    .wiki-world-card-name {
        font-size: 1.5rem;
    }
    
    .wiki-world-card-icon {
        width: 72px;
        height: 72px;
    }
}

/* Gallery */
.wiki-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.wiki-gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.wiki-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wiki-gallery-item:hover img {
    transform: scale(1.05);
}

.wiki-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.wiki-gallery-item:hover .wiki-gallery-overlay {
    opacity: 1;
}

.wiki-gallery-overlay .mud-icon-root {
    font-size: 2rem;
    color: white;
}

/* Lightbox */
.wiki-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.wiki-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.wiki-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wiki-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Old header styles (keep for backwards compat) */
.wiki-game-header {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

.wiki-game-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wiki-surface), var(--wiki-bg));
}

.wiki-game-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--wiki-bg) 100%);
}

.wiki-game-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.wiki-game-header-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.wiki-game-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wiki-game-header-icon,
.wiki-game-header-icon-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 3px solid var(--game-color, var(--wiki-primary));
    background: var(--wiki-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.wiki-game-header-icon {
    object-fit: cover;
}

.wiki-game-header-icon-placeholder .mud-icon-root {
    color: var(--game-color, var(--wiki-primary));
    font-size: 3rem;
}

.wiki-game-header-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wiki-text);
    margin-bottom: 0.5rem;
}

.wiki-game-header-desc {
    color: var(--wiki-text-muted);
    font-size: 1rem;
    max-width: 600px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WORLD CARDS (Game Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-worlds-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wiki-world-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: var(--wiki-radius);
    text-decoration: none;
    color: var(--wiki-text);
    transition: all 0.2s ease;
}

.wiki-world-card:hover {
    background: var(--wiki-surface-2);
    border-color: var(--world-color, var(--wiki-primary));
    transform: translateX(8px);
}

.wiki-world-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--world-color, var(--wiki-primary)) 20%, transparent), transparent);
    border: 2px solid var(--world-color, var(--wiki-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-world-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.wiki-world-card-icon .mud-icon-root {
    color: var(--world-color, var(--wiki-primary));
    font-size: 1.75rem;
}

.wiki-world-card-content {
    flex: 1;
}

.wiki-world-card-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wiki-world-card-content p {
    color: var(--wiki-text-muted);
    font-size: 0.875rem;
}

.wiki-world-card-arrow {
    color: var(--wiki-text-muted);
    transition: all 0.2s;
}

.wiki-world-card:hover .wiki-world-card-arrow {
    color: var(--world-color, var(--wiki-primary));
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   WORLD HEADER (World Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-world-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--world-color, var(--wiki-primary)) 10%, var(--wiki-surface)), var(--wiki-bg));
    border-bottom: 1px solid var(--wiki-border);
}

.wiki-world-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.wiki-world-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wiki-world-header-icon,
.wiki-world-header-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 2px solid var(--world-color, var(--wiki-primary));
    background: var(--wiki-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-world-header-icon {
    object-fit: cover;
}

.wiki-world-header-icon-placeholder .mud-icon-root {
    color: var(--world-color, var(--wiki-primary));
    font-size: 2.5rem;
}

.wiki-world-header-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--wiki-text);
    margin-bottom: 0.25rem;
}

.wiki-world-header-game {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--wiki-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.wiki-world-header-desc {
    color: var(--wiki-text-muted);
    font-size: 0.9375rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SYSTEM CARDS (World Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wiki-system-card {
    display: flex;
    flex-direction: column;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: var(--wiki-radius);
    text-decoration: none;
    color: var(--wiki-text);
    overflow: hidden;
    transition: all 0.2s ease;
}

.wiki-system-card:hover {
    border-color: var(--system-color, var(--wiki-primary));
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

.wiki-system-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wiki-system-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--system-color, var(--wiki-primary)) 20%, transparent), transparent);
    border: 2px solid var(--system-color, var(--wiki-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-system-card-icon .mud-icon-root {
    color: var(--system-color, var(--wiki-primary));
    font-size: 1.5rem;
}

.wiki-system-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.wiki-system-card-info h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.wiki-system-card-count {
    color: var(--wiki-text-muted);
    font-size: 0.8125rem;
}

.wiki-system-card-footer {
    padding: 1rem 1.5rem;
    background: var(--wiki-surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--system-color, var(--wiki-primary));
    font-size: 0.875rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SYSTEM HEADER (System Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-system-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--system-color, var(--wiki-primary)) 10%, var(--wiki-surface)), var(--wiki-bg));
    border-bottom: 1px solid var(--wiki-border);
}

.wiki-system-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.wiki-system-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wiki-system-header-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--system-color, var(--wiki-primary)) 20%, transparent), transparent);
    border: 2px solid var(--system-color, var(--wiki-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-system-header-icon .mud-icon-root {
    color: var(--system-color, var(--wiki-primary));
    font-size: 2rem;
}

.wiki-system-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.wiki-system-header-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wiki-text);
    margin-bottom: 0.25rem;
}

.wiki-system-header-meta {
    color: var(--wiki-text-muted);
    font-size: 0.9375rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTENT CARDS (System Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.wiki-content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: var(--wiki-radius);
    text-decoration: none;
    color: var(--wiki-text);
    overflow: hidden;
    transition: all 0.2s ease;
}

.wiki-content-card:hover {
    border-color: var(--item-color, var(--wiki-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}

.wiki-content-card-featured {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--wiki-warning);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wiki-content-card-name {
    padding: 1.25rem 1.25rem 0.75rem;
}

.wiki-content-card-name h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
}

.wiki-content-card-fields {
    padding: 0 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.wiki-content-card-field {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.wiki-content-card-field-label {
    color: var(--wiki-text-muted);
}

.wiki-content-card-field-value {
    color: var(--wiki-text);
    font-weight: 500;
}

.wiki-content-card-action {
    margin-top: auto;
    padding: 0.875rem 1.25rem;
    background: var(--wiki-surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--item-color, var(--wiki-primary));
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ITEM HEADER (Item Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-item-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--item-color, var(--wiki-primary)) 10%, var(--wiki-surface)), var(--wiki-bg));
    border-bottom: 1px solid var(--wiki-border);
}

.wiki-item-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.wiki-item-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wiki-item-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--wiki-text);
}

.wiki-item-featured-star {
    color: var(--wiki-warning) !important;
}

.wiki-item-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--wiki-text-muted);
    font-size: 0.875rem;
}

.wiki-item-header-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ITEM CONTENT (Item Page)
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-item-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .wiki-item-content {
        grid-template-columns: 1fr;
    }
}

.wiki-item-fields {
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: var(--wiki-radius);
    overflow: hidden;
}

.wiki-item-field {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--wiki-border);
}

.wiki-item-field:last-child {
    border-bottom: none;
}

.wiki-item-field-label {
    width: 180px;
    flex-shrink: 0;
    color: var(--wiki-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.wiki-item-field-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-item-field-empty {
    color: var(--wiki-text-muted);
    opacity: 0.5;
}

.wiki-item-field-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain;
}

.wiki-item-field-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-item-field-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--wiki-border);
}

.wiki-item-field-richtext {
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ITEM SIDEBAR
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-item-sidebar-card {
    background: var(--wiki-surface);
    border: 1px solid var(--wiki-border);
    border-radius: var(--wiki-radius);
    padding: 1.5rem;
}

.wiki-item-sidebar-card h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wiki-text);
}

.wiki-item-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wiki-item-sidebar-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.wiki-item-sidebar-info .label {
    font-size: 0.75rem;
    color: var(--wiki-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wiki-item-sidebar-info a {
    color: var(--wiki-primary);
    text-decoration: none;
    font-weight: 500;
}

.wiki-item-sidebar-info a:hover {
    text-decoration: underline;
}

.wiki-item-sidebar-info span:not(.label) {
    color: var(--wiki-text);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GAME PASSES GRID
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-passes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.wiki-pass-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(30, 40, 60, 0.8), rgba(20, 30, 50, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wiki-pass-card:hover {
    transform: translateY(-4px);
    border-color: var(--wiki-accent);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.wiki-pass-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-pass-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-pass-info {
    flex: 1;
    min-width: 0;
}

.wiki-pass-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wiki-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-pass-price {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #00c853, #00a843);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.wiki-pass-price span {
    opacity: 0.8;
    font-weight: 400;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BADGES GRID
   ───────────────────────────────────────────────────────────────────────────── */

.wiki-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.wiki-badge-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(30, 40, 60, 0.8), rgba(20, 30, 50, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wiki-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wiki-badge-rarity {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-badge-rarity.impossible {
    background: linear-gradient(135deg, #ff3b3b, #cc0000);
    color: white;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.5);
}

.wiki-badge-rarity.extreme {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}

.wiki-badge-rarity.hard {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.5);
}

.wiki-badge-rarity.challenging {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.wiki-badge-rarity.easy {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.wiki-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiki-badge-info {
    flex: 1;
    min-width: 0;
}

.wiki-badge-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wiki-text);
    padding-right: 60px;
}

.wiki-badge-info p {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--wiki-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-badge-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wiki-badge-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--wiki-text-secondary);
}

.wiki-badge-stats .mud-icon-root {
    color: var(--wiki-accent);
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .wiki-hero-title {
        font-size: 2.5rem;
    }
    
    .wiki-game-header-info,
    .wiki-world-header-info,
    .wiki-system-header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wiki-game-header-title {
        font-size: 1.75rem;
    }
    
    .wiki-item-field {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wiki-item-field-label {
        width: auto;
    }
}

