/* public/assets/css/style.css - Mobile-first modern layout */

:root {
  --primary: #003366;
  --primary-hover: #002244;
  --accent: #d50a0a;
  --accent-hover: #b00808;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

/* Header & Navbar */
.navbar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}
.navbar-brand:hover {
  text-decoration: none;
}
.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.brand-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: #93c5fd;
  letter-spacing: normal;
}
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.navbar-nav a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
}
.navbar-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}
.badge-admin {
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Alerts & Notices */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

.notice-box {
  background: #ffffff;
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.notice-box h4 {
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.notice-box p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Hero Section */
.hero-card {
  background: linear-gradient(135deg, #002244 0%, #003366 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.hero-content {
  max-width: 580px;
}
.hero-badge {
  display: inline-block;
  background: rgba(213, 10, 10, 0.25);
  border: 1px solid rgba(213, 10, 10, 0.6);
  color: #fca5a5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-logo-wrap {
  text-align: center;
}
.hero-logo-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
}

/* Features / Process Steps Grid */
.steps-section {
  margin-bottom: 2.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.step-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.form-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}
.btn-secondary:hover {
  background: #cbd5e1;
  text-decoration: none;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status Badges */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-submitted { background: #e0f2fe; color: #075985; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-suspended { background: #f3f4f6; color: #374151; }
.status-locked { background: #e2e8f0; color: #475569; }

/* Pick'em Multi-Column Game Matchup Grid & Day Groups */
.matchup-day-group {
  margin-bottom: 2rem;
}
.day-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.85rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.day-group-icon {
  font-size: 1.15rem;
}
.day-group-title {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.day-group-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  margin-left: 0.25rem;
}

.matchups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.game-matchup-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.game-matchup-card:hover {
  box-shadow: 0 6px 16px rgba(0, 34, 68, 0.08);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed #e2e8f0;
}
.game-time {
  font-weight: 600;
  color: #334155;
}
.game-venue {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-align: right;
}

.teams-selector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
}
.vs-divider {
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  user-select: none;
}
.vs-divider span {
  display: inline-block;
  background: #f1f5f9;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.team-btn {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.team-btn:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  transform: translateY(-1px);
}
.team-btn:active {
  transform: scale(0.98);
}
.team-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.25), 0 4px 10px rgba(0, 51, 102, 0.1);
  animation: pickPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pickPulse {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.team-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.team-logo-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.team-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.team-btn:hover .team-logo-img {
  transform: scale(1.1);
}
.team-logo-fallback {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--primary);
}
.team-info-box {
  text-align: left;
  line-height: 1.2;
}
.team-abbr {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  display: block;
}
.team-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}
.game-score-badge {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.3rem;
  color: var(--primary);
}

/* Animations on Scroll (Intersection Observer) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Submit Progress Bar */
.submit-dock {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--accent);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  margin-top: 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 100;
}
.submit-dock-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pick-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
}
.progress-indicator {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-on-ready:not(:disabled) {
  animation: readyPulse 2s infinite ease-in-out;
}
@keyframes readyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(213, 10, 10, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(213, 10, 10, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(213, 10, 10, 0); }
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.table th, .table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  max-width: 960px;
  margin: 0 auto 1.5rem auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand h4 {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links-col h5 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-links-col ul {
  list-style: none;
}
.footer-links-col li {
  margin-bottom: 0.4rem;
}
.footer-links-col a {
  color: var(--text-muted);
}
.footer-links-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.25rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-logo-wrap {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .teams-selector {
    grid-template-columns: 1fr;
  }
  .vs-divider {
    display: none;
  }
}
