/* =============================================
   ClothesPlus Wiki - Modern Dark Purple Theme
   Inspired by bStats - Clean & Professional
   ============================================= */

/* CSS Variables */
:root {
    /* Purple Theme Colors */
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.3);

    /* Background Colors */
    --bg-dark: #0f0f13;
    --bg-card: #18181f;
    --bg-card-hover: #1f1f28;
    --bg-elevated: #222230;
    --bg-input: #1a1a24;

    --bg0: #070812;
    --bg1: #0b0d1c;
    --grid: rgba(183, 121, 255, 0.1);
    --grid2: rgba(100, 70, 180, 0.08);

    /* Text Colors */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --text: #f4f2ff;
    --muted: rgba(244, 242, 255, 0.7);

    /* Accent Colors */
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;

    /* Border Colors */
    --border: #27272a;
    --border-light: #3f3f46;

    /* Code Colors */
    --code-bg: #1e1e2e;
    --code-border: #313244;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --shadow-neon: 0 18px 55px rgba(0, 0, 0, 0.55);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;

    /* Spacing */
    --nav-height: 60px;
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(1200px 700px at 20% 10%, rgba(124, 58, 237, 0.2), transparent 60%),
                radial-gradient(1000px 600px at 80% 20%, rgba(168, 85, 247, 0.18), transparent 55%),
                radial-gradient(900px 650px at 45% 90%, rgba(192, 132, 252, 0.12), transparent 55%),
                linear-gradient(180deg, var(--bg0), var(--bg1));
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grid Background Overlay */
.grid-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
        linear-gradient(to right, var(--grid2) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid2) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
    mask-image: radial-gradient(700px 480px at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0.05) 60%, transparent 80%);
    -webkit-mask-image: radial-gradient(700px 480px at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0.05) 60%, transparent 80%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* =============================================
   Particle Background
   ============================================= */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* =============================================
   Click Effect
   ============================================= */
.click-effect {
    position: fixed;
    pointer-events: none;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: clickRipple 0.5s ease-out forwards;
    z-index: 10000;
}

@keyframes clickRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* =============================================
   Navigation - Clean & Compact
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.nav-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav-logo:hover {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        display: block;
    }
}

/* =============================================
   Container & Layout
   ============================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

main {
    padding-top: calc(var(--nav-height) + 4rem);
    min-height: 100vh;
    padding-bottom: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 0 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.page-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) var(--container-padding) 2rem;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.0rem;
    margin-bottom: 1rem;
}

.hero-player-gif {
    width: 160px;
    height: 240px;
    min-width: 160px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-player-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.hero-player-gif canvas {
    width: 100% !important;
    height: 100% !important;
    /* No rectangular filter - glow will be applied via Three.js or kept minimal */
}

.skin-viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    gap: 1rem;
}

.skin-viewer-loading i {
    font-size: 2rem;
}

.skin-viewer-loading span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1400px) {
    .hero-player-gif {
        width: 140px;
        height: 210px;
        min-width: 140px;
        min-height: 210px;
    }
}

@media (max-width: 1024px) {
    .hero-player-gif {
        width: 120px;
        height: 180px;
        min-width: 120px;
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .hero-player-gif {
        width: 80px;
        height: 120px;
        min-width: 80px;
        min-height: 120px;
    }

    .hero-title-container {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-player-gif {
        display: none;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-title i {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge i {
    color: var(--primary);
}

.version-badge {
    color: var(--accent-green);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* =============================================
   Buttons - Clean, no gradients
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
}

.btn-youtube {
    background: #FF0000;
    color: white;
}

.btn-youtube:hover {
    background: #CC0000;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Download Buttons */
.btn-builtbybit {
    background: #e91e63;
    color: white;
}

.btn-builtbybit:hover {
    background: #c2185b;
}

.btn-polymart {
    background: #00bcd4;
    color: white;
}

.btn-polymart:hover {
    background: #00838f;
}

.btn-modrinth {
    background: #1bd96a;
    color: #111;
}

.btn-modrinth:hover {
    background: #17c25e;
}

.btn-spigot {
    background: #ee8a18;
    color: white;
}

.btn-spigot:hover {
    background: #d47a15;
}

/* =============================================
   Video Showcase
   ============================================= */
.video-showcase {
    margin-top: 3rem;
    width: 100%;
    max-width: 800px;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 16/9;
}

.video-container video,
.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 1rem;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

/* Video Showcase Button */
.video-showcase-button {
    margin-top: 2rem;
}

.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-video i {
    font-size: 1.3rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    aspect-ratio: 16/9;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-modal-close:hover {
    opacity: 1;
}

/* =============================================
   Authors Section
   ============================================= */
.authors-section {
    padding: 4rem 0;
    background: var(--bg-card);
    margin-top: 4rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.author-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
}

.author-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    image-rendering: pixelated;
    border: 3px solid var(--primary);
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-mc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.author-mc i {
    margin-right: 0.25rem;
}

/* =============================================
   Endorsed Servers Section
   ============================================= */
.endorsed-servers-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
}

.endorsed-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.endorsed-server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.endorsed-server-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.endorsed-server-card.priority-1 {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}

.endorsed-server-card.priority-1::before {
    content: '⭐ Featured';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-yellow);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.endorsed-server-card.priority-1:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.3);
}

.endorsed-server-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.endorsed-server-info {
    padding: 1.25rem;
}

.endorsed-server-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.endorsed-server-version {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
}

.endorsed-server-ip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.endorsed-server-ip:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}

.endorsed-server-ip i {
    color: var(--primary);
}

.endorsed-server-ip .copy-icon {
    margin-left: auto;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.endorsed-server-ip:hover .copy-icon {
    opacity: 1;
}

.endorsed-servers-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-muted);
}

.endorsed-servers-loading i {
    font-size: 2rem;
    color: var(--primary);
}

.endorsed-servers-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.endorsed-servers-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Endorsement Info Box */
.endorsement-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.endorsement-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.endorsement-info h3 i {
    color: var(--accent-yellow);
    margin-right: 0.5rem;
}

.endorsement-content {
    display: flex;
    justify-content: center;
}

.endorsement-option {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    transition: var(--transition-normal);
}

.endorsement-option:hover {
    border-color: var(--primary);
}

.endorsement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.endorsement-icon i {
    font-size: 1.5rem;
    color: white;
}

.endorsement-option h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.endorsement-option > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.endorsement-option ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.endorsement-option ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.endorsement-option ul li i {
    color: var(--accent-green);
    font-size: 0.85rem;
}

/* Endorsement Details Page Styles */
.endorsement-details {
    padding: 1rem 0;
}

.endorsement-tier {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.endorsement-tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.endorsement-tier-header i {
    font-size: 2rem;
    color: var(--accent-yellow);
}

.endorsement-tier-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.endorsement-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.endorsement-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.endorsement-benefits li:last-child {
    border-bottom: none;
}

.endorsement-benefits li i {
    color: var(--accent-green);
    font-size: 1rem;
}

.endorsement-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.endorsement-requirements li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.endorsement-requirements li i {
    color: var(--primary);
    width: 1.5rem;
}

.endorsement-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.endorsement-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .endorsed-servers-grid {
        grid-template-columns: 1fr;
    }

    .endorsement-option {
        padding: 1.5rem;
    }
}

/* =============================================
   bStats Section - Theme Matched
   ============================================= */
.bstats-section {
    padding: 4rem 0;
}

.bstats-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.bstats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bstats-chart {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    min-height: 200px;
}

.bstats-chart h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* =============================================
   Version Comparison Section
   ============================================= */
.version-comparison {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    transition: var(--transition-normal);
}

.comparison-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.comparison-card.premium-card {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.comparison-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.comparison-header i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.free-card .comparison-header i {
    color: var(--accent-green);
}

.premium-card .comparison-header i {
    color: var(--primary);
}

.comparison-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comparison-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-card .comparison-price {
    color: var(--primary);
}

.comparison-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.comparison-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.comparison-features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.comparison-features li:last-child {
    border-bottom: none;
}

.comparison-features li i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.comparison-features li.included i {
    color: var(--accent-green);
}

.comparison-features li.limited i {
    color: var(--accent-yellow);
}

.comparison-features li.excluded {
    color: var(--text-muted);
}

.comparison-features li.excluded i {
    color: var(--accent-red);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.comparison-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparison-note i {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.comparison-note p {
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   Cards & Features
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =============================================
   Command Cards with GIF Preview
   ============================================= */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.command-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.command-card:hover {
    border-color: var(--primary);
}

.command-preview {
    aspect-ratio: 16/10;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.command-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.command-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.command-preview-placeholder i {
    font-size: 2rem;
    color: var(--primary);
}

.command-content {
    padding: 1.25rem;
}

.command-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.command-permission {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* =============================================
   Code Blocks - Syntax Highlighting
   ============================================= */
.code-block {
    position: relative;
    margin: 1rem 0;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--code-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--code-border);
    border-bottom: none;
}

.code-lang {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.code-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.code-copy:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

pre {
    margin: 0;
    padding: 1rem;
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

pre.standalone {
    border-radius: var(--radius-md);
}

code {
    font-family: 'JetBrains Mono', monospace;
}

/* Inline code */
p code, li code, td code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    color: var(--primary-light);
    border: 1px solid var(--code-border);
}

/* Syntax Highlighting Colors */
pre code .key { color: #7dd3fc; }
pre code .string { color: #86efac; }
pre code .number { color: #fcd34d; }
pre code .boolean { color: #f472b6; }
pre code .comment { color: #6b7280; font-style: italic; }
pre code .keyword { color: #f472b6; }
pre code .type { color: #7dd3fc; }
pre code .annotation { color: #fbbf24; }
pre code .method { color: #93c5fd; }
pre code .punctuation { color: #9ca3af; }

/* Legacy class support */
.key { color: #7dd3fc; }
.string { color: #86efac; }
.number { color: #fcd34d; }
.boolean { color: #f472b6; }
.comment { color: #6b7280; font-style: italic; }
.keyword { color: #f472b6; }
.annotation { color: #fbbf24; }
.punctuation { color: #9ca3af; }

/* =============================================
   Tables
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover td {
    background: var(--bg-card);
}

/* =============================================
   Updates Section
   ============================================= */
.updates-section {
    padding: 4rem 0;
}

.updates-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.update-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.update-version {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-version-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.update-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
}

.update-type.major {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.update-type.feature {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
}

.update-type.fix {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.update-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.update-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-changes {
    list-style: none;
}

.update-changes li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.update-changes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* =============================================
   Editor / Skin Viewer
   ============================================= */
.overlays-section {
    padding: 4rem 0;
}

.overlays-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.overlays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.overlay-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.overlay-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.skin-viewer {
    aspect-ratio: 1;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skin-viewer canvas {
    max-width: 100%;
    max-height: 100%;
}

.skin-viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.skin-viewer-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

.overlay-info {
    padding: 1rem;
}

.overlay-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.overlay-category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.overlay-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.overlay-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.overlay-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.overlay-actions {
    display: flex;
    gap: 0.5rem;
}

.overlay-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Skin Resources Box */
.skin-resources {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.skin-resources h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.skin-resources p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* =============================================
   Download Links Section
   ============================================= */
.download-section {
    padding: 3rem 0;
    background: var(--bg-card);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.download-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.download-card.premium i { color: var(--accent-yellow); }
.download-card.free i { color: var(--accent-green); }

.download-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.download-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   Tabs
   ============================================= */
.tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =============================================
   Alerts & Notices
   ============================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--accent-yellow);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.alert-dev {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-light);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
    }

    .tab-btn.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        width: 100%;
    }

    .social-links .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* =============================================
   Prism.js Theme Overrides - Purple Theme
   ============================================= */

/* Override Prism background to match our theme */
code[class*="language-"],
pre[class*="language-"] {
    color: #e4e4e7;
    background: var(--code-bg);
    font-family: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    tab-size: 4;
    hyphens: none;
}

pre[class*="language-"] {
    padding: 1rem;
    margin: 0;
    overflow: auto;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--code-border);
}

:not(pre) > code[class*="language-"] {
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    white-space: normal;
}

/* Prism Token Colors - Purple Theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6b7280;
    font-style: italic;
}

.token.punctuation {
    color: #9ca3af;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f472b6;
}

.token.boolean,
.token.number {
    color: #fcd34d;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #86efac;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
    color: #a78bfa;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: #7dd3fc;
}

.token.keyword {
    color: #f472b6;
}

.token.regex,
.token.important {
    color: #fbbf24;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* YAML specific styling */
.language-yaml .token.key,
.language-yaml .token.atrule {
    color: #7dd3fc;
}

.language-yaml .token.scalar,
.language-yaml .token.string {
    color: #86efac;
}

.language-yaml .token.punctuation {
    color: #9ca3af;
}

.language-yaml .token.boolean,
.language-yaml .token.number {
    color: #fcd34d;
}

/* Java specific styling */
.language-java .token.keyword {
    color: #f472b6;
}

.language-java .token.class-name {
    color: #7dd3fc;
}

.language-java .token.function {
    color: #93c5fd;
}

.language-java .token.annotation {
    color: #fbbf24;
}

.language-java .token.string {
    color: #86efac;
}

/* Bash/Shell specific styling */
.language-bash .token.function {
    color: #7dd3fc;
}

.language-bash .token.command {
    color: #86efac;
}

.language-bash .token.parameter {
    color: #fcd34d;
}

/* XML/Markup specific styling */
.language-markup .token.tag {
    color: #f472b6;
}

.language-markup .token.attr-name {
    color: #7dd3fc;
}

.language-markup .token.attr-value {
    color: #86efac;
}

/* Command Line styling */
.command-line-prompt {
    border-right: 1px solid var(--border);
    display: block;
    float: left;
    font-size: 0.875rem;
    letter-spacing: -1px;
    margin-right: 1em;
    pointer-events: none;
    user-select: none;
}

.command-line-prompt > span:before {
    color: var(--primary);
    content: ' ';
    display: block;
    padding-right: 0.8em;
}

.command-line-prompt > span[data-user]:before {
    content: "[" attr(data-user) "@" attr(data-host) "] $";
}

.command-line-prompt > span[data-prompt]:before {
    content: attr(data-prompt);
}

/* Minecraft command styling for bash/shell */
.language-bash .token.function,
.language-bash .token.builtin {
    color: #fcd34d; /* Gold color like Minecraft commands */
}

.language-bash .token.comment {
    color: #6b7280;
    font-style: italic;
}

/* Folder structure styling */
.language-plaintext {
    color: #e4e4e7;
}

/* Line highlighting */
.line-highlight {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--primary);
}

/* Toolbar styling */
div.code-toolbar {
    position: relative;
}

div.code-toolbar > .toolbar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

div.code-toolbar:hover > .toolbar,
div.code-toolbar:focus-within > .toolbar {
    opacity: 1;
}

div.code-toolbar > .toolbar .toolbar-item {
    display: inline-block;
}

div.code-toolbar > .toolbar button,
div.code-toolbar > .toolbar span {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border: 1px solid var(--border);
}

div.code-toolbar > .toolbar button:hover,
div.code-toolbar > .toolbar button:focus,
div.code-toolbar > .toolbar span:hover,
div.code-toolbar > .toolbar span:focus {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =============================================
   New Purple Grid Aesthetic
   ============================================= */
body {
    background: radial-gradient(1200px 700px at 20% 10%, rgba(124, 58, 237, 0.2), transparent 60%),
                radial-gradient(1000px 600px at 80% 20%, rgba(168, 85, 247, 0.18), transparent 55%),
                radial-gradient(900px 650px at 45% 90%, rgba(192, 132, 252, 0.12), transparent 55%),
                linear-gradient(180deg, var(--bg0), var(--bg1));
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
        linear-gradient(to right, var(--grid2) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid2) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
    mask-image: radial-gradient(700px 480px at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0.05) 60%, transparent 80%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.glass-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid var(--stroke-glass, rgba(255,255,255,0.12));
    border-radius: 16px;
    box-shadow: var(--shadow-neon);
    backdrop-filter: blur(10px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--stroke-glass, rgba(255,255,255,0.12));
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.admin-shell {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    border: 1px solid var(--stroke-glass, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.admin-tab-btn.active {
    background: linear-gradient(180deg, rgba(124,58,237,0.35), rgba(168,85,247,0.2));
    border-color: rgba(192,132,252,0.35);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.live-editor {
    display: grid;
    grid-template-columns: minmax(320px, 0.45fr) minmax(400px, 0.55fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .live-editor {
        grid-template-columns: 1fr;
    }
}

.editor-pane,
.preview-pane {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.editor-pane textarea {
    min-height: 420px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--stroke-glass, rgba(255,255,255,0.12));
    border-radius: 12px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.preview-pane iframe,
.preview-pane .preview-surface {
    flex: 1;
    min-height: 420px;
    border: 1px solid var(--stroke-glass, rgba(255,255,255,0.12));
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
}

.overlay-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.dropzone {
    border: 1px dashed rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.04);
    transition: border-color 0.12s ease, background 0.12s ease;
}

.dropzone.dragover {
    border-color: var(--purple1);
    background: rgba(124,58,237,0.12);
}

.upload-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

.upload-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--purple0), var(--purple2));
    width: 0;
}

