/* =========================================
   神算智導 - 促銷 Banner 系統
   純 CSS 高質感設計 - 無需圖片
   ========================================= */

/* ────────────────────────────────
   基礎樣式（所有 Banner 共用）
   ──────────────────────────────── */
.promo-banner {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.promo-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  gap: 2rem;
  z-index: 2;
}

.promo-content {
  flex: 1;
  min-width: 0;
}

.promo-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(212, 175, 55, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  font-size: 0.7rem;
  color: #d4af37;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.promo-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FAD7A0;
  margin: 0 0 0.6rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.promo-title em {
  font-style: normal;
  color: #E74C3C;
  font-weight: 800;
}

.promo-subtitle {
  font-size: 1rem;
  color: #B0B8C1;
  margin: 0 0 0.4rem 0;
  font-weight: 500;
}

.promo-description {
  font-size: 0.85rem;
  color: #8a95a5;
  margin: 0;
  line-height: 1.5;
}

.promo-cta {
  flex-shrink: 0;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #E74C3C 0%, #EC7063 100%);
  color: white !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
  color: white !important;
}

.promo-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btn-shine 3s linear infinite;
}

@keyframes btn-shine {
  to { left: 100%; }
}

.promo-btn::before {
  content: '→';
  opacity: 0;
  margin-left: -10px;
  transition: all 0.3s ease;
}

.promo-btn:hover::before {
  opacity: 1;
  margin-left: 0;
}

/* 背景效果容器 */
.promo-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* ────────────────────────────────
   主題 1: 金色粒子流動（奢華感）
   ──────────────────────────────── */
.promo-banner.theme-particles-gold {
  background: linear-gradient(135deg, #0F141C 0%, #1a1520 50%, #17202A 100%);
  background-size: 200% 200%;
  animation: bg-shift 10s ease-in-out infinite;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

@keyframes bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 金色粒子 */
.theme-particles-gold .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #d4af37;
  border-radius: 50%;
  animation: float-particle 5s ease-in-out infinite;
  opacity: 0;
}

.theme-particles-gold .particle:nth-child(1) {
  left: 10%;
  bottom: -10px;
  animation-delay: 0s;
}

.theme-particles-gold .particle:nth-child(2) {
  left: 30%;
  bottom: -10px;
  animation-delay: 1.2s;
}

.theme-particles-gold .particle:nth-child(3) {
  left: 50%;
  bottom: -10px;
  animation-delay: 2.4s;
}

.theme-particles-gold .particle:nth-child(4) {
  left: 70%;
  bottom: -10px;
  animation-delay: 3.6s;
}

.theme-particles-gold .particle:nth-child(5) {
  left: 85%;
  bottom: -10px;
  animation-delay: 4.8s;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-250px) translateX(30px) scale(1.2);
    opacity: 0;
  }
}

/* 光暈球體 */
.theme-particles-gold .glow-orb {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    transform: translateY(-50%) scale(1); 
    opacity: 0.4; 
  }
  50% { 
    transform: translateY(-50%) scale(1.3); 
    opacity: 0.7; 
  }
}

/* 流光邊框 */
.theme-particles-gold::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 17px;
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.5),
    transparent 30%,
    transparent 70%,
    rgba(231, 76, 60, 0.5)
  );
  background-size: 400% 400%;
  animation: border-flow 8s linear infinite;
  z-index: 0;
  opacity: 0.6;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

@keyframes border-flow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ────────────────────────────────
   主題 2: 霓虹光暈（活力感）
   ──────────────────────────────── */
.promo-banner.theme-neon-glow {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0f1e 100%);
  border: 2px solid rgba(231, 76, 60, 0.4);
  box-shadow: 
    0 0 30px rgba(231, 76, 60, 0.3),
    inset 0 0 30px rgba(231, 76, 60, 0.05);
}

.theme-neon-glow .promo-title {
  color: #FAD7A0;
  text-shadow: 
    0 0 10px rgba(250, 215, 160, 0.6),
    0 0 20px rgba(250, 215, 160, 0.4),
    0 0 30px rgba(250, 215, 160, 0.2);
  animation: neon-pulse 2s ease-in-out infinite;
}

.theme-neon-glow .promo-title em {
  color: #E74C3C;
  text-shadow: 
    0 0 10px #E74C3C,
    0 0 20px #E74C3C,
    0 0 30px rgba(231, 76, 60, 0.6);
}

@keyframes neon-pulse {
  0%, 100% { 
    filter: brightness(1);
  }
  50% { 
    filter: brightness(1.1);
  }
}

.theme-neon-glow .neon-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    #E74C3C, 
    transparent);
  animation: neon-scan 3s linear infinite;
}

.theme-neon-glow .neon-line:nth-child(1) {
  top: 25%;
  left: 0;
  right: 0;
}

.theme-neon-glow .neon-line:nth-child(2) {
  top: 50%;
  left: 0;
  right: 0;
  animation-delay: 1s;
}

.theme-neon-glow .neon-line:nth-child(3) {
  top: 75%;
  left: 0;
  right: 0;
  animation-delay: 2s;
}

@keyframes neon-scan {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  50% {
    opacity: 0.6;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

/* ────────────────────────────────
   主題 3: 漸層波浪（科技感）
   ──────────────────────────────── */
.promo-banner.theme-wave-gradient {
  background: linear-gradient(135deg, 
    #0F141C 0%, 
    #17202A 30%, 
    #1a1520 60%,
    #17202A 100%);
  background-size: 400% 400%;
  animation: wave-gradient 15s ease infinite;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

@keyframes wave-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.theme-wave-gradient .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(147, 51, 234, 0.03) 50%,
    rgba(147, 51, 234, 0.08) 100%);
  animation: wave-move 8s ease-in-out infinite;
}

.theme-wave-gradient .wave:nth-child(2) {
  animation-delay: -2s;
  opacity: 0.5;
}

.theme-wave-gradient .wave:nth-child(3) {
  animation-delay: -4s;
  opacity: 0.3;
}

@keyframes wave-move {
  0%, 100% { 
    transform: translateY(0%);
  }
  50% { 
    transform: translateY(-10%);
  }
}

/* ────────────────────────────────
   主題 4: 極簡優雅（專業感）
   ──────────────────────────────── */
.promo-banner.theme-minimal-elegant {
  background: linear-gradient(135deg, 
    rgba(23, 32, 42, 0.95) 0%, 
    rgba(15, 20, 28, 0.95) 100%);
  border: 1px solid rgba(176, 184, 193, 0.15);
  backdrop-filter: blur(10px);
}

.theme-minimal-elegant::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(212, 175, 55, 0.3), 
    transparent);
}

.theme-minimal-elegant .promo-badge {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.theme-minimal-elegant .subtle-glow {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, 
    rgba(212, 175, 55, 0.08) 0%, 
    transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: subtle-pulse 5s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ────────────────────────────────
   響應式設計
   ──────────────────────────────── */
@media (max-width: 768px) {
  .promo-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.2rem;
    gap: 1.5rem;
  }

  .promo-title {
    font-size: 1.2rem;
  }

  .promo-subtitle {
    font-size: 0.9rem;
  }

  .promo-description {
    font-size: 0.8rem;
  }

  .promo-cta {
    width: 100%;
  }

  .promo-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .theme-particles-gold .glow-orb {
    width: 180px;
    height: 180px;
    right: -60px;
  }
}

@media (max-width: 480px) {
  .promo-banner {
    margin: 0 auto 1.5rem;
    border-radius: 12px;
  }

  .promo-banner-inner {
    padding: 1.2rem 1rem;
  }

  .promo-title {
    font-size: 1.1rem;
  }

  .promo-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
}

/* ────────────────────────────────
   關閉按鈕（可選）
   ──────────────────────────────── */
.promo-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.7;
}

.promo-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transform: rotate(90deg);
}

/* ────────────────────────────────
   載入狀態
   ──────────────────────────────── */
.promo-banner.loading {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in 0.6s ease forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
