/**
 * Nuonat Horoscope
 * Version 1.0.0
 */

.nuonat-horoscope {
  --nh-bg: #f7f8fc;
  --nh-card: #ffffff;
  --nh-text: #202331;
  --nh-muted: #74798b;
  --nh-border: rgba(32, 35, 49, 0.09);
  --nh-primary: #7656d6;
  --nh-primary-soft: rgba(118, 86, 214, 0.10);
  --nh-gold: #e6a93d;
  --nh-shadow: 0 10px 32px rgba(28, 32, 48, 0.08);

  width: 100%;
  color: var(--nh-text);
  line-height: 1.55;
}

.nuonat-horoscope *,
.nuonat-horoscope *::before,
.nuonat-horoscope *::after {
  box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.nh-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.20), transparent 28%),
    linear-gradient(135deg, #6042bd 0%, #7656d6 52%, #9b72dc 100%);
  box-shadow: var(--nh-shadow);
}

.nh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.nh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  opacity: 0.9;
}

.nh-kicker-icon {
  font-size: 15px;
}

.nh-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
}

.nh-subtitle {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.nh-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.nh-hero-decoration {
  position: absolute;
  z-index: 1;
  top: 15px;
  right: 25px;
  width: 190px;
  height: 150px;
  pointer-events: none;
  opacity: 0.20;
}

.nh-hero-decoration span {
  position: absolute;
  color: #fff;
}

.nh-hero-decoration span:nth-child(1) {
  top: 14px;
  right: 75px;
  font-size: 76px;
}

.nh-hero-decoration span:nth-child(2) {
  top: 4px;
  right: 8px;
  font-size: 28px;
}

.nh-hero-decoration span:nth-child(3) {
  right: 10px;
  bottom: 2px;
  font-size: 42px;
}


/* =========================================================
   NAVIGATION DES SIGNES
   ========================================================= */

.nh-sign-navigation {
  position: relative;
  z-index: 10;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--nh-border);
  border-radius: 18px;
  background: var(--nh-card);
  box-shadow: 0 5px 20px rgba(28, 32, 48, 0.05);
}

.nh-sign-navigation-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.nh-sign-navigation-scroll::-webkit-scrollbar {
  height: 4px;
}

.nh-sign-navigation-scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(118, 86, 214, 0.25);
}

.nh-sign-button {
  flex: 1 0 auto;
  min-width: 74px;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  color: var(--nh-muted);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nh-sign-button:hover {
  color: var(--nh-primary);
  background: var(--nh-primary-soft);
  transform: translateY(-1px);
}

.nh-sign-button.is-active {
  color: #fff;
  background: var(--nh-primary);
}

.nh-sign-button-symbol {
  display: block;
  margin-bottom: 2px;
  font-size: 23px;
  line-height: 1;
}

.nh-sign-button-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   CARTES HOROSCOPE
   ========================================================= */

.nh-signs {
  display: block;
}

.nh-card {
  scroll-margin-top: 90px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--nh-border);
  border-radius: 22px;
  background: var(--nh-card);
  box-shadow: var(--nh-shadow);
}

.nh-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--nh-border);
  background:
    linear-gradient(
      135deg,
      rgba(118, 86, 214, 0.08),
      rgba(118, 86, 214, 0.02)
    );
}

.nh-sign-symbol {
  display: flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--nh-primary);
  background: var(--nh-primary-soft);
  font-size: 34px;
  line-height: 1;
}

.nh-sign-identity {
  min-width: 0;
  flex: 1;
}

.nh-sign-name {
  margin: 0;
  color: var(--nh-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.nh-sign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: var(--nh-muted);
  font-size: 12px;
}

.nh-meta-separator {
  opacity: 0.5;
}

.nh-card-day {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--nh-primary);
  background: var(--nh-primary-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* =========================================================
   TENDANCE GÉNÉRALE
   ========================================================= */

.nh-general {
  padding: 25px 26px 22px;
}

.nh-section-heading,
.nh-category-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nh-section-heading {
  margin-bottom: 10px;
}

.nh-section-heading h3,
.nh-category-heading h3 {
  margin: 0;
  color: var(--nh-text);
  font-weight: 800;
}

.nh-section-heading h3 {
  font-size: 17px;
}

.nh-section-icon {
  font-size: 18px;
}

.nh-general p {
  margin: 0;
  color: #4f5362;
  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   CATÉGORIES
   ========================================================= */

.nh-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 26px 24px;
}

.nh-category {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--nh-border);
  border-radius: 16px;
  background: #fafafd;
}

.nh-category-heading {
  margin-bottom: 8px;
}

.nh-category-heading h3 {
  font-size: 14px;
}

.nh-category-icon {
  font-size: 17px;
}

.nh-category p {
  margin: 0;
  color: #5e6271;
  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   CONSEIL DU JOUR
   ========================================================= */

.nh-advice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 26px 24px;
  padding: 16px 18px;
  border: 1px solid rgba(230, 169, 61, 0.22);
  border-radius: 16px;
  background: rgba(230, 169, 61, 0.08);
}

.nh-advice-icon {
  flex: 0 0 auto;
  font-size: 22px;
}

.nh-advice-content {
  min-width: 0;
}

.nh-advice-label {
  display: block;
  margin-bottom: 3px;
  color: #9a6a17;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.nh-advice p {
  margin: 0;
  color: #5b5140;
  font-size: 14px;
  line-height: 1.55;
}


/* =========================================================
   INDICATEURS
   ========================================================= */

.nh-indicators {
  margin: 0 26px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--nh-border);
}

.nh-indicators-title {
  margin: 0 0 13px;
  color: var(--nh-text);
  font-size: 14px;
  font-weight: 800;
}

.nh-indicators-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.nh-indicator {
  min-width: 0;
  padding: 11px 8px;
  border-radius: 12px;
  background: var(--nh-bg);
  text-align: center;
}

.nh-indicator-label {
  display: block;
  margin-bottom: 5px;
  color: var(--nh-muted);
  font-size: 11px;
  font-weight: 700;
}

.nh-stars {
  display: flex;
  justify-content: center;
  gap: 1px;
  white-space: nowrap;
}

.nh-star {
  color: #d9dbe3;
  font-size: 13px;
  line-height: 1;
}

.nh-star.is-active {
  color: var(--nh-gold);
}


/* =========================================================
   BONUS DU JOUR
   ========================================================= */

.nh-daily-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--nh-border);
  background: var(--nh-border);
}

.nh-extra {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 26px;
  background: #fafafd;
}

.nh-extra-icon {
  flex: 0 0 auto;
  font-size: 21px;
}

.nh-extra-label {
  display: block;
  margin-bottom: 1px;
  color: var(--nh-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nh-extra strong {
  display: block;
  color: var(--nh-text);
  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.nh-disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 13px 18px;
  color: var(--nh-muted);
  text-align: center;
  font-size: 11px;
}

.nh-disclaimer p {
  max-width: 720px;
  margin: 0;
}


/* =========================================================
   EFFET DE SÉLECTION
   ========================================================= */

.nh-card.nh-highlight {
  animation: nhHighlight 1.1s ease;
}

@keyframes nhHighlight {
  0% {
    box-shadow:
      0 0 0 0 rgba(118, 86, 214, 0.32),
      var(--nh-shadow);
  }

  50% {
    box-shadow:
      0 0 0 5px rgba(118, 86, 214, 0.12),
      var(--nh-shadow);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(118, 86, 214, 0),
      var(--nh-shadow);
  }
}


/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 900px) {

  .nh-indicators-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .nh-hero {
    padding: 25px 20px;
    border-radius: 17px;
  }

  .nh-title {
    font-size: 29px;
  }

  .nh-subtitle {
    font-size: 13px;
  }

  .nh-hero-decoration {
    right: -30px;
    opacity: 0.12;
  }

  .nh-sign-navigation {
    margin-right: -1px;
    margin-left: -1px;
    padding: 8px;
    border-radius: 15px;
  }

  .nh-sign-button {
    min-width: 68px;
    padding: 8px 7px;
  }

  .nh-sign-button-symbol {
    font-size: 21px;
  }

  .nh-card {
    border-radius: 17px;
  }

  .nh-card-header {
    gap: 11px;
    padding: 18px 17px;
  }

  .nh-sign-symbol {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 28px;
  }

  .nh-sign-name {
    font-size: 20px;
  }

  .nh-sign-meta {
    gap: 4px;
    font-size: 10px;
  }

  .nh-card-day {
    display: none;
  }

  .nh-general {
    padding: 20px 18px 18px;
  }

  .nh-general p {
    font-size: 14px;
  }

  .nh-categories {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0 18px 18px;
  }

  .nh-category {
    padding: 14px 15px;
  }

  .nh-advice {
    margin: 0 18px 19px;
  }

  .nh-indicators {
    margin: 0 18px 19px;
  }

  .nh-indicators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nh-daily-extra {
    grid-template-columns: 1fr;
  }

  .nh-extra {
    padding: 14px 18px;
  }

}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 380px) {

  .nh-indicators-grid {
    grid-template-columns: 1fr;
  }

  .nh-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    text-align: left;
  }

  .nh-indicator-label {
    margin: 0;
  }

}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .nh-sign-button {
    transition: none;
  }

  .nh-card.nh-highlight {
    animation: none;
  }

}