/* SportIQ MVP Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 2.8rem;
    font-weight: bold;
    color: #FF6B35;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: #ddd;
    font-size: 1.2rem;
}

/* Auth Sections */
.auth-section {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-section.active {
    display: block;
}

.auth-section h2 {
    margin-bottom: 25px;
    color: #FF6B35;
    text-align: center;
    font-size: 1.8rem;
}

.active {
  display: block !important;
}
.payment-reminder {
  background: rgba(255, 107, 53, 0.1);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  background: rgba(45, 45, 45, 0.9);
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  /* Responsive styles are handled below */
}
/* Remove this duplicate .game-card block. Its styles are merged below. */
.picks-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.games-wrapper {
  max-height: 80vh; /* Limit grid height to 80% of viewport */
  overflow-y: auto; /* Scroll if needed */
  padding-bottom: 20px; /* Space before tiebreaker */
}
.tiebreaker-submit {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}
.monday-tiebreaker {
  margin: 0;
  padding: 0;
}
.monday-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #666;
    border-radius: 4px;
    color: white;
    margin-top: 5px;
    outline: none;
    cursor: text; /* Ensure editable cursor */
}
.monday-input:focus {
  border-color: #FF6B35;
  box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #eee;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #666;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-group input::placeholder {
    color: #aaa;
}

/* Button Styles */
.btn {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-bottom: 12px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #FF6B35;
    color: #FF6B35;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
}

/* Main App */
.main-app {
    display: none;
}

.main-app.active {
    display: block;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: bold;
    color: #FF6B35;
}

.nav-user {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Week Selector */
.week-selector {
    text-align: center;
    margin-bottom: 40px;
}

.week-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #666;
    color: white;
    padding: 12px 24px;
    margin: 0 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.week-btn:hover {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.week-btn.active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* Games Grid */
/* Removed duplicate .games-grid selector to fix error */

.game-card {
      background: rgba(255, 255, 255, 0.05); /* Matches theme */
      padding: 20px;
      border-radius: 12px;
.game-card {
  background: rgba(255, 255, 255, 0.05); /* Matches theme */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.game-info h4 {
    color: #FF6B35;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.game-info p {
    color: #ddd;
    margin-bottom: 20px;
}

.pick-buttons {
    display: flex;
    gap: 12px;
}

.pick-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #666;
    border-radius: 6px;
    background: #333;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.pick-btn:hover {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.pick-btn.selected {
    background: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* Monday Section */
.monday-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.monday-section h3 {
    margin-bottom: 20px;
    color: #FF6B35;
    font-size: 1.5rem;
}

.monday-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #666;
    border-radius: 4px;
    color: white;
}

/* Payment Section */
.payment-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-section h3 {
    margin-bottom: 20px;
    color: #FF6B35;
    font-size: 1.5rem;
}

.payment-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.cashapp-btn, .venmo-btn {
    background: #FF6B35;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cashapp-btn:hover, .venmo-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Navigation */
.nav-user .btn {
    margin-right: 15px;
    width: auto;
}

.nav-user .btn:first-child {
    background: #2196F3;
}

.nav-user .btn:nth-child(2) {
    background: #FF9800;
}

/* Games Grid */
#week3Games {
    display: none;
}

/* Payment Section */
.payment-section p {
    margin-top: 15px;
    font-size: 1rem;
    color: #ddd;
}

/* Leaderboard */
.leaderboard h3 {
    padding: 25px;
    margin: 0;
    color: #FF6B35;
    font-size: 1.6rem;
}

.leaderboard .table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
}

/* Table Styles */
#leaderboardTable {
  width: 100%;
  border-collapse: collapse; /* Ensures borders don’t double up */
  margin-top: 20px;
}
#leaderboardTable th,
#leaderboardTable td {
  border: 1px solid #666; /* Line color and thickness */
  padding: 8px;
  text-align: left;
}
#leaderboardTable th {
  background-color: rgba(255, 107, 53, 0.2); /* Optional header highlight */
    min-width: 60px;
    font-size: 0.9rem;
}

#leaderboardTable th.player-col {
    min-width: 160px;
}

#leaderboardTable th.mon-points {
    min-width: 90px;
}

#leaderboardTable th.week-games {
    text-align: center;
    background: rgba(255, 107, 53, 0.2);
}

/* No Submissions Message */
.no-submissions {
    text-align: center;
    padding: 50px;
    color: #ddd;
    font-size: 1.2rem;
}

/* Leaderboard Cell Styles */
.player-name {
    font-weight: bold;
    color: #FF6B35;
}

.pick-selected {
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
}

.pick-empty {
    text-align: center;
    color: #777;
}

.monday-points {
    text-align: center;
    font-weight: bold;
}

/* Games Table Styles */
#gamesTable th {
    min-width: 60px;
    font-size: 0.9rem;
    padding: 12px;
}

#leaderboardTable th.week-header {
    text-align: center;
    background: rgba(255, 107, 53, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    #leaderboardTable {
        font-size: 0.85rem;
    }

    #leaderboardTable th {
        min-width: 50px;
        font-size: 0.75rem;
        padding: 8px;
    }

    .btn, .pick-btn, .week-btn {
        padding: 14px;
    }

    .auth-section {
        padding: 30px 20px;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* Success Message */
.success-msg {
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* Winners Section */
.entry-group-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.group-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.group-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.group-btn.active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

.winners-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.payout-structure {
    margin: 30px 0;
}

.payout-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.payout-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.payout-item .place {
    font-size: 1.2rem;
    font-weight: bold;
}

.payout-item .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.payout-item .winner {
    color: #FF6B35;
    font-weight: 500;
}

.revenue-protection {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.footer-link {
    color: #FF6B35;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Referral Info Styles */
.referral-info {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.referral-info strong {
    color: #FF6B35;
    font-size: 1.1rem;
}

.referral-info p {
    margin: 8px 0;
    color: #ddd;
}

/* Disabled Option Styles */
option:disabled {
    color: #666;
    font-style: italic;
}

.group-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.group-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: none;
}

/* Hidden until milestone styles */
.hidden-until-milestone {
    display: none;
}

.milestone-message {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.milestone-message strong {
    color: #FFC107;
    font-size: 1.2rem;
}

.milestone-message p {
    margin: 10px 0;
    color: #ddd;
}

/* Week Status Labels */
.current-week {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4CAF50 !important;
}

.future-week {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: #FFC107 !important;
    opacity: 0.8;
}

.past-week {
    background: rgba(158, 158, 158, 0.1) !important;
    border-color: #9E9E9E !important;
    opacity: 0.6;
}

.active-label {
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.future-label {
    background: #FFC107;
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.past-label {
    background: #9E9E9E;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}