/* ========================================
   CSS Variables (Design System)
======================================== */
:root {
  --color-background: hsl(222, 47%, 8%);
  --color-foreground: hsl(210, 40%, 98%);
  --color-card: hsl(222, 47%, 11%);
  --color-card-alt: hsl(222, 47%, 9%);
  --color-secondary: hsl(222, 47%, 15%);
  --color-muted: hsl(222, 30%, 18%);
  --color-muted-foreground: hsl(215, 20%, 65%);
  --color-border: hsl(222, 30%, 20%);
  --color-primary: hsl(45, 93%, 47%);
  --color-primary-dark: hsl(222, 47%, 8%);
  --color-success: hsl(142, 71%, 45%);
  --color-vs: hsl(0, 84%, 60%);
  --color-header-start: hsl(0, 84%, 50%);
  --color-header-end: hsl(0, 70%, 40%);
  
  --radius: 0.75rem;
  --font-family: 'Outfit', sans-serif;
}


/* ========================================
   Animations
======================================== */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px hsla(142, 71%, 45%, 0.4);
  }
  50% {
    box-shadow: 0 0 16px hsla(142, 71%, 45%, 0.7);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   Layout
======================================== */
.container {
  min-height: 100vh;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .container {
    padding: 4rem 1rem;
  }
}

.winnings-section {
  width: 100%;
  margin: 0 auto;
}

/* ========================================
   Header
======================================== */
.header {
  position: relative;
  overflow: hidden;
  background-color: var(--switch-darkBGShaded);
  padding: 1rem;
}

@media (min-width: 768px) {
  .header {
    /*padding: 2rem;*/
  }
}
.flex_c {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    /*align-items: center;*/
}
@media (max-width: 43rem) {
    .flex_c {
        display: -webkit-box;
        display: -webkit-block;
        display: -ms-flexbox;
        display: block;
        justify-content: center;
        align-items: center;
    }
}
.header-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

.header-content {
  position: relative;
  display: flex;
  /*align-items: center;*/
  /*justify-content: center;*/
  gap: 0.75rem;
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--switch-textWhite);
}

@media (min-width: 768px) {
  .header-title {
    font-size: 1.475rem;
  }
}

.trophy-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--switch-betopick);
  cursor:pointer;
}

/* ========================================
   Table Container
======================================== */
.table-container {
  /*border-radius: 0 0 var(--radius) var(--radius);*/
  overflow: hidden;
  border: 1px solid var(--switch-darkBorderlight);
  border-top: none;
}

/* ========================================
   Table Header
======================================== */
.table-header {
  display: none;
  background-color: var(--switch-darkBGShaded);
  padding: 1rem;
  /*border-bottom: 1px solid var(--color-border);*/
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .table-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px 80px;
  }
}

.text-center {
  text-align: center;
}

/* ========================================
   Table Body & Rows
======================================== */
.table-body {
  border-top: 1px solid var(--switch-darkBorderlight);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: .6rem;
  transition: background-color 0.3s ease;
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}

@media (min-width: 768px) {
  .table-row {
    grid-template-columns: 80px 1fr 100px 80px;
    gap: 0;
    padding: 1.25rem 1rem;
  }
}

.table-row:hover {
  background: var(--switch-darkBG);
}

.row-odd {
  background-color: var(--switch-darkBGShaded);
}

.row-even {
  background-color: var(--switch-darkBGShaded);
}

/* ========================================
   Table Cells
======================================== */
.cell-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted-foreground);
  font-weight: 500;
}

@media (min-width: 768px) {
  .cell-date {
    display: block;
  }
}

.mobile-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .mobile-label {
    display: none;
  }
}

.cell-match {
  display: flex;
  align-items: center;
  font-weight: 400;
  color: var(--switch-textWhite);
}

.vs {
  color: var(--color-vs);
  font-weight: 700;
  margin: 0 0.25rem;
}

.cell-tips-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .cell-tips-result {
    display: contents;
  }
}

.tip-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .tip-wrapper {
    justify-content: center;
  }
}

.result-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .result-wrapper {
    justify-content: center;
  }
}

/* ========================================
   Tip Badge
======================================== */
.tip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  background-color: var(--switch-darkBGFade);
  color: var(--switch-textWhite);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  min-width: 60px;
  /*box-shadow: 0 0 2px 0px hsl(245.81deg 39.91% 45.69%);*/
}

/* ========================================
   Success Indicator
======================================== */
.success-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: hsla(142, 71%, 45%, 0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}

.success-indicator svg {
  color: var(--color-success);
}

/* ========================================
   Score Display
======================================== */
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  line-height: 1.2;
  color: var(--switch-textWhite);
}

.score-separator {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* ========================================
   Stats Footer
======================================== */
.stats-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--switch-betopick) !important;
  margin: 2px;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--switch-darkBorderlight);
}

.stat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-success);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.stat-label {
  color: #fff !important;
  font-size: 13px;
}

.stat-value {
  font-weight: 700;
}

.stat-success {
  color: var(--color-success);
}

.stat-primary {
  color: var(--color-primary);
}

.trophy-icon-small {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
}
