/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a12;
    color: #ffffff; /* Brighter Text */
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION (Fixed Mobile Overlap) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #0a0a12; /* Solid black to hide what's behind */
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4facfe;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

/* --- HERO SECTION --- */
header {
    padding: 60px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a12 100%);
}

h1 { font-size: 2.5rem; margin-bottom: 15px; }
.highlight { color: #4facfe; }

/* --- GAME SECTION --- */
.container {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

canvas {
    background: #000;
    border: 2px solid #333;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
    margin-top: 20px;
    max-width: 100%;
    touch-action: none; /* Mobile Touch Fix */
}

#ui-layer div { position: absolute; color: white; font-weight: bold; pointer-events: none; }
#score-board { top: 10px; left: 10px; font-size: 18px; }
.game-wrapper { position: relative; display: inline-block; width: 100%; }
#start-screen, #game-over-screen { top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.9); padding: 20px; width: 80%; border-radius: 10px; pointer-events: auto; cursor: pointer; }

/* --- BLOG CARDS (The "Blue Book" Look) --- */
.blog-card {
    background: #161625;
    margin: 25px 0;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    border-left: 6px solid #4facfe; /* Thick Blue Line */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tag {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.blog-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #fff;
}

.blog-card p {
    color: #ddd; /* Softer white for reading */
}

/* FORCE LINK COLORS (Fixes the dark blue text issue) */
a.read-more, .nav-links a:hover {
    color: #4facfe !important;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

a.read-more:hover {
    text-decoration: underline;
    color: #fff !important;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    color: #666;
    border-top: 1px solid #222;
    margin-top: 40px;
}

/* 📱 MOBILE FIXES (No Squashing!) */
@media (max-width: 600px) {
    nav {
        flex-direction: column; /* Stack logo on top of menu */
        padding: 15px;
    }
    
    .nav-links {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
        gap: 20px;
        font-size: 1.1rem; /* Bigger text for fingers */
    }

    h1 { font-size: 1.8rem; }
    
    .blog-card {
        padding: 20px;
        border-left: 4px solid #4facfe;
    }
}