/* =========================================================================
   SUPER MARIO BROS - PIXEL THEME CSS
   ========================================================================= */

:root {
    /* Color Palette */
    --primary-red: #E52521;
    --primary-blue: #049CD8;
    --primary-yellow: #FBD000;
    --primary-green: #43B047;
    
    /* Light Theme */
    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --border-color: #dddddd;
    --nav-bg: rgba(255, 255, 255, 0.95);
    
    /* Spacing */
    --pixel-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-main: #0B0C10;
    --bg-card: #1F2833;
    --text-main: #FFFFFF;
    --text-muted: #C5C6C7;
    --border-color: #45A29E;
    --nav-bg: rgba(11, 12, 16, 0.95);
    --pixel-shadow: 4px 4px 0px #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.pixel-font {
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-primary { color: var(--primary-red); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--text-main);
}

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

.nav-links a {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary-red);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
}

.mobile-menu {
    display: none; /* toggled via JS */
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Pixel Buttons */
.btn-pixel {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    background-color: var(--primary-red);
    color: #fff !important;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    box-shadow: 
        inset -4px -4px 0px rgba(0,0,0,0.2), 
        inset 4px 4px 0px rgba(255,255,255,0.3);
    border: 4px solid #000;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn-pixel:active {
    transform: translateY(4px);
    box-shadow: 
        inset -2px -2px 0px rgba(0,0,0,0.2), 
        inset 2px 2px 0px rgba(255,255,255,0.3);
}

.btn-pixel.btn-sm {
    padding: 10px 15px;
    font-size: 10px;
    border-width: 2px;
}

.btn-pixel.btn-secondary { background-color: var(--primary-blue); }
.btn-pixel.btn-yellow { background-color: var(--primary-yellow); color: #000 !important; }
.btn-pixel.btn-green { background-color: var(--primary-green); }

/* Main Content Spacing */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 200px);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 4px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 14px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #000;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/mario-hero-Cjoqwzj7.png');
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--bg-main) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 48px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.8);
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
}

.hero-desc {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 16px;
}

.hero-buttons .btn-pixel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 12px 32px;
}
