/* ================================================== */
/* KontextLora.cc - Gaming Website Styles */
/* Color Scheme: Blue Gaming Theme */
/* ================================================== */

/* CSS Variables */
:root {
  --primary: #0066cc;
  --secondary: #004499;
  --accent: #00ccff;
  --background: #f8f9fa;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #6c757d;
  --border: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

/* 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', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ================================================== */
/* HEADER & NAVIGATION */
/* ================================================== */

.header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--background);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

/* ================================================== */
/* BUTTONS */
/* ================================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

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

.btn-play {
  background: var(--success);
  color: var(--white);
  border: 2px solid var(--success);
  font-size: 0.9rem;
  padding: 8px 16px;
}

.btn-play:hover {
  background: #218838;
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* ================================================== */
/* MAIN CONTENT */
/* ================================================== */

.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ================================================== */
/* HERO SECTION */
/* ================================================== */

.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.hero-buttons .btn:hover {
  background: transparent;
  color: var(--white);
}

/* ================================================== */
/* SECTIONS */
/* ================================================== */

section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

/* ================================================== */
/* FEATURED GAMES */
/* ================================================== */

.featured-games {
  background: var(--white);
}

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

.game-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.game-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.game-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.game-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ================================================== */
/* CATEGORIES */
/* ================================================== */

.categories {
  background: var(--background);
}

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

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-3px);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.category-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ================================================== */
/* BLOG PREVIEW */
/* ================================================== */

.blog-preview {
  background: var(--white);
}

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

.blog-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-date {
  color: var(--text-light);
}

.blog-category {
  color: var(--primary);
  font-weight: 600;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-link:hover {
  text-decoration: underline;
}

/* ================================================== */
/* STATS SECTION */
/* ================================================== */

.stats {
  background: var(--gradient);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ================================================== */
/* FOOTER */
/* ================================================== */

.footer {
  background: var(--text);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

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

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* ================================================== */
/* GAME PAGE STYLES */
/* ================================================== */

.game-page {
  padding: 2rem 0;
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.game-info-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.game-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.game-container {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
}

.game-iframe {
  width: 100%;
  max-width: 800px;
  height: 600px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
}

.game-description {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
}

.game-description h2,
.game-description h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.game-description h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.game-description h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.game-description p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.game-description ol,
.game-description ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.game-description ol li,
.game-description ul li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.related-games {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
}

.related-games h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

/* ================================================== */
/* BLOG STYLES */
/* ================================================== */

.blog-page {
  padding: 2rem 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.article {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.article-content {
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  color: var(--text);
  margin: 2rem 0 1rem;
}

.article-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ================================================== */
/* RESPONSIVE DESIGN */
/* ================================================== */

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px var(--shadow);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    padding: 1rem;
    display: block;
    margin: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .game-iframe {
    height: 400px;
  }
  
  .game-info-bar {
    flex-direction: column;
    align-items: center;
  }
  
  .article {
    padding: 2rem 1.5rem;
    margin: 0 10px 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .game-container {
    padding: 1rem;
  }
  
  .game-iframe {
    height: 300px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}