/* Modern Minecraft-themed UI for Download Website */

:root {
  --grid: 16px; /* base pixel grid (16x16) */
  --grid-half: 8px;

  /* Minecraft-inspired colors with better contrast */
  --color-bg: #1a1a1a;
  --color-surface: #242424;
  --color-surface-2: #2a2a2a;
  --color-surface-3: #1f1f1f;
  --color-border: #3a3a3a;
  --color-border-strong: #4a4a4a;
  --color-border-light: #2a2a2a;
  
  /* Text colors - high contrast for readability */
  --color-text: #f5f5f5;
  --color-text-secondary: #e0e0e0;
  --color-muted: #b0b0b0;
  
  /* Minecraft-themed accent colors */
  --color-info: #5a9fff;
  --color-success: #4ade80; /* grass green */
  --color-danger: #f87171;
  --color-warning: #fbbf24;
  --color-accent: #60a5fa; /* diamond blue */
  
  /* Minecraft block colors */
  --color-grass: #7cb342;
  --color-stone: #9e9e9e;
  --color-iron: #c5c5c5;
  --color-gold: #ffb74d;
  --color-diamond: #4fc3f7;

  /* Legacy variable mappings for compatibility */
  --primary-color: var(--color-success);
  --primary-dark: var(--color-grass);
  --secondary-color: var(--color-accent);
  --text-dark: var(--color-text);
  --text-light: var(--color-text-secondary);
  --bg-light: var(--color-bg);
  --bg-white: var(--color-surface);
  --border-color: var(--color-border);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Subtle 16px pixel grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 1px, transparent 1px, transparent var(--grid)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 1px, transparent 1px, transparent var(--grid));
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border-bottom: 2px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--grid) calc(var(--grid) * 1.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--grid);
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--grid-half);
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-grass), var(--color-success));
    border: 2px solid var(--color-border-strong);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(74, 222, 128, 0.2);
    flex-shrink: 0;
    object-fit: contain;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-success);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: var(--grid-half);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--grid);
}

/* Hamburger Menu Toggle Button */
.hamburger-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    gap: 4px;
    z-index: 101;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-menu-toggle:hover {
    border-color: var(--color-success);
    background: rgba(74, 222, 128, 0.1);
}

.hamburger-menu-toggle.active {
    border-color: var(--color-success);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-link {
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--color-success);
    border-bottom-color: var(--color-success);
    background: rgba(74, 222, 128, 0.05);
}

.nav-download {
    background: linear-gradient(135deg, var(--color-success), var(--color-grass));
    color: #000 !important;
    font-weight: 700;
    border-bottom: 3px solid var(--color-success);
    padding: 10px 20px;
}

.nav-download:hover {
    background: linear-gradient(135deg, var(--color-grass), var(--color-success));
    box-shadow: 0 4px 8px rgba(74, 222, 128, 0.4);
    transform: translateY(-1px);
    color: #000 !important;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--grid) * 1.5);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: calc(var(--grid) * 3) calc(var(--grid) * 2);
    margin-bottom: calc(var(--grid) * 2);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--grid);
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: calc(var(--grid) * 1.5);
    color: var(--color-success);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto calc(var(--grid) * 2) auto;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.hero-cta {
    margin-top: calc(var(--grid) * 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--grid-half));
}

.hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--grid-half));
    padding: calc(var(--grid) * 1.25) calc(var(--grid) * 3);
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid #2E7D32;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #5CBF60, #4CAF50);
    border-color: #4CAF50;
}

.hero-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.hero-download-btn .download-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.hero-version {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin-bottom: calc(var(--grid) * 2);
    color: var(--color-text);
    text-align: center;
    font-weight: 700;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--grid);
    color: var(--color-text);
    text-align: center;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: calc(var(--grid) * 2);
}

/* Features Grid */
.features {
    margin-bottom: calc(var(--grid) * 3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid);
    margin-bottom: calc(var(--grid) * 2);
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    padding: calc(var(--grid) * 1.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card-link:hover .feature-card {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--color-success);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--color-success);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--grid);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: var(--grid);
    color: var(--color-text);
    font-weight: 700;
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    padding: calc(var(--grid) * 2);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: calc(var(--grid) * 2);
}

.download-container {
    max-width: 600px;
    margin: 0 auto;
}

.download-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--grid) * 2);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--grid-half);
    background: linear-gradient(135deg, var(--color-success), var(--color-grass));
    color: #000;
    padding: 14px 32px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-success);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, var(--color-grass), var(--color-success));
}

.download-icon {
    font-size: 1.5rem;
}

.download-note {
    margin-top: var(--grid);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.getting-started-link {
    margin-top: calc(var(--grid) * 1.5);
    padding-top: calc(var(--grid) * 1.5);
    border-top: 1px solid var(--color-border);
}

.getting-started-text {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin: 0;
}

.getting-started-btn {
    color: var(--color-success);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.getting-started-btn:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Info Page Styles */
.info-header {
    margin-bottom: calc(var(--grid) * 2);
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-section {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    padding: calc(var(--grid) * 1.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: calc(var(--grid) * 2);
    scroll-margin-top: 80px;
}

.feature-image-container {
    margin: calc(var(--grid) * 1.5) 0;
    text-align: center;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Player Tracking Demo */
.feature-demo-container {
    margin: calc(var(--grid) * 2) 0;
    padding: calc(var(--grid) * 1.5);
    background: linear-gradient(135deg, #2d5a27, #3d7c47);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.player-tracking-demo {
    font-family: 'Courier New', monospace;
}

.demo-header {
    text-align: center;
    margin-bottom: calc(var(--grid) * 1.5);
    color: #ffffff;
}

.demo-title {
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: calc(var(--grid-half));
    font-weight: 700;
}

.demo-subtitle {
    font-size: 0.85rem;
    color: #cccccc;
    text-shadow: 1px 1px 0px #000000;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid);
}

.player-card {
    background: linear-gradient(145deg, #8b8b8b, #c6c6c6);
    border: 4px solid #373737;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 
        inset 2px 2px 0px #ffffff,
        inset -2px -2px 0px #555555,
        4px 4px 10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 2px 2px 0px #ffffff,
        inset -2px -2px 0px #555555,
        6px 6px 15px rgba(0,0,0,0.4);
}

.card-header-buttons {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}

.permission-badge {
    background: linear-gradient(145deg, #F44336, #D32F2F);
    border: 2px solid #C62828;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 9px;
    color: #ffffff;
    text-shadow: 1px 1px 0px #000000;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.permission-badge.visitor {
    background: linear-gradient(145deg, #F44336, #D32F2F);
    border-color: #C62828;
}

.permission-badge.member {
    background: linear-gradient(145deg, #9C27B0, #7B1FA2);
    border-color: #6A1B9A;
}

.permission-badge.operator {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border-color: #2E7D32;
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: #FFE4B5;
    border: 2px solid #DEB887;
    border-radius: 4px;
    position: relative;
    image-rendering: pixelated;
    overflow: hidden;
    flex-shrink: 0;
}

.player-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, transparent 10px, #4A90E2 10px, #4A90E2 15px, transparent 15px, transparent 25px, #4A90E2 25px, #4A90E2 30px, transparent 30px),
        linear-gradient(to right, #8B4513 6px, #8B4513 34px, transparent 34px),
        linear-gradient(to right, transparent 17px, #F4C2A1 17px, #F4C2A1 20px, transparent 20px),
        linear-gradient(to right, transparent 14px, #654321 14px, #654321 26px, transparent 26px);
    background-size: 
        100% 4px,
        100% 6px,
        100% 6px,
        100% 3px;
    background-position: 
        0 14px,
        0 3px,
        0 22px,
        0 30px;
    background-repeat: no-repeat;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    color: #ffffff;
    font-size: 14px;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-family: 'Courier New', monospace;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 6px #00ff00;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #ff4444;
    box-shadow: 0 0 6px #ff4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.stat-item {
    background: rgba(0,0,0,0.3);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #555;
}

.stat-label {
    color: #cccccc;
    font-size: 8px;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
}

.stat-value {
    color: #ffffff;
    font-size: 12px;
    text-shadow: 1px 1px 0px #000000;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.health-hunger-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hearts, .hunger-bars {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
}

.heart {
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTBMMiA2QzEuNSA1LjUgMS41IDQuNSAyIDRDMi41IDMuNSAzLjUgMy41IDQgNEw2IDZMOCA0QzguNSAzLjUgOS41IDMuNSAxMCA0QzEwLjUgNC41IDEwLjUgNS41IDEwIDZMNiAxMFoiIGZpbGw9IiNGRjAwMDAiIHN0cm9rZT0iIzgwMDAwMCIgc3Ryb2tlLXdpZHRoPSIwLjUiLz4KPC9zdmc+') no-repeat center;
    background-size: contain;
    image-rendering: pixelated;
}

.heart.half {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTBMMiA2QzEuNSA1LjUgMS41IDQuNSAyIDRDMi41IDMuNSAzLjUgMy41IDQgNEw2IDZMOCA0QzguNSAzLjUgOS41IDMuNSAxMCA0QzEwLjUgNC41IDEwLjUgNS41IDEwIDZMNiAxMFoiIGZpbGw9IiM4MDAwMDAiIHN0cm9rZT0iIzQwMDAwMCIgc3Ryb2tlLXdpZHRoPSIwLjUiLz4KPHBhdGggZD0iTTYgMTBMMiA2QzEuNSA1LjUgMS41IDQuNSAyIDRDMi41IDMuNSAzLjUgMy41IDQgNEw2IDZWMTBaIiBmaWxsPSIjRkYwMDAwIi8+Cjwvc3ZnPg==') no-repeat center;
    background-size: contain;
}

.heart.empty {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTBMMiA2QzEuNSA1LjUgMS41IDQuNSAyIDRDMi41IDMuNSAzLjUgMy41IDQgNEw2IDZMOCA0QzguNSAzLjUgOS41IDMuNSAxMCA0QzEwLjUgNC41IDEwLjUgNS41IDEwIDZMNiAxMFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzgwMDAwMCIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==') no-repeat center;
    background-size: contain;
}

.hunger {
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTBDOCAxMCA5LjUgOC41IDkuNSA2LjVDOS41IDQuNSA4IDMgNiAzQzQgMyAyLjUgNC41IDIuNSA2LjVDMi41IDguNSA0IDEwIDYgMTBaIiBmaWxsPSIjRkYwMDAwIiBzdHJva2U9IiM4MDAwMDAiIHN0cm9rZS13aWR0aD0iMC41Ii8+CjxwYXRoIGQ9Ik02IDNMNiAxLjVMNS41IDFMNiAwLjVMNi41IDEiIGZpbGw9IiM4QjQ1MTMiIHN0cm9rZT0iIzY1NDMyMSIgc3Ryb2tlLXdpZHRoPSIwLjUiLz4KPHBhdGggZD0iTTcgM0M3IDMgNy41IDIuNSA4IDNDOCAzIDggMy41IDcuNSA0IiBmaWxsPSIjMjI4QjIyIiBzdHJva2U9IiMxQTZBMUEiIHN0cm9rZS13aWR0aD0iMC41Ii8+Cjwvc3ZnPg==') no-repeat center;
    background-size: contain;
    image-rendering: pixelated;
}

.hunger.half {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTBDOCAxMCA5LjUgOC41IDkuNSA2LjVDOS41IDQuNSA4IDMgNiAzQzQgMyAyLjUgNC41IDIuNSA2LjVDMi41IDguNSA0IDEwIDYgMTBaIiBmaWxsPSIjODAwMDAwIiBzdHJva2U9IiM0MDAwMDAiIHN0cm9rZS13aWR0aD0iMC41Ii8+CjxwYXRoIGQ9Ik02IDEwQzQgMTAgMi41IDguNSAyLjUgNi41QzIuNSA0LjUgNCAzIDYgM1YxMFoiIGZpbGw9IiNGRjAwMDAiLz4KPHBhdGggZD0iTTYgM0w2IDEuNUw1LjUgMUw2IDAuNUw2LjUgMSIgZmlsbD0iIzhCNDUxMyIgc3Ryb2tlPSIjNjU0MzIxIiBzdHJva2Utd2lkdGg9IjAuNSIvPgo8cGF0aCBkPSJNNyAzQzcgMyA3LjUgMi41IDggM0M4IDMgOCAzLjUgNy41IDQiIGZpbGw9IiMyMjhCMjIiIHN0cm9rZT0iIzFBNkExQSIgc3Ryb2tlLXdpZHRoPSIwLjUiLz4KPC9zdmc+') no-repeat center;
    background-size: contain;
}

.hunger.empty {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTBDOCAxMCA5LjUgOC41IDkuNSA2LjVDOS41IDQuNSA4IDMgNiAzQzQgMyAyLjUgNC41IDIuNSA2LjVDMi41IDguNSA0IDEwIDYgMTBaIiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDAwMDAiIHN0cm9rZS13aWR0aD0iMSIvPgo8cGF0aCBkPSJNNiAzTDYgMS41TDUuNSAxTDYgMC41TDYuNSAxIiBmaWxsPSJub25lIiBzdHJva2U9IiM2NTQzMjEiIHN0cm9rZS13aWR0aD0iMSIvPgo8cGF0aCBkPSJNNyAzQzcgMyA3LjUgMi41IDggM0M4IDMgOCAzLjUgNy41IDQiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzFBNkExQSIgc3Ryb2tlLXdpZHRoPSIwLjgiLz4KPC9zdmc+') no-repeat center;
    background-size: contain;
}

.xp-bar {
    margin-bottom: 10px;
}

.xp-container {
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, #003300, #001100);
    border: 1px solid #555555;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(to bottom, #7FFF00, #32CD32, #228B22);
    border-radius: 3px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 6px rgba(127,255,0,0.5);
}

.xp-text {
    color: #7FFF00;
    font-size: 9px;
    text-align: center;
    margin-top: 2px;
    text-shadow: 1px 1px 0px #000000;
    font-family: 'Courier New', monospace;
}

.armor-display {
    margin-bottom: 10px;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #666;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.minecraft-character {
    width: 80px;
    height: 100px;
    position: relative;
    image-rendering: pixelated;
    margin: 0 auto 6px auto;
}

.character-head {
    width: 20px;
    height: 20px;
    background: #FFE4B5;
    position: absolute;
    top: 5px;
    left: 30px;
    border: 1px solid #DEB887;
    z-index: 1;
}

.character-helmet {
    width: 22px;
    height: 22px;
    position: absolute;
    top: 4px;
    left: 29px;
    border: 1px solid;
    z-index: 2;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
    cursor: pointer;
}

.character-body {
    width: 20px;
    height: 30px;
    background: #CD853F;
    position: absolute;
    top: 25px;
    left: 30px;
    border: 1px solid #8B7355;
    z-index: 1;
}

.character-chestplate {
    width: 22px;
    height: 32px;
    position: absolute;
    top: 24px;
    left: 29px;
    border: 1px solid;
    z-index: 2;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
    cursor: pointer;
}

.character-arm-left, .character-arm-right {
    width: 10px;
    height: 30px;
    background: #CD853F;
    position: absolute;
    top: 25px;
    border: 1px solid #8B7355;
    z-index: 0;
}

.character-arm-left { left: 17px; }
.character-arm-right { right: 17px; }

.character-leg-left, .character-leg-right {
    width: 10px;
    height: 30px;
    background: #CD853F;
    position: absolute;
    top: 55px;
    border: 1px solid #8B7355;
    z-index: 1;
}

.character-leg-left { left: 30px; }
.character-leg-right { right: 30px; }

.character-leggings-left, .character-leggings-right {
    width: 11px;
    height: 32px;
    position: absolute;
    top: 54px;
    border: 1px solid;
    z-index: 2;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
    cursor: pointer;
}

.character-leggings-left { left: 29px; }
.character-leggings-right { right: 29px; }

.character-boot-left, .character-boot-right {
    width: 12px;
    height: 10px;
    position: absolute;
    top: 85px;
    border: 1px solid;
    z-index: 2;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
    cursor: pointer;
}

.character-boot-left { left: 28px; }
.character-boot-right { right: 28px; }

.leather { background: linear-gradient(145deg, #A0522D, #8B4513); border-color: #654321; }
.chainmail { background: linear-gradient(145deg, #B8B8B8, #A0A0A0); border-color: #808080; }
.iron { background: linear-gradient(145deg, #E8E8E8, #D0D0D0); border-color: #A8A8A8; }
.gold { background: linear-gradient(145deg, #FFD700, #FFA500); border-color: #FF8C00; }
.diamond { background: linear-gradient(145deg, #5DADE2, #3498DB); border-color: #2980B9; }
.netherite { background: linear-gradient(145deg, #4A4A4A, #2C2C2C); border-color: #1A1A1A; }

.armor-labels {
    display: flex;
    gap: 2px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.armor-label {
    background: rgba(0,0,0,0.8);
    padding: 3px 6px;
    border-radius: 2px;
    font-size: 7px;
    color: #ffffff;
    text-shadow: 1px 1px 0px #000000;
    border: 1px solid #444;
    font-family: 'Courier New', monospace;
}

.armor-label.leather { border-color: #654321; color: #D2B48C; background: rgba(139, 69, 19, 0.8); }
.armor-label.chainmail { border-color: #808080; color: #F0F0F0; background: rgba(160, 160, 160, 0.8); }
.armor-label.iron { border-color: #A8A8A8; color: #FFFFFF; background: rgba(208, 208, 208, 0.8); }
.armor-label.gold { border-color: #FF8C00; color: #FFFF99; background: rgba(255, 215, 0, 0.8); }
.armor-label.diamond { border-color: #2980B9; color: #AED6F1; background: rgba(52, 152, 219, 0.8); }
.armor-label.netherite { border-color: #1A1A1A; color: #D3D3D3; background: rgba(44, 44, 44, 0.9); }

.position-display {
    background: rgba(0,0,0,0.4);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #666;
    text-align: center;
    margin-bottom: 8px;
}

.position-text {
    color: #ffffff;
    font-size: 9px;
    text-shadow: 1px 1px 0px #000000;
    font-family: 'Courier New', monospace;
}

.coordinates {
    color: #ffff55;
    font-size: 10px;
    margin-top: 2px;
    font-family: 'Courier New', monospace;
}

.info-title {
    font-size: 1.8rem;
    color: var(--color-success);
    margin-bottom: calc(var(--grid) * 1.5);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--grid-half);
    font-weight: 700;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: calc(var(--grid-half) * 1.5) 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list.numbered {
    list-style: decimal;
    padding-left: calc(var(--grid) * 1.5);
}

.info-list.numbered li {
    border-bottom: none;
    padding: calc(var(--grid-half)) 0;
}

.info-list code {
    background-color: var(--color-surface-3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, "Cascadia Mono", Menlo, Monaco, monospace;
    color: var(--color-success);
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.nested-list {
    list-style: disc;
    padding-left: calc(var(--grid) * 2);
    margin-top: calc(var(--grid-half));
}

.nested-list li {
    padding: calc(var(--grid-half) * 0.75) 0;
    border-bottom: none;
    color: var(--color-text-secondary);
}

.feature-subtitle {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-top: calc(var(--grid) * 1.5);
    margin-bottom: calc(var(--grid-half) * 1.5);
    font-weight: 600;
}

.feature-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: calc(var(--grid) * 1.5);
    padding-bottom: var(--grid);
    border-bottom: 1px solid var(--color-border);
}

.feature-detail {
    margin-bottom: calc(var(--grid) * 2);
}

.feature-detail:last-child {
    margin-bottom: 0;
}

.feature-detail h4 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: calc(var(--grid-half));
}

.feature-detail p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.faq-item {
    margin-bottom: calc(var(--grid) * 1.5);
    padding-bottom: calc(var(--grid) * 1.5);
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: calc(var(--grid-half));
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    padding: calc(var(--grid) * 1.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: calc(var(--grid) * 2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.toc-title {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: var(--grid);
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--grid-half));
}

.toc-list li {
    padding: 0;
    border-bottom: none;
}

.toc-list a {
    display: block;
    padding: calc(var(--grid-half) * 1.5) var(--grid);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-success);
    border-left-color: var(--color-success);
}

.back-to-download {
    text-align: center;
    margin-top: calc(var(--grid) * 2);
    margin-bottom: calc(var(--grid) * 1.5);
}

.back-btn {
    display: inline-block;
    padding: calc(var(--grid-half) * 1.5) calc(var(--grid) * 2);
    background: linear-gradient(135deg, var(--color-accent), #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: calc(var(--grid) * 1.5);
    right: calc(var(--grid) * 1.5);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-success), var(--color-grass));
    color: #000;
    border: 1px solid var(--color-success);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.5rem;
    font-weight: 700;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 222, 128, 0.5);
    background: linear-gradient(135deg, var(--color-grass), var(--color-success));
}

.back-to-top-icon {
    line-height: 1;
}

/* Debug Categories */
.debug-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid);
    margin: calc(var(--grid) * 1.5) 0;
}

.debug-category {
    background-color: var(--color-surface-3);
    padding: var(--grid);
    border-radius: 6px;
    border-left: 3px solid var(--color-success);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-success);
}

.debug-category strong {
    color: var(--color-success);
    display: block;
    margin-bottom: calc(var(--grid-half));
}

.debug-category .nested-list {
    margin-top: calc(var(--grid-half));
    padding-left: calc(var(--grid) * 1.5);
}

/* Footer */
.footer {
    background-color: var(--color-surface-3);
    border-top: 2px solid var(--color-border);
    color: var(--color-text);
    text-align: center;
    padding: calc(var(--grid) * 1.5);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer p {
    margin: calc(var(--grid) * 0.25) 0;
}

.footer-disclaimer {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: calc(var(--grid) * 0.5) !important;
    font-style: italic;
}

/* Modern Button Styles */
.button {
    appearance: none;
    border: 1px solid var(--color-border-strong);
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
    color: var(--color-text);
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.button:hover:not(:disabled) {
    border-color: var(--color-success);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button-primary {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-grass) 100%);
    border-color: var(--color-success);
    color: #000;
    font-weight: 700;
}

.button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-grass) 0%, var(--color-success) 100%);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
    border-color: var(--color-success);
}

.button-danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, #ef4444 100%);
    border-color: var(--color-danger);
    color: #fff;
}

.button-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, var(--color-danger) 100%);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

/* Select and Input Styles */
.select, .input {
    border: 1px solid var(--color-border);
    background: var(--color-surface-3);
    color: var(--color-text);
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: inherit;
}

.select:focus, .input:focus {
    outline: none;
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
    background: var(--color-surface-2);
}

.input--wide {
    width: 100%;
    max-width: 500px;
}

.input--small {
    width: 120px;
}

/* Roadmap Styles */
.roadmap-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--grid) * 2);
    gap: var(--grid);
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: var(--grid-half);
    color: var(--color-text);
}

.roadmap-items {
    display: flex;
    flex-direction: column;
    gap: var(--grid);
}

.roadmap-item {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: calc(var(--grid) * 1.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.roadmap-item-clickable {
    cursor: pointer;
}

.roadmap-item:hover {
    border-color: var(--color-success);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.roadmap-item-clickable:hover {
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
}

.roadmap-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--grid-half);
}

.roadmap-category {
    background: rgba(74, 222, 128, 0.15);
    color: var(--color-success);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-date {
    color: var(--color-muted);
    font-size: 12px;
}

.roadmap-item-title {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: var(--grid-half);
    font-weight: 700;
}

.roadmap-item-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--grid);
}

.roadmap-item-footer {
    display: flex;
    gap: var(--grid-half);
    margin-top: var(--grid);
    flex-wrap: wrap;
}

/* Comments Section Inline */
.comments-section {
    margin-top: var(--grid);
    padding-top: var(--grid);
    border-top: 1px solid var(--color-border);
    animation: expandComments 0.3s ease;
}

@keyframes expandComments {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.roadmap-item.expanded {
    border-color: var(--color-success);
}

.comments-header {
    margin-bottom: var(--grid);
}

.comments-header h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--grid-half) 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--grid) * 1.5);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-danger);
}

.modal-body {
    padding: calc(var(--grid) * 1.5);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: calc(var(--grid) * 1.5);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--grid-half);
}

.form-group {
    margin-bottom: var(--grid);
}

.form-group label {
    display: block;
    color: var(--color-text);
    margin-bottom: var(--grid-half);
    font-weight: 600;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Comments Styles */
.comments-list {
    margin-bottom: var(--grid);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--grid-half);
    background: var(--color-surface-3);
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
}

.no-comments {
    text-align: center;
    color: var(--color-muted);
    padding: calc(var(--grid) * 2);
    font-style: italic;
}

.comment-item {
    background: var(--color-surface-3);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: var(--grid);
    margin-bottom: var(--grid-half);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--grid-half));
}

.comment-author {
    font-weight: 600;
    color: var(--color-success);
    font-size: 13px;
}

.comment-date {
    color: var(--color-muted);
    font-size: 12px;
}

.comment-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.add-comment {
    display: flex;
    flex-direction: column;
    gap: var(--grid-half);
    margin-top: var(--grid);
}

.add-comment textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.add-comment .input--wide {
    width: 100%;
    max-width: 100%;
}

/* Blog Styles */
/* Blog Filters */
.blog-filters-section {
    margin: calc(var(--grid) * 1.5) 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-filters-container {
    position: relative;
}

.blog-filters-label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: calc(var(--grid-half));
    font-size: 1rem;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--grid-half));
}

.blog-filter-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-filter-btn:hover {
    border-color: var(--color-success);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.blog-filter-btn.active {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-grass) 100%);
    border-color: var(--color-success);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.blog-filter-btn.active:hover {
    background: linear-gradient(135deg, var(--color-grass) 0%, var(--color-success) 100%);
}

/* Blog Search */
.blog-search-section {
    margin: calc(var(--grid) * 1.5) 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search-container {
    position: relative;
}

.blog-search-label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: calc(var(--grid-half));
    font-size: 1rem;
}

.blog-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-search-input::placeholder {
    color: var(--color-muted);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--color-success);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
}

.blog-search-icon {
    position: absolute;
    right: 16px;
    font-size: 1.2rem;
    color: var(--color-muted);
    pointer-events: none;
    user-select: none;
}

.blog-search-results {
    margin-top: calc(var(--grid-half));
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    min-height: 20px;
}

.blog-no-results {
    text-align: center;
    padding: calc(var(--grid) * 3);
    color: var(--color-muted);
}

.blog-no-results p {
    font-size: 1.1rem;
    margin: 0;
}

.blog-articles {
    display: flex;
    flex-direction: column;
    gap: var(--grid);
    max-width: 900px;
    margin: 0 auto;
}

.blog-article {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: calc(var(--grid) * 1.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-article:hover {
    border-color: var(--color-success);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.blog-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-article-link:hover .blog-title {
    color: var(--color-success);
}

.blog-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--grid-half);
}

.blog-category {
    background: rgba(74, 222, 128, 0.15);
    color: var(--color-success);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--color-muted);
    font-size: 12px;
}

.blog-title {
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: calc(var(--grid-half));
    font-weight: 700;
    transition: color 0.2s ease;
}

.blog-meta {
    margin-bottom: var(--grid);
}

.blog-author {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.blog-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--grid);
    font-size: 1rem;
}

.blog-content {
    margin-top: var(--grid);
    padding-top: var(--grid);
    border-top: 1px solid var(--color-border);
    animation: expandContent 0.3s ease;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

@keyframes expandContent {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 5000px;
    }
}

.blog-content h3 {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-top: var(--grid);
    margin-bottom: calc(var(--grid-half));
    font-weight: 600;
}

.blog-content h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-top: calc(var(--grid) * 1.5);
    margin-bottom: calc(var(--grid-half));
    font-weight: 600;
}

.blog-content ul,
.blog-content ol {
    margin: var(--grid-half) 0 var(--grid-half) calc(var(--grid) * 1.5);
    color: var(--color-text-secondary);
}

.blog-content li {
    margin-bottom: calc(var(--grid-half));
    line-height: 1.8;
}

.blog-content code {
    background-color: var(--color-surface-3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, "Cascadia Mono", Menlo, Monaco, monospace;
    color: var(--color-success);
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.blog-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.blog-read-more {
    color: var(--color-success);
    font-weight: 600;
    font-size: 14px;
    margin-top: var(--grid);
    transition: transform 0.2s ease;
}

.blog-article-link:hover .blog-read-more {
    transform: translateX(4px);
}

/* Blog Post Page Styles */
.blog-post-header {
    margin-bottom: calc(var(--grid) * 2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.back-to-blog {
    display: inline-block;
    color: var(--color-success);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: var(--grid);
    transition: transform 0.2s ease;
}

.back-to-blog:hover {
    transform: translateX(-3px);
}

.blog-post-meta {
    margin-bottom: var(--grid);
}

.blog-post-title {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: var(--grid);
    font-weight: 700;
}

.blog-post-author {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: calc(var(--grid) * 2);
}

.blog-post-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: calc(var(--grid) * 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.blog-post-content h3 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-top: calc(var(--grid) * 2);
    margin-bottom: var(--grid);
    font-weight: 600;
}

.blog-post-content h4 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-top: calc(var(--grid) * 1.5);
    margin-bottom: calc(var(--grid-half));
    font-weight: 600;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: var(--grid-half) 0 var(--grid-half) calc(var(--grid) * 1.5);
    color: var(--color-text-secondary);
}

.blog-post-content li {
    margin-bottom: calc(var(--grid-half));
    line-height: 1.8;
}

.blog-post-content code {
    background-color: var(--color-surface-3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, "Cascadia Mono", Menlo, Monaco, monospace;
    color: var(--color-success);
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.blog-post-content pre {
    background-color: var(--color-surface-3);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: var(--grid);
    overflow-x: auto;
    margin: var(--grid) 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--color-text-secondary);
    font-weight: normal;
    display: block;
    white-space: pre;
}

.blog-post-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Identifier Search Styles */
.identifier-search-container {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: calc(var(--grid) * 1.5);
    margin-bottom: calc(var(--grid) * 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.identifier-search-label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--grid);
}

.identifier-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.identifier-search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background: var(--color-surface-3);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.identifier-search-input:focus {
    outline: none;
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.identifier-search-input::placeholder {
    color: var(--color-muted);
}

.identifier-search-icon {
    position: absolute;
    left: 14px;
    color: var(--color-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.identifier-search-results {
    margin-top: calc(var(--grid) * 1.5);
    padding-top: calc(var(--grid) * 1.5);
    border-top: 1px solid var(--color-border);
}

.search-results-info {
    color: var(--color-text);
    margin-bottom: var(--grid);
    font-size: 0.95rem;
}

.search-results-info strong {
    color: var(--color-success);
}

.search-note {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: var(--grid);
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-half);
    max-height: 400px;
    overflow-y: auto;
}

.search-results-list li {
    background: var(--color-surface-3);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.search-results-list code {
    background: none;
    padding: 0;
    border: none;
    color: var(--color-text-secondary);
    font-family: 'Courier New', monospace;
}

.search-results-list mark {
    background: rgba(255, 193, 7, 0.3);
    color: var(--color-text);
    padding: 0 2px;
    border-radius: 2px;
}

.search-no-results {
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0;
}

.identifier-match {
    background: rgba(255, 193, 7, 0.4) !important;
    color: var(--color-text) !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #FFC107;
    border-radius: 6px;
    padding: var(--grid);
    margin: calc(var(--grid) * 1.5) 0;
}

.warning-box p {
    margin: 0;
    color: var(--color-text);
}

.warning-box strong {
    color: #FFC107;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-wrap: wrap;
        gap: var(--grid);
        padding: var(--grid);
    }

    .hamburger-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: var(--grid-half);
        padding: var(--grid) 0;
        margin: 0;
        order: 4;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    .nav-download {
        order: 3;
        display: block;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        min-width: 180px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-download-btn {
        font-size: 1rem;
        padding: calc(var(--grid) * 1) calc(var(--grid) * 2);
        width: 100%;
        max-width: 100%;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--grid);
    }

    /* Main Content */
    .main-content {
        padding: var(--grid);
    }

    .hero {
        padding: calc(var(--grid) * 2) var(--grid);
    }

    .info-section {
        padding: var(--grid);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .info-title {
        font-size: 1.4rem;
    }

    /* Download Section */
    .download-section {
        padding: var(--grid);
    }

    .download-btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
    }

    .download-container {
        max-width: 100%;
    }

    /* Back to Top Button */
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Table of Contents */
    .toc-list {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        padding: var(--grid);
    }

    /* Roadmap */
    .roadmap-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .roadmap-item-footer {
        flex-direction: column;
        gap: var(--grid-half);
    }

    .roadmap-item-footer .button {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: var(--grid);
    }

    /* Blog */
    .blog-articles {
        gap: var(--grid);
    }

    .blog-article {
        padding: var(--grid);
    }

    .blog-search-section {
        padding: var(--grid);
    }

    .blog-search-input {
        font-size: 0.95rem;
        padding: 10px 14px 10px 40px;
    }

    .blog-filters {
        flex-wrap: wrap;
        gap: var(--grid-half);
    }

    .blog-filter-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* Player Cards */
    .players-grid {
        grid-template-columns: 1fr;
        gap: var(--grid);
    }

    .player-card {
        padding: var(--grid);
    }

    /* Search Results */
    .search-results-list {
        grid-template-columns: 1fr;
    }

    .identifier-search-container {
        padding: var(--grid);
    }

    /* Code Blocks */
    .blog-post-content pre,
    .info-section pre {
        overflow-x: auto;
        font-size: 0.85rem;
        padding: var(--grid);
        margin: var(--grid) 0;
    }

    .blog-post-content code {
        font-size: 0.85rem;
        padding: 2px 6px;
    }

    /* Getting Started Links */
    .getting-started-text {
        font-size: 0.9rem;
        text-align: center;
    }

    .getting-started-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        display: inline-block;
        margin: 4px 2px;
    }

    /* Feature Images */
    .feature-image-container {
        margin: var(--grid) 0;
    }

    .feature-image {
        max-width: 100%;
        height: auto;
    }

    /* Inputs and Forms */
    .input--wide {
        max-width: 100%;
    }

    .input--small {
        width: 100%;
        max-width: 150px;
    }

    /* Footer */
    .footer {
        padding: var(--grid);
        font-size: 0.875rem;
    }

    .footer-disclaimer {
        font-size: 0.75rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-download-btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .nav-link {
        font-size: 11px;
        padding: 5px 10px;
    }

    .logo {
        font-size: 14px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .info-title {
        font-size: 1.2rem;
    }

    .feature-subtitle {
        font-size: 1.1rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .back-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        bottom: 1rem;
        right: 1rem;
    }
}
