/* Kontext LoRA Gaming - Neon Gaming Theme CSS */
: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);
  --glow: rgba(0, 255, 136, 0.3);
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
}

/* Typography Scale */
h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
}
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; 
    color: var(--text-secondary);
}

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(--glow);
}

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

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

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 0 15px var(--shadow);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--shadow);
}

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

/* Cards */
.game-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--glow);
    border-color: var(--primary);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.game-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.game-category {
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Game Container */
.game-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-frame {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.game-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: var(--bg-primary);
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Featured Game Section */
.featured-game {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--secondary) 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 40px var(--glow);
    position: relative;
    overflow: hidden;
}

.featured-game::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.featured-game > * {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Section */
.blog-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(255, 0, 128, 0.2);
}

.blog-title {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--accent);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary);
}

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

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

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

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

/* Breadcrumbs */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 8px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    color: var(--text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .game-frame iframe {
        height: 400px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .featured-game {
        padding: 20px;
    }
    
    .game-frame iframe {
        height: 300px;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}