/* C:\xampp\htdocs\sasunsportactweb\css\scoreboard.css */
/* Sasun Sport Act - World-Class Broadcast TV Scoreboard & Colossal Sponsors System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&family=Montserrat:wght@800;900&display=swap');

:root {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-card: #E2E8F0;
  --border-accent: #BFDBFE;
  --brand-blue: #2563EB;
  --brand-blue-dark: #1D4ED8;
  --brand-blue-deep: #1E40AF;
  --brand-blue-light: #EFF6FF;
  --text-main: #0F172A;
  --text-muted: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Light Stadium Background */
.stadium-light-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
    #F8FAFC;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Giant Fullscreen Scoreboard Stage (Balanced upwards, zero-overflow, 100% Fit with 125px sponsor footer) */
.scoreboard-giant-stage {
  flex: 1;
  width: 100vw;
  height: calc(100vh - 125px);
  padding: 1vh 2vw 1.2vh 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* The Colossal Center Card */
.scoreboard-giant-card {
  width: 100%;
  height: 100%;
  max-width: 1800px;
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1.15fr auto 1.15fr;
  align-items: center;
  justify-content: center;
  padding: clamp(0.6rem, 1.8vh, 2.2rem) clamp(1rem, 2.5vw, 3.5rem);
  gap: clamp(1rem, 2.5vw, 4.5rem);
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.scoreboard-giant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, #1E40AF, #3B82F6, #1E40AF);
}

/* Team Showcase Box */
.team-showcase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0.5vh 0.5vw;
}

/* Giant Logo Frame */
.giant-logo-frame {
  width: clamp(140px, 24vw, 330px);
  height: clamp(140px, 24vw, 330px);
  max-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: clamp(0.5rem, 1.5vh, 1.5rem);
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.giant-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.15));
}

/* Giant Team Name (With safe line-height & padding against character clipping) */
.giant-team-name {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3.8vw, 4rem);
  font-weight: 900;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.24;
  padding: 0.35rem 0.5rem;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================================================
   CENTER SCORE DISPLAY AREA
   ========================================================= */
.score-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  height: 100%;
  padding: 0 clamp(0.5rem, 1.5vw, 2.5rem);
}

/* Live Timer Pill */
.live-timer-badge {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  color: #1D4ED8;
  font-family: 'Outfit', monospace;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.6vw, 1.5rem);
  letter-spacing: 0.08em;
  padding: clamp(0.25rem, 0.6vh, 0.45rem) clamp(1.4rem, 2.2vw, 2.5rem);
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: clamp(0.2rem, 0.8vh, 0.6rem);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.09);
}

/* Colossal Score Digit Container */
.score-digits-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2.2rem);
  line-height: 0.86;
}

.score-digit {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(7rem, 17vw, 18.5rem);
  color: #0F172A;
  letter-spacing: -0.04em;
  user-select: none;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.score-divider {
  font-size: clamp(3.2rem, 7.5vw, 8rem);
  color: #2563EB;
  font-weight: 900;
  animation: colonPulse 2s infinite ease-in-out;
}

@keyframes colonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.95); }
}

/* 🚩 Giant Corner Kicks Box */
.giant-corner-box {
  margin-top: clamp(0.5rem, 1.6vh, 1.4rem);
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  padding: clamp(0.35rem, 0.85vh, 0.6rem) clamp(1.5rem, 2.6vw, 2.6rem);
  display: inline-flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.85rem);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.corner-label {
  font-size: clamp(0.85rem, 1.3vw, 1.25rem);
  font-weight: 900;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.corner-values {
  font-family: 'Outfit', monospace;
  font-size: clamp(3.0rem, 4vw, 5rem);
  font-weight: 900;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.corner-values .val-home, .corner-values .val-away {
  color: #2563EB;
}

/* =========================================================
   👑 ELITE BROADCAST ACTION POPUP (ULTRA-OPTIMIZED FOR TV)
   ========================================================= */
.action-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.88); /* Clean solid dark cinema overlay - ZERO BLUR LAG */
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  overflow: hidden;
}

.action-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Disabled shockwave for 60 FPS TV performance */
.stadium-shockwave {
  display: none !important;
}

.action-popup-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 2.25rem; /* Tamamı tam radiuslu, yumuşak köşeler */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  max-width: 580px; /* Ekrana tam oturan kompakt ve şık genişlik */
  width: 90%;
  max-height: 84vh;
  text-align: center;
  padding: 1.75rem 1.75rem 2rem;
  transform: translate3d(0, 15px, 0) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 10;
  contain: content;
}

.action-popup-overlay.active .action-popup-card {
  transform: translate3d(0, 0, 0) scale(1);
}

.action-popup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1E40AF, #3B82F6, #1E40AF);
  border-radius: 2.25rem 2.25rem 0 0;
}

.goal-kinetic-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.goal-kinetic-title {
  font-family: 'Montserrat', 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goalSlamIn 0.4s ease-out forwards;
}

@keyframes goalSlamIn {
  0% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.action-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.action-tag-pill.penalty-earned {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 2px solid #3B82F6;
}

.action-tag-pill.corner {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 2px solid #BFDBFE;
}

.action-tag-pill.penalty-missed {
  background: #F1F5F9;
  color: #334155;
  border: 2px solid #CBD5E1;
}

.action-tag-pill.yellow {
  background: #FFFBEB;
  color: #D97706;
  border: 2px solid #FCD34D;
}

.action-tag-pill.red {
  background: #FEF2F2;
  color: #DC2626;
  border: 2px solid #FCA5A5;
}

.action-logo-stage {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-broadcast-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  pointer-events: none;
}

.action-logo-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 5;
}

.referee-3d-card-wrapper {
  width: 80px;
  height: 115px;
  margin: 0 auto 0.75rem auto;
}

.referee-3d-card {
  width: 100%;
  height: 100%;
  border-radius: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.referee-3d-card.yellow {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: 2px solid #FCD34D;
}

.referee-3d-card.red {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  border: 2px solid #FCA5A5;
}

.action-title-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: #0F172A;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.action-assist-text {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: #1D4ED8;
  margin-bottom: 0.5rem;
}

.action-sub-text {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 0.5rem;
}

.action-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1E40AF;
  color: #FFFFFF;
  padding: 0.3rem 1.25rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
}

.action-score-pill .score-val {
  color: #60A5FA;
}

.action-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background: #2563EB;
  width: 100%;
  transform-origin: left;
  border-radius: 0 0 2.25rem 2.25rem;
}

.action-progress-bar.active {
  animation: actionTimer 7.5s linear forwards;
}

@keyframes actionTimer {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* =========================================================
   🏆 COLOSSAL BROADCAST SPONSOR TICKER (HEIGHT: 125PX)
   ========================================================= */
.sponsor-ticker-wrapper {
  background: #FFFFFF;
  border-top: 3.5px solid #2563EB;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.07);
  height: 125px;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 30;
}

.sponsor-ticker-label {
  background: #2563EB;
  color: #FFFFFF;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 3vw, 4rem);
  font-size: clamp(0.95rem, 1.4vw, 1.35rem);
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 40;
  box-shadow: 6px 0 25px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.sponsor-track-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  contain: content;
}

/* 60 FPS GPU-Accelerated Edge Fades for Smart TVs (Zero CPU overhead) */
.sponsor-track-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(to right, #FFFFFF 20%, rgba(255, 255, 255, 0) 100%);
  z-index: 10;
  pointer-events: none;
}

.sponsor-track-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(to left, #FFFFFF 20%, rgba(255, 255, 255, 0) 100%);
  z-index: 10;
  pointer-events: none;
}

@keyframes tickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.sponsor-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 45s linear infinite;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
  will-change: transform;
}

/* Dignified Sponsor Brand Item - Pure integer spacing, no subpixel jitter */
.sponsor-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 4.5rem;
  color: #0F172A;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size:4.0rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sponsor-item img {
  height: 52px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Floating Quick Navigation */
.floating-scoreboard-tools {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.floating-scoreboard-tools:hover {
  opacity: 1;
}

/* Goal Flash on Main Scoreboard Card */
@keyframes goalFlashLight {
  0% {
    border-color: #2563EB;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  }
  50% {
    border-color: #1D4ED8;
    box-shadow: 0 0 70px 20px rgba(37, 99, 235, 0.35);
  }
  100% {
    border-color: #E2E8F0;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.07);
  }
}

.goal-updated-anim {
  animation: goalFlashLight 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
