/* ==================================================
   HOROSCOPE - STYLES
   ================================================== */

:root {
  --horo-primary: #9333ea;
  --horo-secondary: #a855f7;
  --horo-bg: #0b1220;
  --horo-card: #0f1a2e;
  --horo-text: #eaf0ff;
  --horo-muted: rgba(234,240,255,.72);
  --horo-border: rgba(255,255,255,.10);
  --horo-shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* =========================
   HERO SECTION
   ========================= */
.horoscope-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--horo-border);
  box-shadow: var(--horo-shadow);
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-icon {
  font-size: 48px;
  line-height: 1;
}

.hero-title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  color: var(--horo-text);
}

.hero-subtitle {
  margin: 4px 0 0;
  color: var(--horo-muted);
  font-size: 15px;
}

/* =========================
   SÉLECTION SIGNES
   ========================= */
.quick-select {
  background: var(--horo-bg);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--horo-border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--horo-text);
  margin: 0 0 24px;
}

.section-icon {
  font-size: 28px;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.zodiac-card {
  background: linear-gradient(135deg, rgba(147,51,234,.1) 0%, rgba(59,130,246,.1) 100%);
  border: 2px solid var(--horo-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.zodiac-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(147,51,234,.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}

.zodiac-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--horo-primary);
  background: linear-gradient(135deg, rgba(147,51,234,.25) 0%, rgba(168,85,247,.25) 100%);
  box-shadow: 0 12px 32px rgba(147,51,234,.4);
}

.zodiac-card:hover::before {
  opacity: 1;
}

.zodiac-card:hover .zodiac-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(147,51,234,.9));
}

.zodiac-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(147,51,234,.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.zodiac-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--horo-text);
  margin-bottom: 4px;
}

.zodiac-dates {
  font-size: 12px;
  color: var(--horo-muted);
}

/* =========================
   DÉTAIL HOROSCOPE
   ========================= */
.horoscope-detail {
  background: var(--horo-bg);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--horo-border);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.back-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--horo-border);
  background: var(--horo-card);
  color: var(--horo-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,.12);
}

.detail-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--horo-text);
  margin: 0;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Carte principale */
.detail-card {
  background: linear-gradient(135deg, var(--horo-primary) 0%, var(--horo-secondary) 100%);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.card-icon {
  font-size: 80px;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(255,255,255,.4));
  animation: zodiac-glow 3s ease-in-out infinite;
}

@keyframes zodiac-glow {
  0%, 100% { 
    filter: drop-shadow(0 4px 16px rgba(255,255,255,.4));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 6px 24px rgba(255,255,255,.7));
    transform: scale(1.05);
  }
}

.card-info h3 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

.date-range,
.element {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin: 4px 0;
}

/* Prédiction */
.prediction-card {
  background: var(--horo-card);
  border: 1px solid var(--horo-border);
  border-radius: 20px;
  padding: 28px;
}

.prediction-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.prediction-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(147,51,234,.6));
  animation: writing 3s ease-in-out infinite;
}

@keyframes writing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.prediction-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--horo-text);
}

.prediction-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--horo-muted);
  margin: 0;
}

/* Scores */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-card {
  background: var(--horo-card);
  border: 1px solid var(--horo-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.score-icon {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(147,51,234,.4));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Couleurs spécifiques par score */
.score-card:nth-child(1) .score-icon {
  filter: drop-shadow(0 2px 8px rgba(239,68,68,.6));
}

.score-card:nth-child(2) .score-icon {
  filter: drop-shadow(0 2px 8px rgba(59,130,246,.6));
}

.score-card:nth-child(3) .score-icon {
  filter: drop-shadow(0 2px 8px rgba(34,197,94,.6));
}

.score-card:nth-child(4) .score-icon {
  filter: drop-shadow(0 2px 8px rgba(245,158,11,.6));
}

.score-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--horo-muted);
  margin-bottom: 12px;
}

.score-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,.08);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.2);
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--horo-primary), var(--horo-secondary));
  border-radius: 5px;
  transition: width .8s ease;
  box-shadow: 0 0 10px rgba(147,51,234,.5);
}

/* Gradients spécifiques par score */
.score-card:nth-child(1) .score-fill {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 12px rgba(239,68,68,.6);
}

.score-card:nth-child(2) .score-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 12px rgba(59,130,246,.6);
}

.score-card:nth-child(3) .score-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 12px rgba(34,197,94,.6);
}

.score-card:nth-child(4) .score-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 12px rgba(245,158,11,.6);
}

.score-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--horo-text);
}

/* Infos extra */
.extra-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-item {
  background: var(--horo-card);
  border: 1px solid var(--horo-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  font-size: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(147,51,234,.5));
  animation: rotate-gentle 4s ease-in-out infinite;
}

@keyframes rotate-gentle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.info-item:hover .info-icon {
  animation: bounce-icon .6s ease;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.info-label {
  font-size: 13px;
  color: var(--horo-muted);
  margin-bottom: 4px;
}

.info-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--horo-text);
}

/* =========================
   COMPATIBILITÉ
   ========================= */
.compatibility-section {
  background: var(--horo-bg);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--horo-border);
}

.compatibility-tool {
  background: var(--horo-card);
  border: 1px solid var(--horo-border);
  border-radius: 20px;
  padding: 32px;
}

.compatibility-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--horo-text);
}

.sign-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid var(--horo-border);
  background: rgba(255,255,255,.08);
  color: var(--horo-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all .2s ease;
}

.sign-select:focus {
  border-color: var(--horo-primary);
  background: rgba(255,255,255,.12);
}

/* Options du select */
.sign-select option {
  background: #1e293b;
  color: #eaf0ff;
  padding: 10px;
  font-weight: 600;
}

.selector-heart {
  font-size: 40px;
  padding-bottom: 10px;
}

.check-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--horo-primary), var(--horo-secondary));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(147,51,234,.3);
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147,51,234,.4);
}

.compatibility-result {
  margin-top: 24px;
  padding: 24px;
  background: rgba(147,51,234,.1);
  border: 2px solid var(--horo-primary);
  border-radius: 16px;
  text-align: center;
}

.result-score {
  font-size: 64px;
  font-weight: 900;
  color: var(--horo-primary);
  margin-bottom: 8px;
}

.result-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--horo-text);
  margin-bottom: 12px;
}

.result-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--horo-muted);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
  .zodiac-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .scores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .horoscope-hero {
    padding: 24px 20px;
  }
  
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-nav {
    width: 100%;
    flex-direction: column;
  }
  
  .period-btn {
    width: 100%;
  }
  
  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .detail-card {
    flex-direction: column;
    text-align: center;
  }
  
  .scores-grid {
    grid-template-columns: 1fr;
  }
  
  .extra-info {
    grid-template-columns: 1fr;
  }
  
  .compatibility-selectors {
    grid-template-columns: 1fr;
  }
  
  .selector-heart {
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .horoscope-hero {
    padding: 20px 16px;
  }
  
  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .hero-title h1 {
    font-size: 24px;
  }
  
  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .zodiac-card {
    padding: 16px 12px;
  }
  
  .zodiac-icon {
    font-size: 36px;
  }
  
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
