*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background:#0b1120;
  color:white;
}

nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  background:#111827;
  position:sticky;
  top:0;
  z-index:10;
}

.logo{
  font-size:22px;
  font-weight:bold;
  color:#facc15;
}

.nav-links a{
  color:white;
  text-decoration:none;
  margin:0 10px;
  transition:.3s;
}

.nav-links a:hover{
  color:#facc15;
}

.hero{
  min-height:600px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background: linear-gradient(135deg, #111827, #1e293b);
}

.hero h1{
  font-size:60px;
  margin-bottom:20px;
}

.hero p{
  font-size:22px;
  color:#cbd5e1;
}

.page-header{
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background: linear-gradient(135deg, #111827, #1e293b);
  padding:40px 20px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.page-header-content{
  max-width:700px;
  max-height:300px;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.2em;
  color:#facc15;
  font-size:.85rem;
  font-weight:bold;
  margin-bottom:10px;
}

.page-header h1{
  font-size:42px;
  margin:0 0 14px;
}

.page-header p{
  font-size:18px;
  color:#cbd5e1;
  margin:0;
}

.button{
  display:inline-block;
  padding:14px 25px;
  background:#344bfa;
  color:#d8dce6;
  font-weight:bold;
  border-radius:12px;
  text-decoration:none;
  margin:10px;
  transition:.3s;
}

.button:hover{
  transform:translateY(-4px);
}

.secondary{
  background:#334155;
  color:white;
}

.stats{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  padding:40px;
}

.stat-card,
.card{
  background:#1e293b;
  padding:25px;
  border-radius:20px;
  transition:.3s;
}

.stat-card:hover,
.card:hover{
  transform:translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.section{
  max-width:1100px;
  margin:auto;
  padding:50px 30px;
}

.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:20px;
}

.prize{
  background:#111827;
  padding:20px;
  border-radius:15px;
  margin:20px 0;
  color:#facc15;
}

footer{
  text-align:center;
  padding:40px;
}

.images{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:16px;
}

.images img{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  transition:transform .3s ease, box-shadow .3s ease;
}

.images img:hover{
  transform:scale(1.05);
  box-shadow:0 10px 20px rgba(0,0,0,.35);
}

.images img:active{
    transition:none;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:80vw;
    max-width:1200px;
    max-height:90vh;
    object-fit:contain;
    z-index:9999;
}


/* Container Layout */
.leaderboard-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.leaderboard-tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Base Tile Styling */
.player-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #dbdada;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Left Section: Rank and Name */
.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-rank {
    font-size: 1.15rem;
    font-weight: 800;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Right Section: Score Badge */
.player-score {
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 6px 16px;
    border-radius: 20px;
}

/* Top 3 Podiums Theme styling */
.rank-1 { background-color: #fef9c3; border-color: #fde047; }
.rank-1 .player-rank { background-color: #fde047; color: #854d0e; }
.rank-1 .player-score { background-color: #fde047; color: #854d0e; }

.rank-2 { background-color: #76b8fa; border-color: #cbd5e1; }
.rank-2 .player-rank { background-color: #cbd5e1; color: #334155; }

.rank-3 { background-color: #ffedd5; border-color: #fed7aa; }
.rank-3 .player-rank { background-color: #fed7aa; color: #9a3412; }

/* Status Text */
.loading-state, .error-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 1.1rem;
}





/*hall of fame*/
/* Core Dark Theme Settings */
body.dark-theme {
    background-color: #0b0f19; /* Deep midnight blue */
    color: #f1f5f9;
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Page Header Customizations */
.page-header {
    background: linear-gradient(180deg, #1e293b 0%, #0b0f19 100%);
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    margin: 10px 0 0 0;
    font-size: 2.5rem;
    color: #ffffff;
}

.eyebrow {
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* Dashboard Structural Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr; /* Spreads the two remaining sections evenly across the screen */
    }
}


.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Card Section Boxes */
.dashboard-section {
    background: #111827; /* Rich dark container */
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.dashboard-section h2 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 12px;
}

/* === UPCOMING TOURNAMENTS (DARK MODE) === */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-card {
    display: block;
    text-decoration: none;
    background: #1f2937;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6; /* Electric blue badge strip */
    transition: transform 0.2s, background-color 0.2s;
}

.match-card:hover {
    background: #2563eb; /* Active state glow */
    transform: translateY(-2px);
}

.match-card:hover .match-name {
    color: #ffffff;
}

.match-card:hover .match-meta {
    color: #e2e8f0;
}

.match-name {
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.match-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* === RECENT JOINERS (DARK MODE) === */
.joiners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.joiner-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1f2937;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    color: #e2e8f0;
    border: 1px solid #374151;
}

.joiner-icon {
    color: #10b981; /* High-contrast green online dot */
    font-size: 0.8rem;
}

/* Removes default link styling from the user cards */
.joiner-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Optional: Slight color shift on hover to make it feel clickable */
.joiner-link:hover .joiner-tag {
    background-color: #242f42;
    border-color: #4b5563;
    cursor: pointer;
}


/* === HALL OF FAME PLACEHOLDER STYLING === */
.fame-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fame-placeholder-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #111827;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed #374151; /* Dashed style points out coming soon items */
    opacity: 0.7;
}

.fame-medal {
    font-size: 1.75rem;
}

.fame-meta h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

.fame-meta p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* Footer & Global Classes */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #111827;
    margin-top: 60px;
}

footer p {
    margin: 4px 0;
}

.loading-state {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-style: italic;
}
