/*
Theme Name: Gaming Blurry Theme
Theme URI: https://example.com/gaming-blurry-theme
Author: Your Name
Author URI: https://example.com
Description: A modern, black, blurry, gaming-style WordPress theme with glassmorphism and theme switcher.
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Tags: gaming, blurry, dark, responsive, seo
Text Domain: gaming-blurry-theme
*/

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, rgba(50,50,50,0.8), rgba(30,30,30,0.9));
    margin: 0;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme Modes */
body.light-mode {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    color: #212121;
}

body.dark-mode {
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95));
    color: #fff;
}

header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 2rem;
}

header .site-title a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav .nav-links li a {
    color: #fff;
    text-decoration: none;
    position: relative;
}

.main-nav .nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #00f0ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav .nav-links li a:hover::after {
    transform: scaleX(1);
}

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem;
}

.material-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#theme-switcher {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
}

.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
    }

    .main-nav.active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 4px;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader .loader {
    border: 4px solid #00f0ff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.home .material-card h2 a {
    color: var(--title-color);
}

/* fallback for when JS isn’t available */
:root {
    --title-color: #fff;
}
