/* Arena Player CSS - Broadcast content controls */

:root {
  --dark-brown-semi: rgba(61, 47, 31, 0.8);
}

/* Fade overlay base styles (JavaScript animations handle the actual fading) */
.fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25; /* Above ticker (z-index 20) to cover everything in match content */
  pointer-events: none;
  background-color: transparent;
}

.match-commentary {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  font-size: 1rem;
  padding: 8px 16px;
  z-index: 25;
  max-width: 80%;
  box-sizing: border-box;
  font-family: monospace;
}

/* Break player styles */
.break-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

.fight-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.fighter {
  background: #f0f0f0;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 15px;
  font-weight: bold;
  font-size: 1.4rem;
  flex: 1;
  max-width: 40%;
}

.vs {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff5722;
}

.countdown {
  font-size: 1.2rem;
  margin-top: 15px;
  color: #555;
}

/* Standby player styles */
.standby-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

.standby-content h2 {
  margin-top: 0;
  color: #333;
}

.pulsing-text {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #ff5722;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Match card content */
.match-monsters {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.match-monsters div {
  font-weight: 600;
  margin: 1px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 0.85rem;
  color: #2F2F2F;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.match-monsters span {
  font-size: 0.75rem;
  color: #555;
  margin: 0;
  line-height: 1.2;
}

/* Ticker container (overlaps bottom of ring) */
.ticker-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 170px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  z-index: 20;
  display: flex;
  align-items: flex-start;
  padding: 0 0px;
  box-sizing: border-box;
  overflow: visible;
}

.ticker-content {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  width: 100%;
  padding: 8px 0px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 20px;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding: 2px 28px;
  border-bottom: 1px solid #333;
  background: darkred;
}

.ticker-title {
  font-weight: bold;
}

.ticker-wait-count {
  color: #ffb74d;
  font-size: 20px;
}

.ticker-matches {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0px 50px;
  overflow: visible;
}

.ticker-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  position: relative;
  cursor: pointer;
}

.ticker-monster-a,
.ticker-monster-b {
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ticker-vs {
  font-size: 14px;
  color: #999;
  margin: 1px 0;
}

.ticker-separator {
  color: #666;
  margin: 0 4px;
}

.ticker-no-matches {
  color: #666;
  font-style: italic;
}

/* Schedule Container */
.schedule-container {
  display: flex;
  flex-direction: row;
  gap: var(--arena-gap);
  width: 100%;
}

/* Break Content Container */
.break-content-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(135deg, #8B7355 0%, #A0916B 50%, #8B7355 100%); */
  background: black;
  /* No transforms - break content should not be affected by ring positioning */
}

/* Standby Content Container */
.standby-content-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  /* background: linear-gradient(135deg, #8B7355 0%, #A0916B 50%, #8B7355 100%); */
  /* No transforms - standby content should not be affected by ring positioning */
}

/* Match Tooltip Portal Styles */
.match-tooltip-portal {
  position: fixed;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tooltip-content {
  background: #f5e6d3; /* parchment color */
  background-image: url('/shared/images/parchment-tex.png');
  border: 3px solid var(--dark-brown-semi);
  border-radius: 3px;
  padding: 16px;
  min-width: 380px;
  position: relative;
  box-shadow: 
    inset 0 0 30px rgba(101, 67, 33, 0.3), /* inner darkening */
    inset 0 0 60px rgba(101, 67, 33, 0.15), /* broader inner darkening */
    0 4px 15px rgba(0, 0, 0, 0.2); /* subtle outer shadow */
}

/* Add weathered vignette overlay */
.tooltip-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 3px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(101, 67, 33, 0.15) 85%, rgba(101, 67, 33, 0.25) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure content is above the vignette */
.tooltip-content > * {
  position: relative;
  z-index: 2;
}

.tooltip-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dark-brown-semi);
}

.tooltip-match-id {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-brown-semi);
  margin-bottom: 2px;
  line-height: 1.1;
}

.tooltip-match-time {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark-brown-semi);
  opacity: 0.8;
}

.tooltip-monsters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tooltip-monster {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.tooltip-monster-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 8px;
  opacity: 0.7;
  /* Create silhouette effect */
  filter: brightness(0) saturate(100%) contrast(1000%) sepia(100%) hue-rotate(30deg);
}

/* Flip the left monster (monsterA) */
.tooltip-monster:first-child .tooltip-monster-image {
  transform: scaleX(-1);
}

.tooltip-monster-name {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.1;

  padding: 4px 8px;
  width: 100%;
  color: #c9ac6d; /* Light parchment text color */
  background-color: var(--dark-brown-semi);
  mix-blend-mode: multiply;
  
}

.tooltip-owner-name {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-radius: 2px;
  letter-spacing: 0.5px;

  color: var(--dark-brown-semi);
}

.tooltip-vs {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-brown-semi);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  margin: 0 8px;
  align-self: center;
}
