/* =========================================
   SLIME'S ADVENTURE - MODERN STYLESHEET
   ========================================= */

:root {
    --bg-dark: #050814;
    --bg-card: rgba(20, 25, 50, 0.6);
    --primary: #00d4ff;
    --secondary: #00ff88;
    --accent: #ff00aa;
    --text: #ffffff;
    --text-muted: #8892b0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* --- Glassmorphism Utility --- */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 0; border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a {
    color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem;
    transition: 0.3s;
}
.nav-menu a:hover, .wiki-link { color: var(--primary); }
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--text); margin: 5px 0; }

/* --- Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; padding-top: 60px;
}
.hero-bg-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
}
.version-badge {
    display: inline-block; padding: 6px 16px; background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3); border-radius: 20px;
    color: var(--secondary); font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--font-heading); font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1; margin-bottom: 1rem; letter-spacing: -2px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; margin-inline: auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none;
    transition: all 0.3s ease; border: none; cursor: pointer; font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,212,255,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; width: 100%; margin-top: auto; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-success { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.btn-success:hover { background: #4ade80; color: #000; }
.btn-discord { background: #5865F2; color: white; }
.btn-discord:hover { background: #4752c4; }
.btn-wiki { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; }

/* --- Sections & Grid --- */
.section { padding: 100px 0; }
.section-title {
    font-family: var(--font-heading); font-size: 2rem; text-align: center;
    margin-bottom: 3rem; color: var(--text);
}
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* --- Cards --- */
.card {
    padding: 2rem; border-radius: 16px; transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.card .icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* --- Stats Specific --- */
.stats-section { position: relative; overflow: hidden; }
.stats-bg-effects { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.3; }
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -10%; left: -10%; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: -10%; right: -10%; }

.stat-card { display: flex; flex-direction: column; height: 100%; }
.stat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.stat-header h3 { margin: 0; font-size: 1rem; }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    background: rgba(0,0,0,0.3); border-radius: 20px; font-size: 0.75rem; margin-bottom: 1rem;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.online { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.dot.loading { background: #f59e0b; animation: pulse 1s infinite; }
.dot.offline { background: #ef4444; }

.stat-data { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.stat-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat-row:last-child { border: none; }
.stat-row .highlight { color: var(--secondary); }

.progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 1rem; overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--secondary); transition: width 1s ease; }

.short-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; flex-grow: 1; }
.wiki-badges { display: flex; gap: 8px; margin-bottom: 1rem; }
.badge {
    padding: 4px 10px; background: rgba(255,255,255,0.05); border-radius: 6px;
    font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--glass-border);
}

.avatar-stack { display: flex; margin-bottom: 1rem; padding-left: 10px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-dark);
    margin-left: -10px; background: var(--primary); display: flex; align-items: center;
    justify-content: center; font-size: 0.7rem; font-weight: bold;
}
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.stats-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; border-radius: 12px; margin-top: 2rem; font-size: 0.85rem; color: var(--text-muted);
}
.btn-icon {
    background: transparent; border: 1px solid var(--glass-border); color: var(--text);
    width: 36px; height: 36px; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }

/* --- Download Section --- */
.req-badges { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.download-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Footer --- */
.footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--glass-border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer h4 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }

/* --- Animations --- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 60px; left: -100%; width: 100%; height: calc(100vh - 60px);
        background: var(--bg-dark); flex-direction: column; align-items: center;
        justify-content: center; transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 3rem; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* --- Changelog Section --- */
.changelog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.changelog-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.changelog-header .version-badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 0;
}
.date {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.changelog-summary {
    font-size: 0.9rem;
    margin: 0;
}

/* --- Modal / Popup --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    padding: 2rem;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}
.modal-header {
    margin-bottom: 1rem;
    padding-right: 2rem;
}
.modal-header h2 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}
.modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}
.modal-scroll::-webkit-scrollbar { width: 6px; }
.modal-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* Changelog Content Styling */
.changelog-category { margin-bottom: 1.5rem; }
.changelog-category:last-child { margin-bottom: 0; }
.changelog-category h4 {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.changelog-category ul {
    list-style: none;
    padding-left: 0;
}
.changelog-category li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.changelog-category li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}
.changelog-category li:last-child { border-bottom: none; }

/* --- Modal Download Section (Nur Modrinth) --- */
.modal-downloads {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.download-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.download-count {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}
.platform-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.download-buttons {
    display: flex;
    gap: 10px;
}

/* Modrinth Button Style */
.btn-modrinth {
    background: #00af5c;
    color: white;
    flex: 1;
    text-align: center;
    text-decoration: none;
}
.btn-modrinth:hover {
    background: #008f4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 175, 92, 0.3);
}