/* Styles for guest user overlay */
.guest-overlay-container {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(30, 64, 175, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.guest-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.98));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Specific styling for subscription banner overlay */
.subscription-banner.guest-overlay-container {
  min-height: 280px;
  padding: 2rem;
}

@media (min-width: 768px) {
  .subscription-banner.guest-overlay-container {
    min-height: 320px;
    padding: 3rem;
  }
}

.guest-overlay-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #60a5fa;
  animation: pulse 2s infinite;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.2));
  padding: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.guest-overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
  background: linear-gradient(to right, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guest-overlay-text {
  margin-bottom: 1.5rem;
  max-width: 480px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.guest-overlay-login {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.125rem;
}

.guest-overlay-login:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Modern forecast period selector */
.forecast-period-selector {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.period-slider-container {
  position: relative;
  padding: 0.5rem 0;
}

.period-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 3px;
  outline: none;
  margin: 1rem 0;
}

.period-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.period-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.period-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.period-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 1rem;
}

.period-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0.5rem;
}

.preview-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.preview-notice i {
  color: #f59e0b;
}

.preview-notice span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.upgrade-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  margin-left: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.upgrade-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.3);
  }
  70% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(96, 165, 250, 0);
  }
  100% {
    opacity: 0.9;
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

.guest-blur-content {
  filter: none;
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
  transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
  .guest-overlay-container {
    min-height: 160px;
  }
  
  .guest-overlay {
    padding: 1.25rem;
  }

  .guest-overlay-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .guest-overlay-text {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .guest-overlay-icon {
    font-size: 1.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .guest-overlay-login {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    width: calc(100% - 2rem);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .guest-overlay-container {
    min-height: 180px;
  }
  
  .guest-overlay {
    padding: 1rem;
  }

  .guest-overlay-title {
    font-size: 1.125rem;
  }

  .guest-overlay-text {
    font-size: 0.8125rem;
  }
}