/* Berenjena - Purple Neon Punk Theme */

:root {
  --bg-dark: #0a0a0f;
  --bg-secondary: #14141f;
  --purple-neon: #b026ff;
  --purple-glow: #7700ff;
  --pink-neon: #ff00ff;
  --cyan-neon: #00ffff;
  --text-primary: #e0e0ff;
  --text-secondary: #9d9db5;
  --border-color: #2a2a3f;
  --success: #00ff88;
  --error: #ff0066;
  --warning: #ffcc00;
}

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(176, 38, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
}

/* Header */
header {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--purple-neon);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--purple-neon);
  text-decoration: none;
  text-shadow: 0 0 10px var(--purple-glow);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--pink-neon);
  text-shadow: 0 0 20px var(--pink-neon);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(176, 38, 255, 0.1);
  border: 2px solid var(--purple-neon);
  color: var(--purple-neon);
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  line-height: 1;
  box-shadow: 0 0 5px rgba(176, 38, 255, 0.3);
  min-width: 50px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  background: var(--purple-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--purple-neon);
  transform: scale(1.05);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  header {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100;
  }

  nav {
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    position: relative;
    gap: 0;
    background: var(--bg-secondary);
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.4rem;
    margin: 0;
  }

  .logo img {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    flex-shrink: 0;
    z-index: 1001;
    margin: 0;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none !important;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--purple-neon);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin: 0.75rem -1rem -0.75rem -1rem;
    padding: 0;
    list-style: none;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    box-sizing: border-box;
  }

  .nav-auth {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    justify-content: center;
  }

  .nav-auth span {
    text-align: center;
    display: block;
  }

  .nav-auth form {
    width: 100%;
    display: block;
  }

  .nav-auth button,
  .nav-auth a {
    width: 100%;
    display: block;
    text-align: center;
  }

  /* Center main content better on mobile */
  main {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .card {
    margin: 1rem auto;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Improve button sizing on mobile */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* Better table responsiveness */
  table {
    font-size: 0.85rem;
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  /* Stack form elements on mobile */
  .form-group {
    margin-bottom: 1rem;
  }

  /* Better spacing for mobile */
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Match score styling on mobile */
  .match-score {
    font-size: 2rem;
  }

  /* Center images and content */
  img {
    max-width: 100%;
    height: auto;
  }
}

.nav-links a:hover {
  color: var(--purple-neon);
  border-color: var(--purple-neon);
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

.nav-auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hide nav-auth when it's inside hidden nav-links on mobile */
@media (max-width: 768px) {
  .nav-links:not(.active) .nav-auth {
    display: none !important;
  }
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--purple-neon);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
  transform: translateY(-2px);
}

.card h2 {
  color: var(--purple-neon);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--purple-neon);
  background: transparent;
  color: var(--purple-neon);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: var(--purple-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--purple-neon);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--purple-glow);
  box-shadow: 0 0 30px rgba(119, 0, 255, 0.6);
}

.btn-secondary {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

.btn-secondary:hover {
  background: var(--cyan-neon);
  color: var(--bg-dark);
}

.btn-danger {
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple-neon);
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-dark);
  color: var(--purple-neon);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

tr:hover {
  background: rgba(176, 38, 255, 0.05);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge-mvp {
  background: var(--success);
  color: var(--bg-dark);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.badge-goal {
  background: var(--purple-neon);
  color: white;
}

.badge-assist {
  background: var(--cyan-neon);
  color: var(--bg-dark);
}

.badge-yellow {
  background: var(--warning);
  color: var(--bg-dark);
}

.badge-red {
  background: var(--error);
  color: white;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(255, 0, 102, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.alert-info {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

/* Match Score */
.match-score {
  font-size: 2rem;
  font-weight: bold;
  color: var(--purple-neon);
  text-shadow: 0 0 10px var(--purple-glow);
  text-align: center;
  margin: 1rem 0;
}

/* Player Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-item {
  background: var(--bg-dark);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--purple-neon);
  text-shadow: 0 0 10px var(--purple-glow);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Event Timeline */
.event-timeline {
  margin: 1.5rem 0;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-dark);
  border-left: 3px solid var(--purple-neon);
  border-radius: 4px;
}

.event-minute {
  font-weight: bold;
  color: var(--cyan-neon);
  min-width: 40px;
}

.event-icon {
  font-size: 1.2rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-bar select {
  flex: 1;
  min-width: 200px;
}

/* Jersey Number */
.jersey {
  display: inline-block;
  background: var(--purple-glow);
  color: white;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 35px;
  text-align: center;
  box-shadow: 0 0 10px rgba(119, 0, 255, 0.4);
}

/* Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-secondary);
  border: 2px solid var(--purple-neon);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  box-shadow: 0 0 40px rgba(176, 38, 255, 0.5);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.5rem;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--purple-neon);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glow effect */
.glow {
  text-shadow: 0 0 10px currentColor;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-neon);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-glow);
}

/* Event Timeline */
.event-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(176, 38, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.event-item:hover {
  background: rgba(176, 38, 255, 0.1);
  border-color: var(--purple-neon);
}

.event-minute {
  font-weight: bold;
  color: var(--cyan-neon);
  min-width: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.event-icon {
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-yellow {
  background: rgba(255, 204, 0, 0.2);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.badge-red {
  background: rgba(255, 0, 102, 0.2);
  color: var(--error);
  border: 1px solid var(--error);
}

.badge-mvp {
  background: rgba(0, 255, 136, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* Alert Boxes */
.alert {
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
  margin: 1rem 0;
}

.alert-info {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

.alert-warning {
  background: rgba(255, 204, 0, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-danger {
  background: rgba(255, 0, 102, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--success);
  color: var(--success);
}

