/* 
BlockZone Lab - Clean Responsive Framework
Preserving your exact UI/UX with mobile-first design
*/

:root {
    /* Your Proven Color Palette */
    --primary: #00ff41;
    --bg-primary: #0a0a0a;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    
    /* Neon Gaming Colors */
    --neon-cyan: #00d4ff;
    --neon-green: #00ff00;
    --neon-red: #ff6b6b;
    --neon-gold: #ffd700;
    --dark-blue-1: #1a1a2e;
    --dark-blue-2: #16213e;
    --dark-blue-3: #0f3460;
    
    /* Professional Frame System */
    --frame-padding: 2rem;
    --frame-border-radius: 12px;
    --frame-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --frame-border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Responsive Breakpoints */
    --mobile-max: 768px;
    --tablet-max: 1024px;
    --desktop-min: 1025px;
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Professional Frame System - Your Style */
.professional-frame {
    background: rgba(26, 26, 46, 0.95);
    border: var(--frame-border);
    border-radius: var(--frame-border-radius);
    box-shadow: var(--frame-shadow);
    backdrop-filter: blur(10px);
    padding: var(--frame-padding);
    margin: 1rem auto;
    max-width: min(90vw, 800px);
    position: relative;
}

.professional-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green), var(--neon-gold));
    border-radius: var(--frame-border-radius) var(--frame-border-radius) 0 0;
}

/* Viewport-Friendly Container System */
.viewport-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* Account for fixed navbar */
}

.content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    :root {
        --frame-padding: 1.5rem;
    }
    
    .professional-frame {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .content-area {
        padding: 1rem 0.5rem;
    }
    
    /* Mobile Navigation Adjustments */
    .navbar-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobile Hero Branding */
    .hero-brand-letter {
        width: 40px !important;
        height: 40px !important;
        font-size: 48px !important;
    }
    
    .hero-brand-letter:nth-child(6) {
        font-size: 52px !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet optimizations */
    .professional-frame {
        max-width: min(85vw, 700px);
    }
}

@media (min-width: 1025px) {
    /* Desktop optimizations */
    .professional-frame {
        max-width: min(80vw, 900px);
    }
}

/* Game Canvas Responsive Container */
.game-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 2/3;
}

.game-canvas {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Button System - Your Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-neon { color: var(--neon-cyan); }
.text-gold { color: var(--neon-gold); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
