/* COMPONENTS.CSS - Cards, Buttons, Forms */

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

/* Match Card */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.match-card.live .match-teams {
  position: relative;
  overflow: hidden;
}
/* Live Style 1: Red dot */
.match-card.live.style-1 .live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  color: var(--error);
  font-weight: 600;
}
.match-card.live.style-1 .live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Live Style 2: Animated stripes */
.match-card.live.style-2 .match-teams::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(239, 68, 68, 0.05) 10px,
    rgba(239, 68, 68, 0.05) 20px
  );
  animation: stripes 4s linear infinite;
  pointer-events: none;
}
@keyframes stripes { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* Live Style 3: Text animation */
.match-card.live.style-3 .live-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 700;
  color: rgba(239, 68, 68, 0.08);
  white-space: nowrap;
  animation: pulse-text 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-text { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.15; } }

/* Live Style 4: Liquid Pulse Border */
.match-card.live.style-4 {
  position: relative;
  overflow: hidden;
}
.match-card.live.style-4::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, var(--error), #ff6b6b, #ff4757, var(--error), #ff6b6b);
  background-size: 300% 100%;
  animation: liquidPulseBorder 3s ease-in-out infinite;
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.7;
}
@keyframes liquidPulseBorder {
  0%, 100% { background-position: 0% 50%; opacity: 0.4; }
  50% { background-position: 100% 50%; opacity: 0.8; }
}

/* Live Style 5: Neon Glow */
.match-card.live.style-5 {
  box-shadow: 
    0 0 10px rgba(239, 68, 68, 0.3),
    0 0 20px rgba(239, 68, 68, 0.15),
    0 0 40px rgba(239, 68, 68, 0.05),
    inset 0 0 15px rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.5);
  animation: liveNeonGlow 2s ease-in-out infinite;
}
@keyframes liveNeonGlow {
  0%, 100% { 
    box-shadow: 
      0 0 10px rgba(239, 68, 68, 0.3),
      0 0 20px rgba(239, 68, 68, 0.15),
      0 0 40px rgba(239, 68, 68, 0.05),
      inset 0 0 15px rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.5);
  }
  50% { 
    box-shadow: 
      0 0 15px rgba(239, 68, 68, 0.5),
      0 0 30px rgba(239, 68, 68, 0.25),
      0 0 60px rgba(239, 68, 68, 0.1),
      inset 0 0 20px rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.8);
  }
}

/* Live Style 6: Liquid Wave Bottom */
.match-card.live.style-6 {
  position: relative;
  overflow: hidden;
}
.match-card.live.style-6::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(239,68,68,0.12) 0%, transparent 70%);
  animation: liveWaveBottom 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
@keyframes liveWaveBottom {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.6; }
  50% { transform: translateY(-15%) scaleX(1.1); opacity: 1; }
}

/* Live Style 7: Breathing Card */
.match-card.live.style-7 {
  animation: liveBreathing 3s ease-in-out infinite;
  border-color: rgba(239, 68, 68, 0.3);
}
.match-card.live.style-7 .match-header {
  background: linear-gradient(90deg, var(--bg-3), rgba(239,68,68,0.08), var(--bg-3));
  background-size: 200% 100%;
  animation: liveBreathingHeader 4s ease-in-out infinite;
}
@keyframes liveBreathing {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(239,68,68,0.05); }
  50% { transform: scale(1.005); box-shadow: 0 6px 30px rgba(239,68,68,0.15); }
}
@keyframes liveBreathingHeader {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Live Style 8: Radar Sweep */
.match-card.live.style-8 {
  position: relative;
  overflow: hidden;
}
.match-card.live.style-8::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(239,68,68,0.08) 30deg, transparent 60deg);
  animation: liveRadar 4s linear infinite;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
}
@keyframes liveRadar {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.match-time {
  color: var(--accent-2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-league { color: var(--text-3); }

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px;
  gap: 12px;
  position: relative;
  background-color: var(--match-bg-color, transparent);
  transition: background-color 0.3s ease;
}
.match-teams > * {
  position: relative;
  z-index: 1;
}

/* Background Styles - Liquid Collection */

/* Liquid Blur (default modern) */
.match-teams.style-blur {
  background: 
    radial-gradient(ellipse 600px 100px at 50% 50%, var(--match-bg-color, rgba(255,255,255,0.08)), transparent),
    radial-gradient(ellipse 800px 80px at 20% 80%, rgba(255,255,255,0.05), transparent),
    radial-gradient(ellipse 600px 120px at 80% 20%, rgba(0,0,0,0.03), transparent);
  position: relative;
  overflow: hidden;
}
.match-teams.style-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 200px 150px at 30% 40%, rgba(239,68,68,0.06), transparent),
    radial-gradient(ellipse 250px 120px at 70% 60%, rgba(0,212,255,0.05), transparent);
  animation: liquidBlurDrift 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes liquidBlurDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, -3%) rotate(1deg); }
  66% { transform: translate(-3%, 5%) rotate(-1deg); }
}

/* Liquid Lava */
.match-teams.style-lava {
  position: relative;
  overflow: hidden;
}
.match-teams.style-lava::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 180px 160px at 25% 30%, rgba(239,68,68,0.12), transparent 70%),
    radial-gradient(ellipse 200px 140px at 75% 70%, rgba(255,107,53,0.10), transparent 70%),
    radial-gradient(ellipse 150px 180px at 50% 50%, rgba(255,165,0,0.08), transparent 70%);
  animation: liquidLava 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.match-teams.style-lava::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 120px 100px at 60% 40%, rgba(239,68,68,0.06), transparent 60%),
    radial-gradient(ellipse 100px 120px at 30% 70%, rgba(255,69,0,0.05), transparent 60%);
  animation: liquidLava2 9s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
@keyframes liquidLava {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(3%, -2%) scale(1.05) rotate(0.5deg); }
  50% { transform: translate(-2%, 3%) scale(0.98) rotate(-0.5deg); }
  75% { transform: translate(1%, -1%) scale(1.02) rotate(0.3deg); }
}
@keyframes liquidLava2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 2%) scale(1.08); }
}

/* Liquid Ocean */
.match-teams.style-ocean {
  position: relative;
  overflow: hidden;
}
.match-teams.style-ocean::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse 300px 100px at 20% 50%, rgba(0,212,255,0.10), transparent 70%),
    radial-gradient(ellipse 250px 120px at 80% 30%, rgba(0,150,255,0.08), transparent 70%),
    radial-gradient(ellipse 200px 150px at 50% 80%, rgba(0,100,200,0.06), transparent 70%);
  animation: liquidOcean 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.match-teams.style-ocean::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), rgba(0,150,255,0.2), transparent);
  animation: liquidOceanWave 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes liquidOcean {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3%, 2%) rotate(-0.5deg); }
  50% { transform: translate(2%, -2%) rotate(0.5deg); }
  75% { transform: translate(-1%, 1%) rotate(-0.3deg); }
}
@keyframes liquidOceanWave {
  0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
  50% { opacity: 0.8; transform: scaleX(1.2); }
}

/* Liquid Aurora */
.match-teams.style-aurora {
  position: relative;
  overflow: hidden;
}
.match-teams.style-aurora::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180%;
  height: 220%;
  background:
    radial-gradient(ellipse 250px 80px at 30% 40%, rgba(16,185,129,0.10), transparent 70%),
    radial-gradient(ellipse 200px 100px at 60% 30%, rgba(139,92,246,0.08), transparent 70%),
    radial-gradient(ellipse 300px 60px at 50% 70%, rgba(0,212,255,0.06), transparent 70%),
    radial-gradient(ellipse 150px 90px at 80% 60%, rgba(236,72,153,0.07), transparent 70%);
  animation: liquidAurora 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes liquidAurora {
  0%, 100% { transform: translate(0, 0) skewX(0deg); }
  20% { transform: translate(4%, -2%) skewX(1deg); }
  40% { transform: translate(-2%, 3%) skewX(-0.5deg); }
  60% { transform: translate(3%, -1%) skewX(0.5deg); }
  80% { transform: translate(-3%, 2%) skewX(-1deg); }
}

/* Liquid Neon */
.match-teams.style-neon {
  position: relative;
  overflow: hidden;
}
.match-teams.style-neon::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background:
    radial-gradient(ellipse 200px 100px at 30% 50%, rgba(239,68,68,0.08), transparent 60%),
    radial-gradient(ellipse 180px 120px at 70% 40%, rgba(0,212,255,0.08), transparent 60%);
  animation: liquidNeon 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.match-teams.style-neon::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, rgba(239,68,68,0.15), transparent 40%, transparent 60%, rgba(0,212,255,0.15)) 1;
  animation: liquidNeonBorder 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes liquidNeon {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(3%, -2%) scale(1.05); opacity: 1; }
}
@keyframes liquidNeonBorder {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* (Legacy styles removed - using liquid collection above) */

.team { font-weight: 600; font-size: 14px; }
.team.home { text-align: right; }
.match-score {
  text-align: center;
  min-width: 60px;
}
.score { font-size: 22px; font-weight: 700; }
.score.live { color: var(--success); }
.vs { color: var(--text-3); font-weight: 600; }

.match-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  font-size: 13px;
}
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-item .label { font-size: 10px; color: var(--text-3); text-transform: uppercase; }
.info-item .value { font-weight: 600; }
.result-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.result-win { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.result-loss { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.result-refund { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.result-pending { background: var(--bg-3); color: var(--text-3); }

.placed-check { margin-left: auto; }
.placed-check input { display: none; }
.placed-check label {
  width: 32px;
  height: 32px;
  background: var(--bg-1);
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.placed-check label svg { opacity: 0; color: #fff; }
.placed-check input:checked + label {
  background: var(--success);
  border-color: var(--success);
}
.placed-check input:checked + label svg { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--bg-3); color: var(--text-1); border: 1px solid var(--border); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-2);
}
textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Toggle Switch */
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.toggle input { display: none; }
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  transition: all 0.2s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-3);
  border-radius: 50%;
  transition: all 0.2s;
}
.toggle input:checked + .toggle-switch {
  background: var(--success);
  border-color: var(--success);
}
.toggle input:checked + .toggle-switch::after {
  transform: translateX(20px);
  background: #fff;
}

/* Stats Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  display: block;
}
.stat-card .label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
}
.stat-card.wins .value { color: var(--success); }
.stat-card.losses .value { color: var(--error); }
.stat-card.refunds .value { color: var(--warning); }

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Table */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  cursor: pointer;
}
th:hover { color: var(--text-1); }
tr:hover { background: var(--bg-3); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay.show { display: flex; }
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; }
.modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg-3);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-1);
}
.modal-body { padding: 16px; }
.modal-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid var(--success); }
.alert-error { background: rgba(239, 68, 68, 0.15); color: var(--error); border: 1px solid var(--error); }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid var(--warning); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state svg { color: var(--text-3); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-3); margin-bottom: 20px; }
