/* Dayzo Live & TV Shared Aesthetic Styles */

body.mode-live, body.mode-tv {
  background: #000000;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-family-base);
}

.live-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
}

.live-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
  backdrop-filter: blur(2px);
}

.live-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-brand {
  font-weight: 900;
  font-size: 2rem;
  color: #FFFFFF;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.live-brand span {
  color: var(--color-primary);
}

/* Central Countdown Display */
.live-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.live-title {
  font-size: clamp(2rem, 8vh, 6rem);
  font-weight: 800;
  margin-bottom: 32px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8);
  letter-spacing: -0.03em;
  color: var(--color-text, #FFFFFF);
}

.live-countdown-wrap {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.live-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.live-num {
  font-size: clamp(4rem, 15vh, 12rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: .9;
  text-shadow: 0 10px 40px rgba(0,0,0,0.5);
  font-family: var(--font-family-numbers);
  color: var(--color-numbers, #FFFFFF);
}

.live-label {
  font-size: clamp(0.875rem, 2vh, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
}

/* The Final Countdown - High Intensity */
.live-final-10 .live-final-num {
  font-size: clamp(10rem, 40vh, 25rem);
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
  animation: pulse-zoom 1s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-zoom {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.live-finished-text {
  font-size: clamp(3rem, 10vh, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 0 40px var(--color-primary);
  animation: shine 3s infinite ease-in-out;
}

@keyframes shine {
  0%, 100% { opacity: 0.8; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-10px); }
}

.live-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 0;
}

.live-qr-box {
  background: rgba(255, 255, 255, 1);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  color: #000;
}

.live-qr-label {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.live-actions .btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.live-actions .btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .live-container { padding: 20px 16px; }
  .live-countdown-wrap { gap: clamp(8px, 3vw, 20px); }
  .live-segment { min-width: 0; flex: 1; }
  .live-num { font-size: clamp(2.5rem, 13vw, 6rem); }
  .live-label { font-size: clamp(0.6rem, 2vw, 1rem); margin-top: 6px; }
  .live-title { font-size: clamp(1.5rem, 6vw, 4rem); margin-bottom: 16px; }
  .live-header { flex-direction: column; gap: 8px; }
  .live-brand { font-size: 1.5rem; }
  .live-footer { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
  .live-actions { display: flex; gap: 8px; width: 100%; justify-content: center; }
  .live-qr-box { padding: 8px 16px; gap: 10px; }
}

/* Auto TV Mode for Landscape Mobile */
body.tv-mode .live-header,
body.tv-mode .live-footer,
body.tv-mode .personal-content-box {
  display: none !important;
}

body.tv-mode .live-container {
  padding: 0;
  justify-content: center;
}

body.tv-mode .live-title {
  font-size: 10vh;
  margin-bottom: 2vh;
}

body.tv-mode .live-num {
  font-size: 40vh;
}

body.tv-mode .live-label {
  font-size: 5vh;
}

/* Personal Content Styles */
.personal-content-box {
  margin-top: 40px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.personal-name {
  font-size: clamp(2rem, 5vh, 4rem);
  font-weight: 800;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.personal-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
}

.personal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-message {
  font-size: clamp(1.1rem, 2vh, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 500;
  white-space: pre-wrap;
}
