/* WC2026 Premium Dark Theme & Glassmorphism */

:root {
  --primary: #10b981; /* Neon green */
  --primary-rgb: 16, 185, 129;
  --primary-hover: #059669;
  --secondary: #3b82f6; /* Blue */
  --accent: #ef4444; /* Red */
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-radius: 16px;
  --glass-blur: 12px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Background image for body */
body.bg-2026 {
  background-image: url('../images/bg-2026.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Specific to login */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
.login-card {
  width: 100%;
  max-width: 450px;
  text-align: center;
}
.login-card h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.login-card h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Match Cards */
.matches-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 100px; /* Space for sticky bar */
}

.match-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

/* Subtle accent glow top border */
.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
  opacity: 0.8;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.match-card.closed {
  opacity: 0.6;
  pointer-events: none;
}
.match-card.closed::after {
  content: 'CERRADO';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--accent);
  color: white;
  padding: 0.2rem 3rem;
  transform: rotate(45deg);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.team-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
}

.score-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-inputs input {
  width: 60px !important;
  height: 60px !important;
  font-size: 1.8rem !important;
  font-weight: 800;
  text-align: center;
  background: rgba(0,0,0,0.3) !important;
  border: 2px solid var(--glass-border) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease;
}

.score-inputs input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

/* Hide number arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

.score-vs {
  font-weight: bold;
  color: #6b7280;
}

.date-divider {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
  gap: 1rem;
}
.date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* Sticky Action Bar */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.sticky-action-bar button {
  margin: 0;
  width: 100%;
  max-width: 400px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--primary);
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.sticky-action-bar button:hover {
  background: var(--primary-hover);
}

/* Logo styling */
.header .logo img {
  width: 120px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-item a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-item a:hover, .nav-item a.active {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 0.9rem;
}

.user-info .logout-btn {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.user-info .logout-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none; /* Hide by default on mobile, show via JS if needed or use a different approach */
  }
  .header {
    padding: 0.75rem 1rem;
  }
  .nav-toggle {
    display: block;
  }
}
