:root {
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-solid: #667eea;
  --secondary: #6b7280;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --accent: #06b6d4;
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
}

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

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

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

.header {
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

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

.nav-logo h1 a {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

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

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

.nav-menu a:hover {
  color: var(--primary-solid);
}

.main-content {
  padding-top: 0;
}

.hero-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.game-iframe-container {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.game-iframe-container iframe {
  width: 100%;
  height: 500px;
  border: none;
}

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

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--primary-solid);
  transform: translateY(-2px);
}

section {
  padding: 4rem 0;
}

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

.about-game {
  background: var(--surface);
}

.about-game p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  color: var(--text-light);
}

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

.feature-item {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-item h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

.step-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-item h3 {
  color: var(--text);
  margin: 1rem 0;
  font-size: 1.3rem;
}

.tips-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tips-list h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.tips-list ul {
  list-style: none;
  padding: 0;
}

.tips-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
}

.tips-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.tips-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.community {
  background: var(--surface);
}

.community p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

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

.stat-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 2.5rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-light);
  font-weight: 600;
}

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

.tutorial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tutorial-card h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

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

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

.tools-preview {
  background: var(--surface);
}

.tools-preview p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

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

.tool-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

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

.tool-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.tool-link:hover {
  transform: translateY(-2px);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  padding: 2rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.faq-item h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.6;
}

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

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

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

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

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

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

.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-solid);
}

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

.footer-bottom a {
  color: var(--primary-solid);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .tips-content {
    grid-template-columns: 1fr;
  }
  
  .game-iframe-container iframe {
    height: 300px;
  }
  
  section {
    padding: 2rem 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .feature-grid,
  .steps-grid,
  .tutorial-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Tools Page Specific Styles */
.tools-grid-section {
  background: var(--background);
}

.tool-card.featured {
  border: 2px solid var(--primary-solid);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

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

.tool-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--success);
}

.username-generator {
  margin-top: 1.5rem;
}

.generated-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: none;
}

.username-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.username-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-solid);
}

.copy-btn {
  padding: 0.5rem 1rem;
  background: var(--success);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.stats-preview {
  margin-top: 1.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.stat-value {
  font-weight: bold;
  color: var(--primary-solid);
}

.map-selector {
  margin-top: 1.5rem;
}

.map-selector select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.map-info {
  background: var(--surface);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: none;
  text-align: left;
}

.map-info h4 {
  color: var(--primary-solid);
  margin-bottom: 0.5rem;
}

.map-info h5 {
  color: var(--text);
  margin: 1rem 0 0.5rem 0;
  font-size: 0.9rem;
}

.map-info ul {
  margin: 0;
  padding-left: 1rem;
}

.map-info li {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.customizer-preview {
  margin-top: 1.5rem;
}

.character-preview {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.character-avatar {
  font-size: 4rem;
  text-align: center;
}

.customizer-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.customize-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-solid);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.customize-btn:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.timer-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.timer-controls input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  width: 100px;
  text-align: center;
}

.timer-display {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-solid);
  background: var(--surface);
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  min-width: 120px;
  text-align: center;
}

.achievements-preview {
  margin-top: 1.5rem;
}

.achievement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.achievement-name {
  color: var(--text);
  font-weight: 500;
}

.achievement-progress {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--success);
  color: white;
}

.achievement-progress:contains("⏳") {
  background: var(--warning);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-card {
    margin-bottom: 1rem;
  }
  
  .username-result {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .customizer-controls {
    flex-direction: column;
  }
  
  .timer-controls {
    gap: 0.5rem;
  }
  
  .timer-display {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Accessibility improvements */
.btn:focus,
.copy-btn:focus,
.customize-btn:focus {
  outline: 2px solid var(--primary-solid);
  outline-offset: 2px;
}

/* Loading states */
.tool-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.tool-card.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-solid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Animation improvements */
.tool-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Blog Post Specific Styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

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

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

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-meta time,
.post-meta .category,
.post-meta .read-time {
  padding: 0.25rem 0.75rem;
  background: var(--surface);
  border-radius: 15px;
  border: 1px solid var(--border);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  line-height: 1.8;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  border-left: 4px solid var(--primary-solid);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.table-of-contents {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.table-of-contents h2 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.table-of-contents ol {
  list-style: none;
  counter-reset: toc-counter;
  padding-left: 0;
}

.table-of-contents li {
  counter-increment: toc-counter;
  margin-bottom: 0.5rem;
}

.table-of-contents li::before {
  content: counter(toc-counter) ". ";
  color: var(--primary-solid);
  font-weight: bold;
}

.table-of-contents a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-solid);
}

.post-content section {
  margin-bottom: 3rem;
}

.post-content h2 {
  color: var(--primary-solid);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.post-content h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.post-content h4 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.highlight-box,
.tip-box,
.strategy-box,
.pro-tip-box,
.final-tips-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-solid);
  margin: 2rem 0;
}

.tip-box {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-left-color: var(--success);
}

.strategy-box {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-left-color: var(--warning);
}

.content-image {
  margin: 2rem 0;
  text-align: center;
}

.content-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
}

.video-embed,
.video-section {
  margin: 3rem 0;
  text-align: center;
}

.youtube-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-description {
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: left;
  margin-top: 1rem;
}

.tips-list {
  margin: 3rem 0;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tip-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.tip-content {
  flex: 1;
}

.tip-content h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
}

.tip-detail {
  background: var(--surface);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
}

.tip-image {
  margin: 1rem 0;
}

.tip-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bonus-section,
.practice-recommendations,
.conclusion-section {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  border: 1px solid var(--border);
}

.team-tips,
.practice-schedule {
  margin-top: 1.5rem;
}

.practice-day {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-solid);
}

.final-encouragement {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.share-section {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid var(--border);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  color: var(--primary-solid);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  border-color: var(--primary-solid);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Industry Analysis Specific Styles */
.trend-overview,
.stats-grid,
.trend-section,
.technology-trends,
.monetization-trends,
.community-trends,
.future-predictions,
.developer-advice {
  margin: 3rem 0;
}

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

.stat-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

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

.stat-card h3 {
  font-size: 2.5rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.trend-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.trend-details {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

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

.game-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-solid);
}

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

.tech-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

.prediction-item {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
}

.success-factors {
  margin-top: 2rem;
}

.factor {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--success);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .post-header h1 {
    font-size: 2rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tip-item {
    flex-direction: column;
    text-align: center;
  }
  
  .tip-number {
    margin: 0 auto 1rem auto;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-next {
    text-align: center;
  }
  
  .youtube-video {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile */
  }
  
  .stats-grid,
  .game-cards {
    grid-template-columns: 1fr;
  }
}

/* Dark mode support preparation */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
  }
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.fade-out {
  opacity: 0;
  transform: translateX(100%);
}

.notification-success {
  background: var(--success);
}

.notification-error {
  background: var(--error);
}

.notification-warning {
  background: var(--warning);
}

.notification-info {
  background: var(--accent);
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation classes */
.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header scroll effects */
.header {
  transition: transform 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Form error states */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Tooltip styles */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10001;
  pointer-events: none;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Loading spinner */
.iframe-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary-solid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Social sharing buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-btn {
  padding: 0.5rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn[data-platform="twitter"] {
  background: #1da1f2;
}

.share-btn[data-platform="facebook"] {
  background: #4267b2;
}

.share-btn[data-platform="reddit"] {
  background: #ff4500;
}

.share-btn[data-platform="discord"] {
  background: #7289da;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .nav-menu.mobile-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}