* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('/images/background.jpg') center/cover no-repeat fixed;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Tela de espera */
.idle-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}

.idle-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.idle-content {
  text-align: center;
  color: white;
}

.pickle-logo {
  width: 1200px;
  height: auto;
  margin-bottom: 60px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.idle-content h1 {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.status-text {
  font-size: 32px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.pulse-indicator {
  width: 20px;
  height: 20px;
  background: #4ade80;
  border-radius: 50%;
  margin: 0 auto;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Notificação de venda */
.sale-notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/images/background.jpg') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: slideIn 0.5s ease-out;
}

.sale-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(127, 109, 242, 0.85);
  z-index: 1;
}

.sale-notification.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.notification-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 10;
  padding: 80px;
  max-width: 90%;
}

.sale-logo {
  width: 300px;
  height: auto;
  margin-bottom: 5px;
  filter: drop-shadow(0 15px 40px rgba(0,0,0,0.4));
  animation: logoZoom 0.6s ease-out;
}

@keyframes logoZoom {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.celebration-icon {
  font-size: 140px;
  margin-bottom: 30px;
  animation: rotate 0.8s ease-in-out;
}

@keyframes rotate {
  0% { transform: rotate(0deg) scale(0); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.main-title {
  font-size: 120px;
  font-weight: 900;
  margin-bottom: 40px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
  letter-spacing: 4px;
}

.sale-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
  font-size: 36px;
}

.detail-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.detail-item.client {
  animation: fadeInUp 0.5s ease-out 0.1s backwards;
}

.detail-item.seller {
  animation: fadeInUp 0.5s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.label {
  font-weight: 600;
  opacity: 0.95;
  font-size: 32px;
}

.value {
  font-weight: 700;
  font-size: 40px;
}

.price {
  color: #4ade80;
  font-size: 64px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  animation: pulseMoney 1s ease-in-out infinite;
}

@keyframes pulseMoney {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.celebration-message {
  font-size: 32px;
  font-weight: 600;
  margin-top: 30px;
  opacity: 0.9;
  animation: fadeInUp 0.5s ease-out 0.3s backwards;
}

/* Botão de tela cheia */
.fullscreen-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

.fullscreen-btn svg {
  display: block;
}

/* Status de conexão */
.connection-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fbbf24;
  animation: blink 1.5s ease-in-out infinite;
}

.connection-status.connected .status-dot {
  background: #4ade80;
  animation: none;
}

.connection-status.disconnected .status-dot {
  background: #ef4444;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Responsividade para diferentes tamanhos de TV */
@media (max-width: 1920px) {
  .main-title { font-size: 80px; }
  .celebration-icon { font-size: 120px; }
  .sale-details { font-size: 36px; }
  .value { font-size: 42px; }
  .price { font-size: 56px; }
}

@media (max-width: 1280px) {
  .main-title { font-size: 64px; }
  .celebration-icon { font-size: 100px; }
  .sale-details { font-size: 28px; }
  .value { font-size: 32px; }
  .price { font-size: 44px; }
}
