/* =====================================================================
   Dalyan Pinpon Kulübü (DPK) - Modern Minimalist Stylesheet
   Fonts: Lexend (Text/Names), Helvetica/Tabular-nums (Scores/Numbers)
   Colors: #03DF8B (Green), #115AB9 (Blue), #0F172A (Navy/Black)
   ===================================================================== */

:root {
  --primary-green: #03df8b;
  --primary-green-hover: #02c57a;
  --primary-green-light: #e6faf2;
  --primary-blue: #115ab9;
  --primary-blue-hover: #0c4794;
  --primary-blue-light: #ebf3fc;
  
  --score-badge-won: #7eebc1; /* Exact mint green from reference image */
  --score-badge-text: #000000;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-divider: #dfdfdf;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --qf-color: #03df8b;
  --playoff-color: #115ab9;
  --out-color: #94a3b8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

  --font-text: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-digits: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-text);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Digits & Numerical elements */
.digits, .score, .points, .rank, .stat-num {
  font-family: var(--font-digits);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 680px; /* Optimal mobile-first reading width */
  margin: 0 auto;
  padding: 0 16px 80px 16px;
  flex: 1;
}

/* Top Navigation / App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  box-shadow: none;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-blue);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-pill:hover, .btn-admin-pill.active {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Tournament Banner */
.tournament-banner {
  background: linear-gradient(135deg, #115ab9 0%, #0d4692 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tournament-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(3, 223, 139, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-badge {
  display: inline-block;
  background-color: rgba(3, 223, 139, 0.25);
  color: #03df8b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Primary Tabs (Lig, Play-off, Finaller, Ranking) */
.main-tabs-wrapper {
  margin-bottom: 20px;
  position: sticky;
  top: 67px;
  z-index: 40;
  background-color: var(--bg-page);
  padding-bottom: 4px;
}

.main-tabs {
  display: flex;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  gap: 2px;
}

.tab-btn {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.tab-btn.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 90, 185, 0.35);
}

.tab-btn:disabled, .tab-btn.disabled {
  opacity: 0.42;
  cursor: not-allowed !important;
  pointer-events: none;
  background: transparent !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
}

/* Sub-toggle (Fikstür / Puan Durumu) */
.sub-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.pill-switch {
  display: inline-flex;
  background-color: #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

.pill-switch-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-switch-btn.active {
  background-color: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Player Search Bar */
.player-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 240px;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  pointer-events: none;
}

.player-search-input {
  width: 100%;
  height: 36px;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 28px 0 32px;
  font-family: var(--font-text);
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.player-search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(17, 90, 185, 0.12);
}

.player-search-input::placeholder {
  color: var(--text-dim);
}

.btn-clear-search {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 4px;
}

.btn-clear-search:hover {
  color: var(--text-main);
}

@media (max-width: 480px) {
  .sub-toggle-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .player-search-wrapper {
    max-width: 100%;
  }
}

/* =====================================================================
   MATCH CARD (Exact match to uploaded DPK-fikstür reference image!)
   ===================================================================== */
.match-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.match-card:hover {
  box-shadow: var(--shadow-md);
}

.match-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-status {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
}

.badge-status.completed {
  background-color: var(--primary-green-light);
  color: #028654;
}

.badge-status.pending {
  background-color: #f1f5f9;
  color: #64748b;
}

.badge-format {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Match Player Rows */
.match-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 48px;
}

.match-divider {
  height: 1px;
  background-color: var(--border-divider);
  margin: 0 16px;
}

.player-left-col {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Set Count Box on the Left (Green box with 2 or plain numeral 1) */
.set-count-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  color: #000000;
  font-family: var(--font-digits);
}

.set-count-badge.winner {
  background-color: var(--primary-green);
  color: #ffffff;
}

.set-count-badge.empty {
  color: #cbd5e1;
  font-size: 1.1rem;
}

.player-name-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.15s ease;
}

.player-name-text:hover {
  color: var(--primary-blue);
}

.player-clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}

.player-clickable:hover {
  color: var(--primary-blue) !important;
  text-decoration: underline;
}

.player-active-highlight {
  color: var(--primary-blue) !important;
  background-color: var(--primary-blue-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Player Filter Sticky Banner */
.player-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(17, 90, 185, 0.12);
  animation: fadeIn 0.2s ease-out;
}

.filter-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-avatar-icon {
  font-size: 1.3rem;
}

.filter-player-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.filter-player-title strong {
  color: var(--primary-blue);
}

.filter-player-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-clear-filter {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-text);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-clear-filter:hover {
  background: #e2e8f0;
  color: #000000;
}

.row-selected td {
  background-color: #ebf3fc !important;
  border-color: #bfdbfe !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-placeholder-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dim);
  font-style: italic;
}

/* Set scores on the Right */
.set-scores-col {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* Winning Set Pill (e.g. 11 with mint green rounded pill) */
.set-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-digits);
  color: #000000;
}

.set-score-pill.won {
  background-color: var(--score-badge-won);
  color: var(--score-badge-text);
}

.set-score-pill.lost {
  background: transparent;
  color: #000000;
}

.set-score-pill.empty {
  color: transparent;
}

/* Action button for admin on card */
.match-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #fafbfc;
  border-top: 1px dashed var(--border-subtle);
  padding: 6px 16px;
  gap: 8px;
}

.btn-card-action {
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-action:hover {
  background-color: var(--primary-blue-light);
}

/* =====================================================================
   STANDINGS TABLE (Puan Durumu)
   ===================================================================== */
.standings-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-indicator.qf {
  background-color: var(--qf-color);
}

.legend-indicator.playoff {
  background-color: var(--playoff-color);
}

.legend-indicator.out {
  background-color: var(--out-color);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.standings-table th {
  background-color: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 8px;
  white-space: nowrap;
}

.standings-table th:first-child {
  padding-left: 14px;
}

.standings-table th:last-child {
  padding-right: 14px;
  text-align: right;
}

.standings-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  white-space: nowrap;
  font-family: var(--font-digits);
  font-variant-numeric: tabular-nums;
}

.standings-table td:first-child {
  padding-left: 14px;
}

.standings-table td:last-child {
  padding-right: 14px;
  text-align: right;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-blue);
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table tr:hover td {
  background-color: #f8fafc;
}

/* Zone border strip on left of rank */
.rank-badge-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.rank-pill {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
}

.rank-pill.qf {
  background-color: var(--qf-color);
}

.rank-pill.playoff {
  background-color: var(--playoff-color);
}

.rank-pill.out {
  background-color: #94a3b8;
}

.player-name-cell {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.94rem;
  color: #000000;
}

/* Points System Helper Box */
.rules-callout {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rules-callout-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rules-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* =====================================================================
   PLAY-OFF & FINALS BRACKET VIEW
   ===================================================================== */
.stage-section-header {
  margin: 20px 0 12px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stage-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.stage-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bracket-connector-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =====================================================================
   RANKING PAGE
   ===================================================================== */
.ranking-hero {
  text-align: center;
  padding: 24px 16px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: flex-end;
  margin-top: 16px;
}

.podium-col {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-subtle);
}

.podium-col.first {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  padding-top: 20px;
  padding-bottom: 20px;
  order: 2;
}

.podium-col.second {
  order: 1;
}

.podium-col.third {
  order: 3;
}

.podium-medal {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.podium-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000000;
}

.podium-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: var(--font-digits);
}

/* =====================================================================
   MODALS & DRAWERS (Admin, PIN Login, Score Entry)
   ===================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end; /* Bottom sheet on mobile */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 500px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: var(--radius-lg);
    transform: scale(0.95);
  }
  .modal-overlay.open .modal-sheet {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* PIN Keypad & Input */
.pin-input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.pin-digit-box {
  width: 48px;
  height: 56px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-digits);
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.pin-digit-box:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(17, 90, 185, 0.15);
}

/* Score Input Row */
.score-inputs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.score-set-row {
  display: grid;
  grid-template-columns: 80px 1fr 20px 1fr;
  align-items: center;
  gap: 10px;
  background-color: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.set-label-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.score-num-input {
  height: 44px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-digits);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  background-color: #ffffff;
  width: 100%;
}

.score-num-input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(3, 223, 139, 0.2);
}

.score-sep {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dim);
}

/* Buttons */
.btn-primary {
  width: 100%;
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(3, 223, 139, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
}

.btn-secondary {
  width: 100%;
  background-color: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 8px;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: var(--text-main);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 24px 16px;
  border-top: 1px solid var(--border-subtle);
  background-color: #ffffff;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-club-title {
  color: var(--text-main);
  font-size: 0.82rem;
}

.footer-author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted) !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.footer-author-badge:hover {
  color: #0fb896 !important;
  background-color: #f1f5f9;
}

.author-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
