/* Additions for Humanity 2 campaign */

.campaign-widget {
  
  --dark-text: #0a1628;
  --gray-text: #555555;
  --ocean-blue: #3E798B;
  --primary-orange: #FB4A14;
  --bar-blue: #1C404C;

  position: relative;
  height:700px;      
  overflow: hidden;   
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.widget-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50%;
  background: #ffffff;
  z-index: 0;
}

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

.wind-line {
  position: absolute;
  width: 200px;
  height: auto;
  opacity: 0;
  animation: windDrift 8s ease-in-out infinite;
}

.wind-1 { top: 12%; left: 5%; animation-delay: 0s; animation-duration: 5s; }
.wind-2 { top: 38%; left: 55%; animation-delay: -1.5s; animation-duration: 6.5s; }
.wind-3 { top: 62%; left: 20%; animation-delay: -3s; animation-duration: 5.8s; }

@keyframes windDrift {
  0% { transform: translateX(-80px) scaleX(0.9); opacity: 0; }
  25% { opacity: 0.45; }
  75% { opacity: 0.45; }
  100% { transform: translateX(150px) scaleX(1.1); opacity: 0; }
}

.widget-ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--ocean-blue);
  z-index: 1;
}

.boat-wrapper {
  position: absolute;
  bottom: 48%; 
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  /* max-width: 480px; */
  max-width: 350px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none; 
}

.boat-scene {
  width: 100%;
  animation: boatFloat 5s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes boatFloat {
  0%, 100% { transform: translateY(0) rotate(-0.5deg) }
  50% { transform: translateY(-12px) rotate(0.5deg) }
}

.boat-img {
  width: 100%;
  height: auto;
  display: block; 
}

.wave-wrapper {
  position: absolute;
  bottom: calc(50% - 30px); /* Zentriert auf der horizontalen Trennlinie */
  left: 0;
  right: 0;
  height: 60px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  width: 200%;
  height: 60px;
}

.wave1 { animation: waveMove 6s linear infinite; }
.wave2 { animation: waveMove 9s linear infinite reverse; opacity: 0.6; top: 10px; }

@keyframes waveMove {
  from { transform: translateX(0) }
  to { transform: translateX(-50%) }
}

.widget-progress-section {
  position: absolute;
  top: calc(50% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 460px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 4px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--gray-text);
  text-transform: uppercase;
  font-weight: 600;
}

.progress-amount {
  font-size: 1.4rem;
  color: var(--primary-orange);
  font-weight: 700;
}

.progress-amount span {
  font-size: 0.85rem;
  color: var(--gray-text);
  font-weight: 400;
}

.wind-bar-container {
  height: 12px;
  background: #e9ecef;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 10px;
}

.wind-bar-fill {
  height: 100%;
  background: var(--bar-blue);
  transition: width 0.4s ease;
}

.progress-percent {
  text-align: right;
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 16px;
  font-weight: 600;
}

.widget-controls {
  display: flex;
  width: 100%;
  gap: 12px;
}

.btn-action {
  flex: 1;
  padding: 14px 20px;
  background: var(--primary-orange);
  border: none;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(251, 74, 20, 0.2);
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(251, 74, 20, 0.3);
}

#resetButton {
  display: none;
  background: var(--bar-blue);
  box-shadow: 0 4px 12px rgba(28, 64, 76, 0.2);
}

#resetButton:hover {
  box-shadow: 0 6px 15px rgba(28, 64, 76, 0.3);
}