/* Kontext Lora CV - Main CSS */

/* Color Scheme: 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;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { 
  font-size: 2.5rem; 
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-light);
  text-shadow: 0 0 10px var(--primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 255, 136, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(255, 0, 128, 0.1) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  50% { transform: scale(1.2); opacity: 0.1; }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary); }
  to { text-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Featured Game */
.featured-game {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.featured-game h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.game-iframe-wrapper {
  max-width: 100%;
  margin: 0 auto 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-iframe-wrapper iframe {
  max-width: 100%;
  border: none;
}

.featured-game-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.featured-game-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.game-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.game-category {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.game-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* 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;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.btn-accent {
  background: linear-gradient(45deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 128, 0.5);
}

/* Game Categories */
.categories {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(255, 0, 128, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px currentColor);
}

/* Games Grid */
.games-section {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2);
  border-color: var(--primary);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card-content {
  padding: 1.5rem;
}

.game-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.game-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.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 a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .game-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Page specific styles */
.page-header {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(255, 0, 128, 0.1) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Blog styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2);
  border-color: var(--primary);
}

.blog-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.blog-card-content {
  padding: 1.5rem;
}

/* Game page specific */
.game-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.game-frame {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-frame iframe {
  max-width: 100%;
  border: none;
}

.game-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Ad container styling */
.ad-container {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Visible state for animations */
.fade-in.visible {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Legal content styling */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.legal-content h3 {
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* Game details styling */
.game-details {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.game-details h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.game-details h3 {
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.game-details ul,
.game-details ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.game-details li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Related games section */
.related-games {
  margin-top: 3rem;
}

.related-games h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

/* Blog content styling */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-content h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.blog-content h3 {
  color: var(--primary-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.blog-content .lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}

.blog-content ul,
.blog-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
}

.blog-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.blog-content a:hover {
  color: var(--primary-light);
  text-decoration: none;
  text-shadow: 0 0 10px var(--primary);
}

.blog-content strong {
  color: var(--primary);
  font-weight: 600;
}

.blog-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-footer a {
  display: inline-block;
  background: var(--bg-tertiary);
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-footer a:hover {
  background: var(--primary);
  color: var(--bg-primary);
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .game-iframe-wrapper iframe,
  .game-frame iframe {
    width: 100%;
    height: auto;
    min-height: 600px;
  }
  
  .legal-content,
  .blog-content {
    padding: 0 1rem;
  }
  
  .game-details {
    padding: 1.5rem;
  }
  
  .blog-content {
    font-size: 1rem;
  }
  
  .blog-content .lead {
    font-size: 1.1rem;
  }
}