/* =========================
   Variáveis de tema
   ========================= */
:root {
  --bg: #0f0f14;
  --text: #ffffff;
  --accent: #5b6cff;
  --accent-light: #7c8cff;
  --accent-hover: #4a5aee;
  --card: #161622;
  --card-hover: #1a1a2e;
  --border: #2a2a40;
  --border-light: #3a3a55;
  --success: #00c853;
  --warning: #ffd600;
  --error: #ff5252;
  --gradient: linear-gradient(135deg, #5b6cff 0%, #7c8cff 100%);
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 10px 0;
  font-weight: 600;
}

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

/* =========================
   Header
   ========================= */
.header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.header:hover {
  box-shadow: 0 6px 30px rgba(91, 108, 255, 0.15);
}

.header h1 {
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Botões
   ========================= */
.btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: var(--accent-light);
  color: #fff;
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #4a5aee 0%, #6b7cee 100%);
  box-shadow: 0 4px 15px rgba(91, 108, 255, 0.4);
}

.btn.wiki {
  background: transparent;
  border: 1px solid #ffd600;
  color: #ffd600;
}

.btn.wiki:hover {
  background: #ffd600;
  color: #000;
}

.btn.support {
  background: transparent;
  border: 1px solid var(--success);
  color: var(--success);
}

.btn.support:hover {
  background: var(--success);
  color: #fff;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  width: 100%;
  max-width: 1200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #161622 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  min-width: 100px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(91, 108, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: #888;
}

/* =========================
   Latest News Section
   ========================= */
.latest-news {
  width: 100%;
  max-width: 1200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.4rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(91, 108, 255, 0.15);
}

.news-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.news-badge.update {
  background: rgba(91, 108, 255, 0.2);
  color: var(--accent);
}

.news-badge.event {
  background: rgba(0, 200, 83, 0.2);
  color: var(--success);
}

.news-badge.maintenance {
  background: rgba(255, 214, 0, 0.2);
  color: var(--warning);
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.news-card p {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.news-date {
  font-size: 0.8rem;
  color: #666;
}

/* =========================
   Games Section
   ========================= */
.games-section {
  width: 100%;
  max-width: 1200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.games-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(91, 108, 255, 0.2);
}

.game-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.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: 20px;
}

.game-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.game-info p {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: rgba(91, 108, 255, 0.15);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 100px;
}

/* =========================
   About Section
   ========================= */
.about {
  width: 100%;
  max-width: 1200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.about h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.about p {
  color: #aaa;
  margin-bottom: 16px;
}

.about .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about .skills span {
  background: var(--gradient);
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* =========================
   Main Layout
   ========================= */
.main {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* =========================
   Sidebar
   ========================= */
.sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sidebar .links .btn {
  justify-content: flex-start;
}

.sidebar input,
.sidebar textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
  font-family: inherit;
}

.sidebar input:focus,
.sidebar textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.1);
}

/* =========================
   Footer
   ========================= */
.footer {
  width: 100%;
  max-width: 1200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s ease;
}

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

.copyright {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* =========================
   Modal
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.dialog {
  background: var(--card);
  padding: 16px;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
}

.dialog .btn {
  margin-bottom: 12px;
}

.dialog img {
  width: 100%;
  border-radius: 10px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  
  .header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .header nav {
    justify-content: center;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .stat-card {
    min-width: 80px;
    padding: 16px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .card-actions .btn {
    width: 100%;
  }
}

/* =========================
   Animations
   ========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.latest-news,
.games-section,
.about,
.sidebar,
.footer {
  animation: fadeIn 0.5s ease forwards;
}

.latest-news {
  animation-delay: 0.1s;
}

.games-section {
  animation-delay: 0.2s;
}

.about {
  animation-delay: 0.3s;
}

