/* assets/css/style.css */

:root {
  --bg: #0a0a0a;
  --accent: #ffd700;
  --text-light: #d1d5db;
  --text-muted: #9ca3af;
  --card-bg: rgba(18, 18, 18, 0.65);
  --table-bg: rgba(18, 18, 18, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(30, 30, 30, 0.55) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ====================== HEADER ====================== */
header {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: 38px;
  width: auto;
}

.logo-text {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.4px;
}

/* Centered Navigation Menu */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a.active {
  color: var(--accent);
}

.pill {
  padding: 9px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pill-kick {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

.pill-kick:hover {
  background: #ffed4e;
}

main {
  padding: 6rem 8% 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ====================== WELCOME ====================== */
.welcome {
  text-align: center;
  margin-bottom: 7rem;
}

.welcome h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.welcome h1 .yellow {
  color: var(--accent);
  font-style: italic;
}

.welcome p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 1.2rem auto 0;
  line-height: 1.5;
}

.status-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pill-status, .pill-discord {
  padding: 10px 26px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(31, 31, 31, 0.35);
  color: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.pill-status:hover, .pill-discord:hover {
  opacity: 0.65;
  filter: brightness(0.85);
}

.pill-status {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.pill-discord {
  color: #7289da;
  border-color: rgba(114, 137, 218, 0.4);
}

.red-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ====================== FEATURE CARDS ====================== */
.cards-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  width: 320px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  text-align: center;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
}

.card-middle {
  transform: translateY(-45px);
  z-index: 2;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.card h3 {
  color: var(--accent);
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* ====================== EMBEDDED SECTION TITLES ====================== */
.section-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 2.1rem;
  font-weight: 600;
      color: #b1b1b1;
  text-align: center;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 2.5rem;
  letter-spacing: 0.5px;
}

.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, #374151, transparent);
}

.section-title::before {
  left: -130px;
}

.section-title::after {
  right: -130px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ====================== TABLES & BIGGEST WINS ====================== */
.table-container {
  margin-bottom: 8rem;
}

table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--table-bg);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

th, td {
  padding: 1rem 1.8rem;
}

th {
  background: rgba(255, 215, 0, 0.08);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
}

td {
  border-top: 1px solid rgba(255,255,255,0.06);
}

tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.rank {
  width: 60px;
  color: var(--accent);
  font-weight: 700;
}

.tickets {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.biggest-wins {
  max-width: 1000px;
  margin: 0 auto 8rem;
}

.win-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.8rem;
  height: 360px;
}

.win-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 110px;
  height: 100%;
}

.win-bar {
  display: block;
  width: 72px;
  border-radius: 8px 8px 0 0;
  transition: all 0.4s ease;
}

.win-bar-1 { height: 70%; background: linear-gradient(to top, #ffd700, #ffed4e); }
.win-bar-2 { height: 60%; background: linear-gradient(to top, #c0c0c0, #e5e5e5); }
.win-bar-3 { height: 50%; background: linear-gradient(to top, #cd7f32, #e8b588); }
.win-bar-4 { height: 40%; background: linear-gradient(to top, #b3b3b3, #d1d1d1); }
.win-bar-5 { height: 30%; background: linear-gradient(to top, #a8a8a8, #c4c4c4); }

.win-multiplier {
  margin-top: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.win-player {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 4px;
  text-align: center;
}

/* Live Bets */
.live-bets th,
.live-bets td {
  padding: 1rem 1.8rem;
}

.live-bets th:nth-child(4),
.live-bets td:nth-child(4) {
  text-align: right;
  padding-right: 1.8rem;
}

.live-bets th {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
}

.live-bets td:nth-child(4) {
  color: #22c55e;
  font-weight: 600;
}

/* ====================== FOOTER ====================== */
footer {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 215, 0, 0.10);
  padding: 3rem 8% 2rem;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-left img {
  height: 38px;
  width: auto;
}

.footer-left .logo-text {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-left a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
}

.footer-left a:hover {
  color: var(--accent);
}

.footer-right {
  display: flex;
  gap: 5rem;
}

.footer-column h4 {
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--text-light);
}

/* ====================== LEGAL PAGES (TOS & Privacy) ====================== */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  backdrop-filter: blur(8px);
  line-height: 1.75;
}

.legal-content h1 {
  text-align: center;
  color: var(--accent);
}

.legal-content h2 {
  color: var(--accent);
  margin-top: 1rem;
  font-size: 1.45rem;
}

.legal-content ul {
  padding-left: 1.8rem;
  margin: 1rem 0;
}

.legal-content li {
  margin-bottom: 0.6rem;
}

.legal-content p {
  margin-bottom: 1.1rem;
}

/* Header Action Buttons Hover Effects */
.redeem-btn:hover {
    filter: brightness(0.85);
}

.logout-btn:hover {
    filter: brightness(0.85);
}

/* Optional: Smooth transition */
.redeem-btn, .logout-btn {
    transition: all 0.2s ease;
}

/* Redeem Button - Clean & Flat */
.redeem-btn {
    font-family: 'Outfit', sans-serif;
    appearance: none;
    border: none;
    outline: none;
    padding: 11px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--accent);
    color: #000;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
        justify-content: center;
}

.redeem-btn:hover {
    filter: brightness(0.85);
}

.redeem-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Out of Stock Card - Full Dim */
.card.out-of-stock {
    opacity: 0.65;
    filter: brightness(0.75);
}

.card.out-of-stock .redeem-btn {
    opacity: 0.6;
}

/* Username Truncation */
.player-name {
    max-width: 180px;           /* Adjust this value if needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* For Biggest Wins section */
.win-player {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Navigation Icon Logic */
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
  color: var(--text-muted); /* Inactive color */
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-menu .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--text-muted); /* This colors the "mask" */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.3s ease;
}

/* Assign the specific images to the masks */
.icon-home {
  -webkit-mask-image: url('/home.png');
  mask-image: url('/home.png');
}

.icon-plinko {
  -webkit-mask-image: url('/plinko.png');
  mask-image: url('/plinko.png');
}

/* Hover & Active States */
.nav-menu a:hover, 
.nav-menu a.active {
  color: var(--accent);
}

/* When the link is hovered or active, change the icon color to yellow */
.nav-menu a:hover .icon,
.nav-menu a.active .icon {
  background-color: var(--accent);
}