
/* ============================================
   GENERATION PAGE STARS BALANCE (2025-12-09)
   ============================================ */

/* Баланс звезд в хедере страницы генерации */
.generation-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.generation-form-header .header-title-box {
  flex: 1;
  text-align: center;
}

.generation-form-header .header-title-box h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.generation-stars-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 180, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  text-decoration: none;
  color: #ffd700;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.generation-stars-balance:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 180, 0, 0.2) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.generation-stars-balance .stars-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.generation-stars-balance .stars-count {
  color: #fff;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
  .generation-stars-balance {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .generation-stars-balance .stars-icon {
    font-size: 14px;
  }
  
  .generation-form-header .header-title-box h2 {
    font-size: 16px;
  }
}

/* ============================================
   PREMIUM LOADING & VIDEO PLAYER (2025-11-24)
   ============================================ */

/* 1. Premium Loading State (Cinema Card) */
.generation-progress-container {
  background: rgba(20, 20, 20, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Shimmer Effect Background */
.generation-progress-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* Pulsating Center Icon */
.progress-loader-icon {
  font-size: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(204, 255, 0, 0.4));
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Modern Progress Bar */
.progress-bar-wrapper {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 100px !important;
  height: 6px !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3) !important;
}

.progress-bar {
  background: linear-gradient(90deg, #CCFF00, #00FF88) !important;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.5) !important;
}

/* Status Text */
.progress-status {
  color: #CCFF00 !important; /* Neon Green */
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  margin-bottom: 16px !important;
}

.progress-tips {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  max-width: 80%;
  line-height: 1.5;
}

/* 2. Premium Video Player Container */
.generation-result-video-wrapper {
  background: #000 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform 0.3s ease !important;
}

/* Video Player Controls Customization (Webkit) */
.generation-result-video::-webkit-media-controls-panel {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important;
}

/* Download Button in Player Context */
.video-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

.btn-action-modern {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-action-modern.primary {
  background: #CCFF00;
  color: #000;
  border: none;
  font-weight: 700;
}

.btn-action-modern.primary:hover {
  background: #b3e600;
  box-shadow: 0 5px 20px rgba(204, 255, 0, 0.3);
}

/* ============================================
   INSUFFICIENT STARS MODAL (2025-12-09)
   Модальное окно недостатка звезд для генерации
   ============================================ */

.insufficient-stars-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.insufficient-stars-content {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.1);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.insufficient-stars-content .modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

.insufficient-stars-content .modal-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 50%;
  animation: starPulse 2s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); }
}

.insufficient-stars-content .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
  letter-spacing: -0.3px;
}

.insufficient-stars-content .modal-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.insufficient-stars-content .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

.insufficient-stars-content .modal-body {
  margin-bottom: 24px;
}

.insufficient-stars-content .stars-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.insufficient-stars-content .stars-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.insufficient-stars-content .stars-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insufficient-stars-content .stars-row:first-child {
  padding-top: 0;
}

.insufficient-stars-content .stars-row.shortage {
  background: rgba(255, 77, 77, 0.1);
  margin: 12px -12px -8px;
  padding: 12px;
  border-radius: 12px;
  border-bottom: none;
}

.insufficient-stars-content .stars-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.insufficient-stars-content .stars-value {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.insufficient-stars-content .stars-value::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd93d'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.insufficient-stars-content .stars-value.required {
  color: #ffd93d;
}

.insufficient-stars-content .stars-value.balance {
  color: #6ec1e4;
}

.insufficient-stars-content .stars-value.balance::after {
  filter: hue-rotate(180deg);
}

.insufficient-stars-content .stars-row.shortage .stars-label {
  color: #ff6b6b;
}

.insufficient-stars-content .stars-row.shortage .stars-value {
  color: #ff6b6b;
}

.insufficient-stars-content .stars-row.shortage .stars-value::after {
  filter: hue-rotate(330deg) saturate(2);
}

.insufficient-stars-content .modal-text {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.insufficient-stars-content .modal-footer {
  display: flex;
  gap: 12px;
}

.insufficient-stars-content .modal-footer .btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.insufficient-stars-content .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.insufficient-stars-content .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.insufficient-stars-content .btn-primary {
  background: linear-gradient(135deg, #CCFF00 0%, #a8e600 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.3);
}

.insufficient-stars-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(204, 255, 0, 0.4);
}

.insufficient-stars-content .btn-primary:active {
  transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .insufficient-stars-content {
    padding: 24px 20px;
    margin: 16px;
    max-width: calc(100% - 32px);
  }
  
  .insufficient-stars-content .modal-title {
    font-size: 20px;
  }
  
  .insufficient-stars-content .modal-footer {
    flex-direction: column-reverse;
  }
  
  .insufficient-stars-content .modal-footer .btn {
    padding: 16px;
  }
}

