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

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #132442;
  --bg-card: #1a2f4d;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --border-radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.header {
  background-color: var(--bg-secondary);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

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

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Filters */
.filters {
  padding: 30px 0;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid transparent;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent-blue);
  color: white;
}

/* Main Content */
.main {
  padding: 0 0 60px;
}

.jogos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Card Styles */
.jogo-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.jogo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  /* Added background color to better display centered images */
  background-color: var(--bg-secondary);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Changed from cover to contain to show full image centered */
  object-fit: contain;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badge.ao-vivo {
  background-color: var(--accent-red);
  color: white;
  animation: pulse 2s infinite;
}

.card-badge.em-breve {
  background-color: var(--accent-blue);
  color: white;
}

.card-badge.encerrado {
  background-color: rgba(148, 163, 184, 0.9);
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.card-info-item svg {
  width: 16px;
  height: 16px;
}

.card-campeonato {
  display: inline-block;
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* Color Variations */
.jogo-card[data-cor="red"] .card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.jogo-card[data-cor="blue"] .card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.jogo-card[data-cor="green"] .card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.jogo-card[data-cor="purple"] .card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.jogo-card[data-cor="orange"] .card-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, transparent 60%);
  z-index: 1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-info {
  display: flex;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .jogos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .modal-content {
    margin: 20px;
    padding: 16px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  .hero-title {
    font-size: 28px;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
  }
}

/* Donation Modal */
.donation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  animation: fadeIn 0.3s ease-in-out;
}

.donation-modal.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.donation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.donation-content {
  position: relative;
  max-width: 550px;
  margin: 50px auto;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

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

.donation-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.donation-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.donation-header {
  text-align: center;
  margin-bottom: 30px;
}

.donation-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.donation-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donation-body {
  color: var(--text-primary);
}

.donation-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--accent-blue);
}

.donation-message strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pix-section {
  margin-bottom: 30px;
}

.pix-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-align: center;
}

.pix-key-container {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.pix-key-container input {
  flex: 1;
  background-color: var(--bg-primary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.copy-btn {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  white-space: nowrap;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-feedback {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  color: var(--accent-green);
  animation: fadeIn 0.3s ease-in-out;
}

.qrcode-section {
  text-align: center;
  margin-bottom: 20px;
}

.qrcode-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.qrcode-container {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qrcode-container img {
  display: block;
  width: 200px;
  height: 200px;
}

.qrcode-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.donation-thanks {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
  border-radius: 12px;
  margin-top: 20px;
}

/* Responsive Donation Modal */
@media (max-width: 768px) {
  .donation-content {
    margin: 20px;
    padding: 32px 24px;
  }

  .donation-header h2 {
    font-size: 24px;
  }

  .donation-message {
    font-size: 15px;
    padding: 16px;
  }

  .pix-key-container {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .donation-icon {
    font-size: 48px;
  }

  .donation-header h2 {
    font-size: 20px;
  }

  .donation-content {
    padding: 24px 16px;
  }

  .qrcode-container img {
    width: 180px;
    height: 180px;
  }
}
