/* =============================================
   FlowaMC — Minecraft Server Website
   ============================================= */

:root {
    /* Minecraft palette */
    --grass:     #5d9e32;
    --grass-dk:  #3d7a1a;
    --dirt:      #8b6340;
    --dirt-dk:   #5c3d1e;
    --stone:     #888;
    --diamond:   #4dd9e0;
    --gold:      #f5c518;
    --emerald:   #17d653;
    --netherite: #4a3f4b;

    /* Site palette */
    --bg:        #0d0f0d;
    --bg2:       #131713;
    --bg3:       #1b201b;
    --border:    #2a332a;
    --text:      #e8f0e8;
    --text2:     #8a9e8a;
    --text3:     #4a574a;

    --radius:    4px; /* Minecraft = sharp corners */
    --nav-h:     64px;
    --font-pixel: 'Press Start 2P', monospace;
    --font-vt:    'VT323', monospace;
    --font-body:  'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── CANVAS PARTICLES ───────────────────── */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

/* ── GRASS BLOCK LOGO ───────────────────── */
.grass-block {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    position: relative;
    image-rendering: pixelated;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.grass-block.sm { width: 24px; height: 24px; }

.grass-top {
    height: 30%;
    background: linear-gradient(180deg, #6ab833, #4d8c22);
    border-bottom: 1px solid #3a6e17;
}
.grass-block.sm .grass-top { height: 30%; }

.grass-side {
    height: 70%;
    background: repeating-linear-gradient(
        180deg,
        #7b5432 0px, #7b5432 2px,
        #6b4828 2px, #6b4828 4px
    );
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--nav-h);
    background: rgba(13,15,13,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 0 rgba(93,158,50,0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 8px;
}

.logo-text {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--grass);
    text-shadow: 0 2px 0 var(--grass-dk), 0 0 20px rgba(93,158,50,0.4);
    letter-spacing: 1px;
}
.logo-text.sm { font-size: 9px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    transition: all 0.15s;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    background: var(--bg3);
    color: var(--text);
}

.nav-link.active {
    background: rgba(93,158,50,0.15);
    color: var(--grass);
    border: 1px solid rgba(93,158,50,0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--grass);
    border-radius: 1px;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 8px var(--grass);
}

.nav-icon { font-size: 14px; }

/* IP Badge */
.ip-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid rgba(93,158,50,0.4);
    border-radius: var(--radius);
    padding: 7px 14px;
    cursor: pointer;
    color: var(--text);
    font-family: var(--font-vt);
    font-size: 18px;
    letter-spacing: 1px;
    transition: all 0.15s;
    white-space: nowrap;
    margin-left: auto;
}

.ip-badge:hover {
    background: rgba(93,158,50,0.12);
    border-color: var(--grass);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(93,158,50,0.25);
}

.ip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.ip-copy-hint {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: all 0.2s;
}

/* ── TOAST ──────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--grass);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(93,158,50,0.5);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── MAIN ────────────────────────────────── */
.site-main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ── HERO ────────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(93,158,50,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(77,217,224,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0d0f0d 0%, #0d120d 100%);
}

/* Pixel grid overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93,158,50,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93,158,50,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(93,158,50,0.12);
    border: 1px solid rgba(93,158,50,0.3);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--grass);
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-pixel);
    font-size: clamp(28px, 6vw, 54px);
    color: var(--text);
    line-height: 1.4;
    text-shadow: 0 4px 0 rgba(0,0,0,0.5);
    margin-bottom: 12px;
}

.hero-title .highlight {
    color: var(--grass);
    text-shadow: 0 4px 0 var(--grass-dk), 0 0 30px rgba(93,158,50,0.5);
}

.hero-sub {
    font-family: var(--font-vt);
    font-size: 26px;
    color: var(--text2);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background: var(--grass);
    color: #fff;
    box-shadow: 0 4px 0 var(--grass-dk), 0 8px 20px rgba(93,158,50,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--grass-dk), 0 12px 30px rgba(93,158,50,0.4);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--grass-dk); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--grass); color: var(--grass); background: rgba(93,158,50,0.06); }

.btn-diamond {
    background: rgba(77,217,224,0.12);
    color: var(--diamond);
    border: 1px solid rgba(77,217,224,0.3);
}
.btn-diamond:hover { background: rgba(77,217,224,0.2); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(77,217,224,0.2); }

/* ── HERO GROUND ─────────────────────────── */
.hero-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
}
.ground-block {
    flex: 1;
    background: linear-gradient(180deg, #5d9e32 0%, #4a8020 20%, #7b5432 20%, #5c3d1e 100%);
    border-right: 1px solid rgba(0,0,0,0.3);
    image-rendering: pixelated;
}

/* ── SECTION ─────────────────────────────── */
.section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.section-sub {
    font-size: 15px;
    color: var(--text2);
    margin-bottom: 44px;
}

/* ── FEATURE CARDS ───────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-color, var(--grass));
    opacity: 0;
    transition: opacity 0.2s;
}
.feat-card:hover { border-color: rgba(93,158,50,0.3); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}
.feat-card h3 {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.6;
}
.feat-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ── RANK CARDS ──────────────────────────── */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.rank-card {
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.rank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.rank-tag {
    font-family: var(--font-pixel);
    font-size: 11px;
    padding: 6px 14px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.rank-price {
    font-family: var(--font-pixel);
    font-size: 20px;
    color: var(--text);
    margin-bottom: 4px;
}

.rank-price sup { font-size: 11px; vertical-align: super; color: var(--text2); }
.rank-period { font-size: 12px; color: var(--text2); margin-bottom: 20px; }

.rank-perks {
    list-style: none;
    text-align: left;
    font-size: 12.5px;
    color: var(--text2);
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}
.rank-perks li::before { content: '✦ '; color: currentColor; }

/* Rank color themes */
.rank-iron    { --rc: #b0b0b0; border-color: rgba(176,176,176,0.4); }
.rank-gold    { --rc: #f5c518; border-color: rgba(245,197,24,0.4); }
.rank-diamond { --rc: #4dd9e0; border-color: rgba(77,217,224,0.4); }
.rank-emerald { --rc: #17d653; border-color: rgba(23,214,83,0.4); }
.rank-netherite { --rc: #9b8ea0; border-color: rgba(155,142,160,0.5); }

.rank-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(var(--rc-rgb,93,158,50),0.15); }

/* ── RULES ───────────────────────────────── */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-color, var(--grass));
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rule-num {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text3);
    flex-shrink: 0;
    padding-top: 3px;
}

.rule-body h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.rule-body p  { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── VOTE CARDS ──────────────────────────── */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.vote-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s;
}
.vote-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

.vote-site { font-family: var(--font-pixel); font-size: 10px; color: var(--text); }
.vote-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── STAFF ───────────────────────────────── */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.staff-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
}
.staff-card:hover { border-color: rgba(93,158,50,0.3); transform: translateY(-4px); }

.staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    margin: 0 auto 14px;
    image-rendering: pixelated;
    border: 2px solid var(--border);
}

.staff-name { font-family: var(--font-pixel); font-size: 11px; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.staff-role {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* ── DIVIDER ─────────────────────────────── */
.pixel-divider {
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--grass)   0, var(--grass)   16px,
        var(--grass-dk) 16px, var(--grass-dk) 32px
    );
    opacity: 0.4;
    margin: 0;
}

/* ── FOOTER ─────────────────────────────── */
.site-footer {
    border-top: 2px solid var(--border);
    background: var(--bg2);
    padding: 32px 24px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-sub  { font-size: 11px; color: var(--text3); }
.footer-copy { font-size: 12px; color: var(--text2); }

/* ── NOT FOUND ───────────────────────────── */
.not-found { text-align: center; padding: 120px 24px; }
.not-found h1 { font-family: var(--font-pixel); font-size: 64px; color: var(--grass); margin-bottom: 16px; }
.not-found p { color: var(--text2); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--bg2);
        border-bottom: 2px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .ip-badge .ip-text { display: none; }
    .hero-title { font-size: 24px; }
    .nav-link.active::after { display: none; }
}
