/* ═══════════════════════════════════════════════════════════
   BLINKO'S ARCADE - Shared Styles
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;700;900&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    min-height: 100vh;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    padding-top: 36px;
}

/* ─── Floating Header ──────────────────────────────────────── */
#arcade-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(90deg, #0a0a0a, #1a1a2e, #0a0a0a);
    border-bottom: 1px solid #ff00ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 11px;
    z-index: 99999;
}

#arcade-header a {
    text-decoration: none;
    transition: color 0.2s;
}

#arcade-header a:hover {
    color: #00ffff !important;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-nav .nav-home { color: #00ffff; font-weight: bold; }
.header-nav .nav-link { color: #ff00ff; }

#auth-area {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ─── Background Effects ───────────────────────────────────── */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.bg-grid.magenta {
    background-image: 
        linear-gradient(rgba(255,0,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,255,0.03) 1px, transparent 1px);
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ─── Particles ────────────────────────────────────────────── */
.particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.6;
}

.particle.magenta { background: #ff00ff; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ─── Typography ───────────────────────────────────────────── */
.font-retro { font-family: 'Press Start 2P', monospace; }

.title-retro {
    font-family: 'Press Start 2P', monospace;
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-glow {
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px #ff00ff); }
    to { filter: drop-shadow(0 0 40px #00ffff); }
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #ff00ff;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 20px #ff00ff;
}

/* ─── Cards ────────────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,255,255,0.2);
}

.card-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.card-content { padding: 25px; }

.card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #00ffff;
}

.card-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.card-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255,0,255,0.2);
    border-radius: 20px;
    font-size: 0.65rem;
    color: #ff00ff;
    margin-top: 15px;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #00ffff;
    border-radius: 5px;
    background: transparent;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #00ffff;
    color: #0a0a0a;
    box-shadow: 0 0 30px #00ffff;
}

.btn.active {
    background: #00ffff;
    color: #0a0a0a;
    box-shadow: 0 0 20px #00ffff;
}

.btn-magenta { border-color: #ff00ff; color: #ff00ff; }
.btn-magenta:hover, .btn-magenta.active {
    background: #ff00ff;
    color: #0a0a0a;
    box-shadow: 0 0 30px #ff00ff;
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav-inline {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

/* ─── Footer ───────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 0.7rem;
}

footer .heart { color: #ff00ff; }

/* ─── Utilities ────────────────────────────────────────────── */
.text-cyan { color: #00ffff; }
.text-magenta { color: #ff00ff; }
.text-green { color: #0f0; }
.text-muted { color: #666; }
.text-center { text-align: center; }
.glow-cyan { text-shadow: 0 0 20px #00ffff; }
.glow-magenta { text-shadow: 0 0 20px #ff00ff; }

/* ─── Scanlines Overlay ────────────────────────────────────── */
.scanlines {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.1) 0px,
        rgba(0,0,0,0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* ─── Animations ───────────────────────────────────────────── */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes cursorBlink {
    0%, 100% { border-color: currentColor; }
    50% { border-color: transparent; }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .title-retro { font-size: 1.5rem; }
    .section-title { font-size: 0.8rem; }
    .cards { grid-template-columns: 1fr; }
    .header-nav { gap: 10px; }
    #arcade-header { font-size: 10px; padding: 0 10px; }
}
