/* Midnight Arena Theme */

/* Variables */
:root {
  --primary: #00c853;
  --secondary: #ffd600;
  --bg-dark: #0e1117;
  --bg-card: #161b22;
  --text-light: #e0e0e0;
  --text-muted: #aaa;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}
a {
  color: var(--secondary);
  text-decoration: none;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.header {
  background-color: var(--bg-card);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}
.header-actions {
  display: flex;
  gap: 1rem;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-card);
  padding: 1rem;
  border-top: 1px solid #1f2937;
}
.mobile-menu.show {
  display: flex;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(to right, var(--bg-card), var(--bg-dark));
  padding: 1rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.1);
}
.stat-box h3 {
  font-size: 1rem;
  color: var(--primary);
}
.stat-box p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Main Content */
.main {
  padding: 1rem 0;
}
.section {
  margin: 0.7rem 0;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}
.date {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 1rem 0;
}
#today-predictions,
#winning-history {
  background-color: var(--bg-card);
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,247,255,0.05);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  vertical-align: middle;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.50rem;
  font-weight: 400;
  line-height: 1.2;
  /* text-transform: uppercase; */
  white-space: nowrap;
}
.status-won {
  background-color: #4caf50;
  color: #ffffff;
}
.status-lost {
  background-color: #9e9e9e;
  color: #ffffff;
}
.status-pending {
  background-color: #0acde3;
  color: #ffffff;
}
.status-postponed {
  background-color: #c9f128;
  color: #ffffff;
}

/* Table Styling */
.table-wrapper {
  overflow-x: auto;
  padding-top: 0.5rem;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.05);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #1a1f2b;
  color: var(--text-light);
  font-size: 0.80rem;
  border-radius: 12px;
  overflow: hidden;
}
thead {
  background-color: var(--primary);
  color: var(--bg-dark);
}
thead th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}
thead th:first-child {
  border-top-left-radius: 12px;
}
thead th:last-child {
  border-top-right-radius: 12px;
}
tbody tr {
  border-bottom: 1px solid #2c2f3f;
  transition: background 0.3s ease;
}
tbody tr:hover {
  background-color: #2a2d3f;
}
tbody td {
  padding: 0.75rem 1rem;
  text-align: center;
}
tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* User Info Card */
.user-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.user-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Buttons */
.btn-outline,
.btn-subscribe,
.btn-admin,
.btn-logout {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
  display: inline-block;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
}
.btn-subscribe {
  background-color: var(--secondary);
  color: var(--bg-dark);
  border: none;
}
.btn-subscribe:hover {
  background-color: #ffea00;
}
.btn-admin {
  background-color: #2962ff;
  color: #fff;
  border: none;
}
.btn-admin:hover {
  background-color: #0039cb;
}
.btn-logout {
  background-color: #d50000;
  color: #fff;
  border: none;
}
.btn-logout:hover {
  background-color: #b71c1c;
}

/* Footer */
.footer {
  background-color: var(--bg-card);
  padding: 2rem 0;
  border-top: 1px solid #1f2937;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-left {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a {
  margin: 0 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .header-actions {
    display: none;
  }
  .user-info {
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.05);
    gap: 0.75rem;
  }
  .user-name {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .user-info a,
  .user-info button {
    width: 100%;
  }
  table {
    font-size: 0.55rem;
  }
  thead th, tbody td {
    padding: 0.5rem;
  }
}
