/* ==========================================================================
   FANTASY BBALL STATS - LANDING & DASHBOARD STYLES
   ========================================================================== */

/* Main Page Wrapper */
.landing-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
}
.glow-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #ffffff;
  letter-spacing: -1.2px;
}
.hero-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(232, 238, 252, 0.75);
  max-width: 700px;
  margin: 0 auto;
}

/* Feature Grid */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.feature-card {
  background: rgba(16, 19, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.09);
}
.feature-text h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}
.feature-text p {
  margin: 0;
  font-size: 12px;
  color: rgba(232, 238, 252, 0.65);
  line-height: 1.45;
}

/* Main Dashboard & Login Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(16, 19, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 20px 22px;
  box-shadow: none;
  transition: border-color 0.3s;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}
.promo-card {
  background: linear-gradient(145deg, rgba(16, 19, 26, 0.8) 0%, rgba(20, 24, 33, 0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Header */
.card-header {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.card-header h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.card-header p {
  margin: 0;
  font-size: 13px;
}
.card-number {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
}

/* Forms */
.entry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 238, 252, 0.8);
  margin: 0;
}
.input-group input {
  background: rgba(11, 14, 20, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  padding: 10px 12px !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
  width: 100%;
}
.input-group input:focus {
  border-color: rgba(70, 130, 180, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.2) !important;
  background: rgba(11, 14, 20, 0.9) !important;
  outline: none;
}
.input-group input::placeholder {
  color: rgba(232, 238, 252, 0.4);
}

/* Collapsible Section */
.form-collapsible {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 4px;
}
.collapsible-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 238, 252, 0.7);
  transition: color 0.2s;
  user-select: none;
}
.collapsible-trigger:hover {
  color: #fff;
}
.collapsible-trigger .chevron {
  font-size: 9px;
  transition: transform 0.2s;
  color: rgba(232, 238, 252, 0.4);
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px;
}
.collapsible-content.open {
  padding: 6px 10px 10px;
}

/* Buttons */
.btn-action-primary {
  background: var(--accent-2) !important;
  color: #fff !important;
  border: 1px solid #b32626 !important;
  padding: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.15s;
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: none !important;
}
.btn-action-primary:hover {
  background: #e63946 !important;
  box-shadow: none !important;
}

/* Promo Card Content */
.promo-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 238, 252, 0.8);
}
.bullet-check {
  color: #48bb78;
  font-weight: bold;
  font-size: 15px;
  line-height: 1;
}

/* Google Sign-In Button */
.google-sign-in-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: none !important;
  cursor: pointer;
  margin-top: auto;
}
.google-sign-in-btn:hover {
  background-color: #f7fafc;
  box-shadow: none !important;
}
.google-icon {
  width: 18px;
  height: 18px;
}

/* Examples Section */
.examples-wrapper {
  margin-top: 36px;
}
.examples-card {
  background: rgba(16, 19, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 24px;
  text-align: center;
}
.examples-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.examples-card p {
  margin: 0 0 20px;
  font-size: 13px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.examples-btn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 650px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .examples-btn-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.btn-example {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 14px 20px;
  min-height: 48px;
  background: rgba(30, 64, 120, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--text);
  width: 100%;
}
.btn-example:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: none !important;
}
.btn-text {
  display: flex;
  flex-direction: column;
}
.btn-text strong {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.btn-text span {
  font-size: 10px;
  color: rgba(232, 238, 252, 0.55);
  margin-top: 1px;
}

/* User Dashboard Header */
.dashboard-hero {
  margin-bottom: 28px;
}
.user-profile-header {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.dashboard-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(70, 130, 180, 0.6);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.dashboard-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(70, 130, 180, 0.25);
  border: 2px solid rgba(70, 130, 180, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* League Lists Container */
.league-list-container {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
/* Scrollbar */
.league-list-container::-webkit-scrollbar {
  width: 6px;
}
.league-list-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0;
}
.league-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
}
.league-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.leagues-grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.league-dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  transition: background 0.2s, border-color 0.2s;
}
.league-dashboard-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.league-metadata {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.league-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.league-stats-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.info-pill {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 0;
  color: rgba(232, 238, 252, 0.65);
  font-family: monospace;
}
.badge-private-pill {
  background: rgba(229, 62, 62, 0.12);
  border-color: rgba(229, 62, 62, 0.25);
  color: #feb2b2;
}
.badge-public-pill {
  background: rgba(70, 130, 180, 0.15);
  border-color: rgba(70, 130, 180, 0.3);
  color: #a0c4ff;
}
.league-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-select-league {
  background: rgba(70, 130, 180, 0.15) !important;
  color: #a0c4ff !important;
  border: 1px solid rgba(70, 130, 180, 0.35) !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-select-league:hover {
  background: rgba(70, 130, 180, 0.3) !important;
  border-color: rgba(70, 130, 180, 0.6) !important;
  color: #fff !important;
}
.btn-delete-league {
  background: transparent !important;
  color: rgba(229, 62, 62, 0.6) !important;
  border: 1px solid rgba(229, 62, 62, 0.2) !important;
  padding: 4px 8px !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  width: 29px;
  line-height: 1;
}
.btn-delete-league:hover {
  background: rgba(229, 62, 62, 0.15) !important;
  border-color: rgba(229, 62, 62, 0.5) !important;
  color: #e53e3e !important;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.01);
}
.empty-state h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.empty-state p {
  margin: 0;
  font-size: 12px;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* Alerts */
.alert {
  display: flex;
  gap: 12px;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.25);
  border-radius: 0;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.alert-content h4 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  color: #feb2b2;
}
.alert-content p {
  margin: 0;
  font-size: 12px;
  color: rgba(232, 238, 252, 0.8);
  line-height: 1.45;
}

/* ==========================================================================
   LEAGUE DASHBOARD (ACTIVE LEAGUE HUB) STYLES
   ========================================================================== */

.league-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.league-title-area {
  text-align: left;
}
.league-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px 0;
  color: #fff;
  text-align: left;
}
.league-subtitle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-change-league {
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(232, 238, 252, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  height: fit-content;
}
.btn-change-league:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 16px;
  text-align: left;
  letter-spacing: -0.3px;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 950px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  background: rgba(16, 19, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}
.tool-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.tool-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 12px;
}
.tool-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.tool-info p {
  margin: 0;
  font-size: 12px;
  color: rgba(232, 238, 252, 0.65);
  line-height: 1.45;
}
.tool-action-arrow {
  font-size: 18px;
  color: rgba(232, 238, 252, 0.35);
  transition: transform 0.2s, color 0.2s;
  font-weight: bold;
}
.tool-card:hover .tool-action-arrow {
  transform: translateX(3px);
  color: #fff;
}

/* Standings */
.standings-wrapper {
  margin-top: 32px;
}
.standings-card {
  padding: 0 !important;
  overflow: hidden;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
}
.standings-table th {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 238, 252, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}
.standings-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(232, 238, 252, 0.85);
  text-align: left;
  vertical-align: middle;
}
.standings-table tr:last-child td {
  border-bottom: none;
}
.standings-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}
.font-bold {
  font-weight: 700;
}
.team-name-text {
  font-weight: 600;
  color: #fff;
}
.record-text {
  font-family: monospace;
  font-size: 13px;
  color: rgba(232, 238, 252, 0.7);
}
.points-text {
  font-family: monospace;
  font-size: 13px;
}

/* Private credentials sections */
.private-credentials-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.credentials-header {
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 238, 252, 0.9);
}
.info-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  color: rgba(232, 238, 252, 0.8);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
}
.info-help-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.credentials-help-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(232, 238, 252, 0.75);
  text-align: left;
}
.credentials-help-box strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.credentials-help-box ol {
  margin: 0;
  padding-left: 18px;
}
.credentials-help-box li {
  margin-bottom: 6px;
}
.credentials-help-box li:last-child {
  margin-bottom: 0;
}
.credentials-help-box code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 0;
  font-family: monospace;
  font-size: 11px;
  color: #e2e8f0;
}
