/* BetVantage Pro - Master Stylesheet
 * Palette: Navy (#0B1F3A -> #122E5C), Green Accent (#00A86B -> #14C97A), Warm Brown (#7A4B2A)
 * Look & Feel: Clean Tipster Layout (mirroring bettingclosed.com) with Modern Polish
 */

:root {
  --navy-primary: #0B1F3A;
  --navy-secondary: #122E5C;
  --green-accent: #00A86B;
  --green-bright: #14C97A;
  --warm-brown: #7A4B2A;
  --bg-light: #F5F7FA;
  --bg-card: #FFFFFF;
  --text-main: #1A202C;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --navy-primary: #06101E;
  --navy-secondary: #0A192F;
  --bg-light: #0A0E1A;
  --bg-card: #121829;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --shadow-md: 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-light);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Gradients */
.bg-navy-gradient {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
}

.bg-green-gradient {
  background: linear-gradient(135deg, var(--green-accent) 0%, var(--green-bright) 100%);
}

.text-navy {
  color: var(--navy-secondary) !important;
}

[data-theme="dark"] .text-navy {
  color: #60A5FA !important;
}

.text-green {
  color: var(--green-accent) !important;
}

/* Navbar */
.navbar-betvantage {
  background: linear-gradient(135deg, #0B1F3A 0%, #122E5C 100%);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--green-accent);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.25);
}

.navbar-brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .badge-pro {
  background: linear-gradient(135deg, var(--green-accent), var(--green-bright));
  color: #0B1F3A;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link {
  color: #E2E8F0 !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem !important;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--green-bright) !important;
}

/* Pulse CTA */
.btn-pulse-vip {
  background: linear-gradient(135deg, var(--green-accent) 0%, var(--green-bright) 100%);
  color: #0B1F3A !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(20, 201, 122, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(20, 201, 122, 0);
  }
  100% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(20, 201, 122, 0);
  }
}

/* Match Tip Cards (Bettingclosed Style) */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.match-card.is-premium {
  border-left: 4px solid var(--warm-brown);
}

.match-card.is-banker {
  border-left: 4px solid var(--green-accent);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.team-box {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.team-box.away {
  text-align: right;
}

.vs-badge {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  margin: 0 0.5rem;
}

.tip-selection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}

[data-theme="dark"] .tip-selection-row {
  background: #0D1424;
}

.tip-badge {
  background: #E2E8F0;
  color: #1E293B;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tip-choice {
  font-weight: 800;
  color: var(--green-accent);
  font-size: 0.95rem;
}

.odds-badge {
  background: var(--navy-secondary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Confidence Meter */
.confidence-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meter-track {
  flex: 1;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="dark"] .meter-track {
  background: #1E293B;
}

.meter-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #F59E0B, #10B981);
}

.meter-fill.high {
  background: linear-gradient(90deg, #10B981, #00A86B);
}

/* Paywall Lock Overlay */
.paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  padding: 1.5rem;
  text-align: center;
  z-index: 10;
}

/* Results Archive Table */
.table-results {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.table-results th {
  background: var(--navy-primary);
  color: #FFFFFF;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
}

.badge-won {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.badge-lost {
  background: #FEE2E2;
  color: #B91C1C;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Admin Sidebar & Drawer */
.admin-sidebar {
  background: #0B1F3A;
  color: #E2E8F0;
  min-height: 100vh;
  padding: 1.25rem 0;
  border-right: 1px solid #1E293B;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: #94A3B8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: #122E5C;
  color: #FFFFFF;
  border-left: 4px solid var(--green-accent);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #0B1F3A;
  z-index: 1050;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 16px rgba(0,0,0,0.4);
}

.mobile-drawer.open {
  left: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1040;
  display: none;
}

.drawer-backdrop.active {
  display: block;
}

/* Unified user dashboard navigation */
.dashboard-sidebar {
  background: #fff;
  overflow: hidden;
}
.dashboard-sidebar-title {
  background: var(--navy-secondary);
  color: #fff;
  padding: .9rem 1rem;
  font-weight: 700;
}
.dashboard-sidebar-links {
  display: flex;
  flex-direction: column;
  padding: .5rem;
}
.dashboard-sidebar-link {
  display: flex;
  align-items: center;
  padding: .7rem .85rem;
  border-radius: .5rem;
  color: var(--navy-secondary);
  text-decoration: none;
  font-weight: 600;
}
.dashboard-sidebar-link:hover,
.dashboard-sidebar-link.active {
  background: rgba(0, 168, 107, .12);
  color: var(--navy-secondary);
}
.dashboard-sidebar-link.text-danger:hover {
  color: #b02a37;
  background: rgba(220, 53, 69, .1);
}


.dashboard-mobile-toggle { display: none; }
@media (max-width: 991.98px) {
  /* Account navigation lives in the left mobile/tablet drawer. */
  .dashboard-sidebar { display: none !important; }
}

.mobile-drawer-section-title { letter-spacing: .08em; }
.mobile-account-links .nav-link { color: #E2E8F0; border-radius: .5rem; padding: .6rem .75rem; }
.mobile-account-links .nav-link:hover, .mobile-account-links .nav-link:focus { background: #122E5C; color: #FFFFFF; }

.theme-dark { background: #071426; color: #E2E8F0; }
.theme-dark .card, .theme-dark .list-group-item, .theme-dark .table { background-color: #0B1F3A; color: #E2E8F0; border-color: #24466D !important; }
.theme-dark .text-muted, .theme-dark .small.text-muted { color: #AFC0D4 !important; }
.theme-dark .form-control, .theme-dark .form-select { background-color: #102A49; color: #FFFFFF; border-color: #315B86; }
.dashboard-compact .card { padding-top: .7rem !important; padding-bottom: .7rem !important; }
