*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --border-color: #2a2a2a;
    --border-light: #333333;
    --text-primary: #e8e8e8;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #4ade80;
    --accent-dim: #22c55e;
    --accent-bg: rgba(74, 222, 128, 0.08);
    --red: #ef4444;
    --yellow: #eab308;
    --blue: #3b82f6;
    --purple: #a78bfa;
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 70px;
    --skeleton: #1a1a1a;
    --skeleton-highlight: #222222;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.slime-loader {
    width: 80px;
    height: 60px;
    background: var(--accent);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    animation: bounce 0.8s infinite alternate ease-in-out;
}

.slime-loader::before, .slime-loader::after {
    content: '';
    position: absolute;
    background: #000;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 20px;
}

.slime-loader::before { left: 20px; }
.slime-loader::after { right: 20px; }

@keyframes bounce {
    from { transform: translateY(0) scaleX(1); }
    to { transform: translateY(-20px) scaleX(0.95); }
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    transition: all 0.3s ease;
    height: var(--nav-height);
}

nav.scrolled {
    height: 60px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--accent-dim);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

/* Hamburger Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 8px;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 0;
    list-style: none;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

/* Desktop Hover */
@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding: 10px;
        color: var(--text-secondary);
    }
}

/* ===== HERO ===== */
.hero {
    /* min-height wird jetzt von section geerbt */
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at top, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
    position: relative;
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-bg);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: var(--text-primary);
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin: 0 auto 32px;
    backdrop-filter: blur(8px);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 100px;
    transition: all 0.2s;
    position: relative;
}

.hero-meta-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: var(--border-color);
}

/* ===== META DROPDOWN (Enhanced Hover) ===== */
.hero-meta-item.dropdown {
    cursor: pointer;
}

.meta-dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 8px;
    min-width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.meta-dropdown-content::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--border-color);
}

.hero-meta-item.dropdown:hover .meta-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    flex: 1;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item img {
    width: 28px;
    height: 28px;
    filter: brightness(1);
    flex-shrink: 0;
}

.dropdown-info {
    display: flex;
    flex-direction: column;
}

.dropdown-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dropdown-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--mono);
}

.hero-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-meta-item span {
    font-size: 14px;
    opacity: 0.8;
}


/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== CARDS / BOXES ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(74, 222, 128, 0.5);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    padding: 32px;
    text-decoration: none;
    color: inherit;
}

.project-card .icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    gap: 12px;
}

.project-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

/* ===== WIKI GRID ===== */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .wiki-grid {
        grid-template-columns: 1fr;
    }
}

.wiki-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 80px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wiki-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wiki-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.wiki-card:hover .wiki-icon {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    transform: scale(1.1) rotate(5deg);
}

.wiki-card-content {
    flex-grow: 1;
}

.wiki-card:hover {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.15), 0 0 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.wiki-card-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wiki-card-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.wiki-card-arrow {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.wiki-card:hover .wiki-card-arrow {
    transform: translateX(3px);
    color: var(--text-secondary);
}

/* ===== STATUS CARDS ===== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

.status-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 640px) {
    .status-card {
        flex-direction: column;
        gap: 16px;
    }
}

.status-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.status-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.status-card:hover .status-icon {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    transform: scale(1.1) rotate(-5deg);
}

.status-content {
    flex-grow: 1;
    width: 100%;
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.status-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.online {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.status-badge.online .status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.status-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.status-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-info-row .label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-info-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

.status-info-row .value.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.status-action-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.status-action-btn.secondary {
    background: rgba(74, 222, 128, 0.05);
    border-color: rgba(74, 222, 128, 0.2);
    color: var(--accent);
}

.status-action-btn.secondary:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===== CHANGELOGS ===== */
.changelog-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 0;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.changelog-item:hover {
    border-color: rgba(74, 222, 128, 0.4);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.changelog-item.open {
    border-color: var(--accent-dim);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.05);
}

.changelog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
}

.changelog-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.changelog-toggle {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.changelog-item.open .changelog-toggle {
    transform: rotate(90deg);
}

.changelog-version {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text-primary);
}

.changelog-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.changelog-tag.hotfix { background: rgba(239, 68, 68, 0.1); color: var(--red); border-color: rgba(239, 68, 68, 0.15); }
.changelog-tag.major { background: rgba(167, 139, 250, 0.1); color: var(--purple); border-color: rgba(167, 139, 250, 0.15); }
.changelog-tag.patch { background: rgba(59, 130, 246, 0.1); color: var(--blue); border-color: rgba(59, 130, 246, 0.15); }
.changelog-tag.minor { background: rgba(234, 179, 8, 0.1); color: var(--yellow); border-color: rgba(234, 179, 8, 0.15); }

.changelog-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.changelog-header-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: all 0.2s;
}

.changelog-header-link:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.changelog-header-link img {
    width: 16px;
    height: 16px;
}

.changelog-body {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.01), transparent);
}

.changelog-item.open .changelog-body {
    display: block;
}

.changelog-body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.changelog-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-stats-detailed {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-badge:hover {
    transform: scale(1.05);
}

.stat-badge img {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

.stat-badge.mr {
    background: rgba(27, 217, 106, 0.08);
    border-color: rgba(27, 217, 106, 0.2);
    color: #1bd96a;
}

.stat-badge.cf {
    background: rgba(241, 100, 54, 0.08);
    border-color: rgba(241, 100, 54, 0.2);
    color: #f16436;
}

.stat-badge.mr:hover {
    background: rgba(27, 217, 106, 0.15);
    border-color: #1bd96a;
    box-shadow: 0 0 15px rgba(27, 217, 106, 0.2);
}

.stat-badge.cf:hover {
    background: rgba(241, 100, 54, 0.15);
    border-color: #f16436;
    box-shadow: 0 0 15px rgba(241, 100, 54, 0.2);
}

.changelog-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-changes li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    position: relative;
    border-radius: 6px;
    transition: all 0.2s;
}

.changelog-changes li:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    transform: translateX(4px);
}

.changelog-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

.category-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 6px;
    opacity: 0.8;
}


.no-changes {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 0;
}

/* ===== SKELETON ANIMATION ===== */
@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.skeleton {
    background: linear-gradient(90deg, var(--skeleton) 25%, var(--skeleton-highlight) 50%, var(--skeleton) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-item {
    height: 60px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.skeleton-button {
    height: 36px;
    width: 120px;
    border-radius: var(--radius);
}


.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}


.view-all-container {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-all-btn span {
    transition: transform 0.3s ease;
}

.view-all-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.1);
}

.view-all-btn:hover span {
    transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(74, 222, 128, 0.3);
}

.faq-item.open {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-toggle {
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
    opacity: 1;
}


/* ===== FOOTER ===== */
footer {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-meta {
        border-radius: 16px;
        padding: 12px;
        gap: 4px;
    }

    .hero-meta-item:not(:last-child)::after {
        display: none;
    }

    .hero-meta-item {
        width: 100%;
        justify-content: center;
        padding: 4px;
        position: static; /* Allow dropdown to use full width if needed */
    }

    .meta-dropdown-content {
        width: calc(100% - 32px);
        min-width: 0;
        top: calc(100% + 8px);
        flex-direction: column;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        height: auto;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        padding: 20px 0;
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .wiki-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .changelog-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
    }

    .changelog-header-right {
        margin-left: auto;
        gap: 12px;
        display: flex;
        align-items: center;
    }

    .changelog-body {
        padding: 0 20px 24px;
    }

    section {
        padding: 60px 0;
    }
}


/* ===== UTILITY ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
    width: 100%;
}

.mono {
    font-family: var(--mono);
}

.text-accent {
    color: var(--accent);
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}