/* ========== BITTY.CAT SHARED BASE STYLES (2026-02-16) ========== */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #1a1a2e; overflow: hidden; height: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.3); }
* { scrollbar-width: thin; scrollbar-color: rgba(0,255,255,0.15) #0a0a0a; }

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }

/* Pixel grid overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0,255,255,0.03) 25%, rgba(0,255,255,0.03) 26%, transparent 27%, transparent 74%, rgba(0,255,255,0.03) 75%, rgba(0,255,255,0.03) 76%, transparent 77%),
        linear-gradient(90deg, transparent 24%, rgba(0,255,255,0.03) 25%, rgba(0,255,255,0.03) 26%, transparent 27%, transparent 74%, rgba(0,255,255,0.03) 75%, rgba(0,255,255,0.03) 76%, transparent 77%);
    background-size: 50px 50px;
    pointer-events: none; z-index: 0;
}

/* CRT scanlines */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
    pointer-events: none; z-index: 9999;
}

/* Typography */
h1, h2, h3, h4 { font-family: 'Press Start 2P', cursive; line-height: 1.5; }
a { color: #00FFFF; text-decoration: none; transition: color 0.2s; }
a:hover { color: #FFD700; }

/* ========== PARTICLES ========== */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
    position: absolute; width: 4px; height: 4px;
    background: rgba(0,255,255,0.3); animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translateY(-20px) rotate(360deg); opacity: 0; }
}

/* ========== NAV ========== */
.nav {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,255,255,0.1);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(0,255,255,0.5)); }
.nav-name { font-family: 'Press Start 2P', cursive; font-size: 11px; color: #00FFFF; text-shadow: 0 0 8px rgba(0,255,255,0.5); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 4px;
    color: #888; text-decoration: none;
    font-family: 'Press Start 2P', cursive; font-size: 8px;
    letter-spacing: 0.5px; transition: all 0.2s;
    position: relative;
}
.nav-link i { font-size: 10px; }
.nav-link:hover { color: #00FFFF; }
.nav-link.active { color: #00FFFF; text-shadow: 0 0 8px rgba(0,255,255,0.5); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: #00FFFF; box-shadow: 0 0 6px rgba(0,255,255,0.5);
    transition: all 0.25s ease; transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 70%; }
.nav-soon { opacity: 0.3; cursor: default; pointer-events: none; }
.nav-soon:hover { color: inherit; }
.nav-soon::after { display: none; }
.nav-soon small { font-size: 7px; color: #FFD700; opacity: 0.7; margin-left: 4px; vertical-align: middle; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.net-switch {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 4px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(0,255,255,0.15);
    cursor: pointer; user-select: none;
}
.net-label { font-family: 'Press Start 2P', cursive; font-size: 7px; color: #555; transition: color 0.2s; letter-spacing: 1px; }
.net-label.on { color: #00FFFF; text-shadow: 0 0 6px rgba(0,255,255,0.5); }
.net-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #00FFFF; box-shadow: 0 0 6px rgba(0,255,255,0.5);
    transition: all 0.3s; animation: pulse 2s ease infinite;
}
.net-dot.mainnet { background: #00FF00; box-shadow: 0 0 6px rgba(0,255,0,0.5); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 6px rgba(0,255,255,0.5); } 50% { box-shadow: 0 0 14px rgba(0,255,255,0.3), 0 0 20px rgba(0,255,255,0.1); } }

.btn-connect {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 6px;
    background: linear-gradient(135deg, #FF6347, #DC143C);
    color: #fff; border: 2px solid transparent;
    font-family: 'Press Start 2P', cursive; font-size: 10px;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 3px 3px 0 #000;
    position: relative; overflow: hidden;
    white-space: nowrap;
}
.btn-connect.connected {
    background: rgba(0,0,0,0.5);
    border: 2px solid #00FF88;
    box-shadow: 0 0 8px rgba(0,255,136,0.3), 3px 3px 0 #000;
}
.btn-connect.connected:hover { box-shadow: 0 0 12px rgba(0,255,136,0.5), 4px 4px 0 #000; }
.btn-connect:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.btn-connect::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%); transition: none;
}
.btn-connect:hover::after { transform: translateX(100%); transition: transform 0.5s ease; }
.btn-connect i { font-size: 14px; }

.nav-hamburger { display: none; background: none; border: none; color: #00FFFF; font-size: 18px; cursor: pointer; padding: 8px; }
.nav-mobile { display: none; }

/* ========== HERO (shared) ========== */
.hero { text-align: center; padding: 40px 24px 28px; position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(16px, 3.5vw, 28px); color: #00FFFF;
    text-shadow: 0 0 20px rgba(0,255,255,0.5), 3px 3px 0 #000;
    margin-bottom: 12px;
}
.hero h1 span { color: #FFD700; text-shadow: 0 0 20px rgba(255,215,0,0.4), 3px 3px 0 #000; }
.hero .tagline { font-size: 12px; color: #888; letter-spacing: 1px; }

/* ========== CONTENT WRAPPER ========== */
.content { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 1; }

/* ========== SHARED CARD ========== */
.card {
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(0,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}
.card:hover { border-color: rgba(0,255,255,0.3); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,255,255,0.1); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
}

/* ========== SHARED FORM ELEMENTS ========== */
.form-label { font-family: 'Press Start 2P', cursive; font-size: 8px; color: #888; margin-bottom: 6px; display: block; letter-spacing: 0.5px; }
.form-input, .form-textarea {
    font-family: 'Space Mono', monospace; font-size: 13px; padding: 10px 12px;
    width: 100%; background: rgba(0,0,0,0.4); border: 2px solid rgba(0,255,255,0.15);
    border-radius: 4px; color: #ccc; outline: none; transition: all 0.3s;
}
.form-input:focus, .form-textarea:focus { border-color: #00FFFF; box-shadow: 0 0 12px rgba(0,255,255,0.15); }
.form-input::placeholder, .form-textarea::placeholder { color: #555; }
.form-textarea { min-height: 80px; resize: vertical; }

/* ========== SHARED BUTTONS ========== */
.btn {
    font-family: 'Press Start 2P', cursive; font-size: 9px; padding: 12px 18px;
    border: 2px solid #00FFFF; background: rgba(0,255,255,0.08); color: #00FFFF;
    border-radius: 4px; cursor: pointer; transition: all 0.2s;
    text-transform: uppercase; box-shadow: 3px 3px 0 #000;
}
.btn:hover { background: rgba(0,255,255,0.15); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 #000; }
.btn-gold { border-color: #FFD700; color: #FFD700; background: rgba(255,215,0,0.08); }
.btn-gold:hover { background: rgba(255,215,0,0.15); }
.btn-green { border-color: #00FF00; color: #00FF00; background: rgba(0,255,0,0.08); }
.btn-green:hover { background: rgba(0,255,0,0.15); }
.btn-sm { padding: 8px 12px; font-size: 7px; }
.btn-full { width: 100%; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .nav-mobile.open {
        display: flex; flex-direction: column;
        position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
        padding: 20px; gap: 2px; z-index: 999;
        animation: slideDown 0.25s ease; overflow-y: auto;
    }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
    .nav-mobile .nav-link { padding: 14px 16px; font-size: 10px; border-bottom: 1px solid rgba(0,255,255,0.05); }
    .nav-mobile .nav-link:last-child { border-bottom: none; }
    .hero { padding: 28px 16px 18px; }
    .hero h1 { font-size: clamp(14px, 3vw, 20px); }
    .content { padding: 0 12px 40px; }
}
@media (max-width: 480px) {
    .nav { padding: 10px 12px; }
    .nav-logo { width: 26px; height: 26px; }
    .nav-name { font-size: 9px; }
    .hero h1 { font-size: clamp(12px, 3vw, 16px); }
    .btn-connect span { display: inline !important; font-size: 8px; letter-spacing: 0.5px; }
    .btn-connect { padding: 8px 12px; font-size: 8px; min-width: 130px; min-height: 36px; justify-content: center; }
    .btn-connect.connected { min-width: 170px; padding: 8px 14px; }
    .btn-connect.connected span { font-size: 9px; letter-spacing: 0.5px; }
    .btn-connect i { font-size: 13px; }
    .btn-connect:not(.connected) { box-shadow: 0 0 10px rgba(255,99,71,0.6), 3px 3px 0 #000; border: 2px solid rgba(255,99,71,0.5); }
}
