/* Kontext Lora Gaming Hub - Main Stylesheet */

/* CSS Variables - Neon Gaming Theme */
:root {
  /* Primary Colors */
  --primary: #00ff88;        /* Neon Green */
  --primary-dark: #00e67a;   /* Dark Neon Green */
  --primary-light: #33ff99;  /* Light Neon Green */
  
  /* Secondary Colors */
  --secondary: #1e1e2e;      /* Very Dark */
  --secondary-light: #2a2a3a; /* Dark */
  
  /* Accent Colors */
  --accent: #ff0080;         /* Neon Pink */
  --accent-dark: #e6006b;    /* Dark Neon Pink */
  
  /* Background Colors */
  --bg-primary: #0d1117;     /* Almost Black */
  --bg-secondary: #161b22;   /* Dark Card */
  --bg-tertiary: #21262d;    /* Hover Dark */
  
  /* Text Colors */
  --text-primary: #f0f6fc;   /* Almost White */
  --text-secondary: #8b949e; /* Gray Text */
  --text-muted: #6e7681;     /* Muted Gray */
  
  /* Status Colors */
  --success: #2ea043;        /* GitHub Green */
  --warning: #fb8500;        /* Neon Orange */
  --error: #f85149;          /* Neon Red */
  --info: #58a6ff;           /* Neon Blue */
  
  /* Border & Shadows */
  --border: #30363d;
  --shadow: rgba(0, 255, 136, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* Typography */
h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    margin-bottom: 0.875rem;
    color: var(--text-primary);
}

h3 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h4 { 
    font-size: 1.25rem; 
    font-weight: 500; 
    margin-bottom: 0.625rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 5px var(--primary);
}

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

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Hero Section */
.hero {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    }
    50% {
        text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    }
}

/* Featured Game */
.featured-game {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-showcase {
    text-align: center;
}

.game-frame {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 30px var(--shadow);
}

.game-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow);
}

.btn-secondary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 128, 0.4);
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Game Card */
.game-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.game-card-content {
    padding: 1.5rem;
}

.game-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.game-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.game-rating {
    color: var(--warning);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.play-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    box-shadow: 0 0 10px var(--primary);
}

/* Blog Preview */
.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1);
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--primary);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-controls {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

/* Game Description */
.game-description {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--shadow);
}