/* WordDig.Online - Universal Game Style CSS */
/* Apply to all pages for consistent pixel art game aesthetic */

/* Import Pixel Font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Pixel background animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    animation: scrollBg 20s linear infinite;
    pointer-events: none;
}

@keyframes scrollBg {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

body {
    background: #1a1a2e !important;
    color: #fff !important;
    font-family: 'Courier New', monospace;
}

/* Game-style Navigation */
nav {
    background: rgba(40, 40, 60, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #8b7355 !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.3) !important;
    padding: 1rem 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    padding: 0 1rem !important;
    margin: 0 !important;
}

nav li {
    margin: 0 !important;
}

nav a {
    text-decoration: none !important;
    color: #ffd700 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    padding: 0.8rem 1.5rem !important;
    background: rgba(60, 60, 80, 0.9) !important;
    border: 3px solid #8b7355 !important;
    border-radius: 0 !important;
    box-shadow:
        3px 3px 0 rgba(0,0,0,0.5),
        inset 0 0 0 2px rgba(255,215,0,0.2) !important;
    transition: all 0.1s !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

nav a:hover {
    background: rgba(255, 215, 0, 0.3) !important;
    transform: translate(-2px, -2px) !important;
    box-shadow:
        5px 5px 0 rgba(0,0,0,0.5),
        inset 0 0 0 2px rgba(255,215,0,0.4) !important;
}

nav a:active {
    transform: translate(1px, 1px) !important;
    box-shadow:
        2px 2px 0 rgba(0,0,0,0.5),
        inset 0 0 0 2px rgba(255,215,0,0.2) !important;
}

/* Footer - Game Credits Style */
footer {
    background: rgba(26, 26, 46, 0.98) !important;
    color: #aaa !important;
    text-align: center;
    padding: 2rem !important;
    border-top: 4px solid #8b7355 !important;
    box-shadow: 0 -4px 0 rgba(0,0,0,0.5) !important;
    margin-top: 4rem;
}

footer p {
    color: #aaa !important;
    margin: 0.5rem 0;
}

footer a {
    color: #ffd700 !important;
    text-decoration: none !important;
    transition: all 0.2s;
    font-weight: bold;
}

footer a:hover {
    color: #ffed4e !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Pixel font for headings */
h1, h2, h3, .pixel-text {
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    image-rendering: pixelated;
    line-height: 1.5 !important;
}

/* Game-style sections */
section {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    nav a {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
    }
}

/* Floating particles effect */
@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.particle {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 999;
    animation: float-particle 15s linear infinite;
}
