/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.logo span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 0.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Navigation Dropdown */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px; /* below header */
  right: 20px;
  background: #1e40af;
  width: 220px;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  gap: 1rem;
}

.nav-menu.open .nav-link {
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.nav-menu.open .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  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;
}

.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;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: #1e40af;
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #1e40af;
}

/* Results Section */
.results-section {
  padding: 120px 0 80px;
  background: white;
}

.results-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1e40af;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.card-header h3 {
  font-size: 1.5rem;
  color: #1e40af;
  font-weight: 700;
}

.draw-date {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  color: #64748b;
}

/* Added draw info styling */
.draw-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.draw-number {
  background: #1e40af;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

/* Updated winning numbers layout with proper labels */
.winning-numbers {
  margin-bottom: 1.5rem;
}

.numbers-section {
  margin-bottom: 1rem;
}

.numbers-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.numbers-container {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.additional-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.additional-label {
  font-weight: 600;
  color: #374151;
  font-size: 1.1rem;
}

.number-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.number-ball.additional {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.prize-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: #f8fafc;
  border-radius: 6px;
}

.prize-amount {
  font-weight: 700;
  color: #059669;
  font-size: 1.1rem;
}

/* 4D Results */
.four-d-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prize-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.prize-label {
  font-weight: 600;
  color: #64748b;
}

.four-d-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  font-family: "Courier New", monospace;
}

/* Multi numbers for Starter/Consolation */
.multi-row {
  flex-direction: column;
}

.multi-numbers {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Exactly 5 columns, auto rows (2 rows when 10 numbers) */
.five-cols {
  grid-template-columns: repeat(5, 1fr);
}

/* How to Play Section */
.how-to-play {
  padding: 120px 0 80px;
  background: #f8fafc;
}

.how-to-play h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1e40af;
}

.game-info {
  max-width: 900px;
  margin: 0 auto;
}

.rule-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.rule-card h4 {
  color: #1e40af;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.rule-card h5 {
  color: #374151;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rule-card ol {
  padding-left: 1.5rem;
}

.rule-card li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.rule-card ul {
  padding-left: 1.5rem;
}

.bet-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.bet-type {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #1e40af;
}

.draw-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.draw-day {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #e2e8f0;
}

/* Search Section */
.search-section {
  padding: 100px 0 60px;
  background: white;
}

.search-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e40af;
}

.search-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input,
.search-select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  min-width: 150px;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: #1e40af;
}

.search-results {
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

.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: #f9fafb;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .result-cards {
    grid-template-columns: 1fr;
  }

  .numbers-container {
    justify-content: center;
  }

  .number-ball {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .search-form {
    flex-direction: column;
    align-items: center;
  }

  .search-input,
  .search-select {
    width: 100%;
    max-width: 300px;
  }

  .bet-types {
    grid-template-columns: 1fr;
  }

  .draw-schedule {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .results-section,
  .how-to-play {
    padding: 60px 0;
  }

  .result-card {
    padding: 1.5rem;
  }

  .rule-card {
    padding: 1.5rem;
  }
}
