/* =============================================
   Anonventions.org — Unified Global Stylesheet
   Clean monochrome dark theme
   ============================================= */

/* ── Minecraft Font ───────────────────────────── */
@font-face {
    font-family: 'Minecraft';
    src: url('/css/fonts/Minecraft.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Design Tokens ───────────────────────────── */
:root {
    /* Primary (white accent) */
    --primary: #ffffff;
    --primary-light: #e0e0e0;
    --primary-dark: #cccccc;
    --primary-glow: transparent;

    /* Backgrounds — 4-color palette */
    --bg0: #0F1112;
    --bg1: #0F1112;
    --bg-dark: #0F1112;
    --bg-main: #0F1112;
    --bg-card: #181C1F;
    --bg-card-hover: #22272B;
    --bg-elevated: #22272B;
    --bg-input: #181C1F;
    --bg-hover: #22272B;

    /* Text */
    --text: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.55);

    /* Accents */
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;

    /* Semantic */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --discord: #22272B;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --stroke: rgba(255, 255, 255, 0.08);

    /* Code */
    --code-bg: #181C1F;
    --code-border: rgba(255, 255, 255, 0.08);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 55px rgba(0, 0, 0, 0.6);
    --shadow-glow: none;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;

    /* Spacing / Layout */
    --nav-height: 60px;
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Radii */
    --radius: 12px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ── Body ────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0F1112;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(34, 39, 43, 0.5) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Grid Background — REMOVED ───────────────── */
.grid-bg { display: none !important; }

/* ── 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: rgba(255,255,255,0.25); }

/* ── Selection ───────────────────────────────── */
::selection { background: rgba(255, 255, 255, 0.2); color: white; }

/* ── Links ───────────────────────────────────── */
a { color: var(--text-secondary); text-decoration: none; }
a:hover { color: var(--text); }

/* ── 3D Viewer Background ────────────────────── */
.editor-3d-viewer {
    background: radial-gradient(ellipse at center top, #22272B 0%, #181C1F 35%, #0F1112 100%) !important;
}

/* ── Pixel Art Icons (.pxi) ─────────────────── */
.pxi {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: currentColor;
    width: 1em;
    height: 1em;
}

@keyframes pxi-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.pxi-spin { animation: pxi-spin 1s linear infinite; }
