/* ==========================================
   HEADER & NAVIGATION
   All header-related styles
========================================== */

/* === BURGER MENU === */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 7px;  /* Mehr Abstand zwischen den Linien */
  cursor: pointer;
  z-index: 1001;
  padding: 12px;  /* Mehr Padding für größeren Klickbereich */
}

.burger-menu span {
  width: 35px;  /* Größer: von 25px auf 35px */
  height: 4px;  /* Dicker: von 3px auf 4px */
  background: white;
  border-radius: 3px;
  transition: 0.3s;
  display: block;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 7px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -7px);
}

/* === ORIGINAL HEADER === */
.headbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #D22B2B;
  color: white;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.headbar .logo {
  font-size: 24px;
  font-weight: bold;
  z-index: 1001;
}

.headbar .nav-links {
  display: flex;
  gap: 0;
}

.headbar .nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 20px;
  display: inline-block;
  transition: color 0.3s, transform 0.3s, background-color 0.3s;
  border-radius: 5px;
  padding: 5px 10px;
  background-color: transparent;
}

.headbar .nav-links a:hover,
.headbar .nav-links a.active {
  color: #FF4500;
  background-color: white;
  transform: scale(1.1);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

.register-btn {
  font-weight: bold;
  font-size: 24px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  animation: blinkText 1s infinite;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.register-btn:hover {
  animation: none;
  transform: scale(1.2);
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.register-arrow {
  display: inline-block;
  font-size: 28px;
  font-weight: bold;
  margin-right: 10px;
  animation: blinkGrow 1s infinite;
}

@keyframes blinkGrow {
  0% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.6); }
  100% { opacity: 0.5; transform: scale(0.8); }
}

/* === INFO BAR (Viewer Counter) === */
.headline-info-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  padding: 10px 20px;
  font-size: 14px;
  color: #212529;
  border-bottom: 2px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  text-align: center;
}

.headline-info-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viewer-info {
  color: #212529;
  font-weight: 600;
}

.viewer-info #viewer-count {
  font-weight: 800;
  color: #D22B2B;
  font-size: 15px;
}

/* MOBILE SIGNUP BUTTON - Hidden on Desktop */
.mobile-signup-btn {
  display: none;
  background: white;
  color: #D22B2B;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

/* ===================================================================
   NEW HEADER DESIGN
   =================================================================== */

.headbar-new {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #D22B2B;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 10px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 1000;
}

.logo-new {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  letter-spacing: -0.5px;
  justify-self: start;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-new:hover {
  opacity: 0.8;
}

.sale-countdown-btn {
  background: white;
  color: #D22B2B;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  justify-self: center;
  grid-column: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.sale-countdown-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.sale-offer {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.countdown-timer {
  font-size: 12px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3px;
  color: #212529;
  transition: color 0.3s ease;
}

/* Countdown Urgency States */
.countdown-timer.countdown-warning {
  color: #f59e0b;
  font-weight: 900;
}

.countdown-timer.countdown-urgent {
  color: #dc2626;
  animation: countdown-pulse 2s ease-in-out infinite;
}

.countdown-timer.countdown-critical {
  color: #dc2626;
  animation: countdown-pulse-fast 1s ease-in-out infinite;
}

.countdown-timer.countdown-final {
  color: #dc2626;
  animation: countdown-blink 0.5s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

@keyframes countdown-pulse-fast {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes countdown-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.claim-btn-compact {
  background: #D22B2B;
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.claim-btn-compact:hover {
  background: #b82424;
  transform: scale(1.05);
}

.burger-menu-new {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  justify-self: end;
  grid-column: 3;
}

.burger-menu-new span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu-new.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-new.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu-new.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu-new {
  position: fixed;
  top: 68px;
  right: 0;
  background: white;
  width: 280px;
  max-height: 0;
  overflow: hidden;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.1);
  transition: max-height 0.3s ease;
  border-radius: 0 0 0 12px;
}

.nav-menu-new.active {
  max-height: 300px;
  padding: 20px 0;
}

.nav-menu-new a {
  display: block;
  padding: 16px 30px;
  color: #495057;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-menu-new a:hover,
.nav-menu-new a.active {
  background: #f8f9fa;
  color: #D22B2B;
  border-left-color: #D22B2B;
}
