* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c000ff;
  --primary-dark: #9900cc;
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f5f5f5;
  --border: #e0e0e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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


/* Navigation */
.navbar {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

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

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

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

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

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

/* About Section */
.about {
  padding: 80px 0;
}

.about h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.about-content a {
  color: var(--primary);
}

.about-content a:hover {
  color: var(--primary-dark);
}

.about-content a:visited {
  color:  var(--primary-dark);
}


/* Page Header */
.page-header {
  padding: 60px 0;
  text-align: center;
  background: var(--bg-light);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Games Grid */
.games-grid {
  padding: 60px 0;
}

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

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

.game-card:hover {
  transform: translateY(-5px);
}

.game-image {
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.game-card h3 {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 1.5rem;
}

.game-card p {
  padding: 0 1.5rem 1rem;
  color: var(--text-light);
}

.game-card .btn {
  margin: 0 1.5rem 1.5rem;
}

/* Blog Filters */
.blog-filters {
  padding: 2rem 0;
  background: var(--bg-light);
}

.blog-filters .container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  background: var(--bg);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Blog Posts */
.blog-posts {
  padding: 60px 0;
}

.blog-post {
  background: var(--bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.blog-post.hidden {
  display: none;
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.post-meta .date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-meta .category {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.blog-post p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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


/* Articles content */
.article-content ol {
  margin-bottom: 0.5rem;
}

.article-content li {
  list-style-position: inside;
  color: var(--text-light);
}

.article-content li::marker {
  color: var(--primary);
}

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

.article-content h1 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.article-content h2 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.article-content a {
  color: var(--primary);
}

.article-content a:hover {
  color: var(--primary-dark);
}

.article-content a:visited {
  color:  var(--primary-dark);
}

.article-content code {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    border-radius: 0.5em;
    padding: 4px 5px 6px;
    white-space: nowrap;
}

.article-content pre {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    border-radius: 0.5em;
    padding: 4px 5px 6px;
    overflow-x: auto;
}

/* Footer */
footer {
  background: var(--text);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .games-grid .container {
    grid-template-columns: 1fr;
  }
}
