@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap");

/* estiastri-standalone-entry.css
   Stile standalone per pagine aperte fuori iframe.
   Si attiva solo con html.estia-standalone-page.
*/

html.estia-standalone-page,
html.estia-standalone-page body.estia-standalone-body {
  min-height: 100%;
  background-color: #020e1c;
}

html.estia-standalone-page body.estia-standalone-body {
  margin: 0;
  padding-top: 58px;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

html.estia-standalone-page body.estia-standalone-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(2, 14, 28, 0.35), rgba(2, 14, 28, 0.58)),
    url("/backgrounds/estiastri-cosmic-desktop.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.estia-standalone-entry-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  box-sizing: border-box;
  min-height: 58px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(8, 20, 38, 0.92);
  border-bottom: 1px solid rgba(255, 215, 128, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.estia-standalone-entry-text {
  color: #fff5d6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.estia-standalone-entry-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 166, 0.95);
  background: linear-gradient(180deg, #ffe08a 0%, #d39a28 100%);
  color: #241403;
  font-family: "Caveat", cursive;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.estia-standalone-entry-button:hover,
.estia-standalone-entry-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (hover: none), (pointer: coarse) {
  html.estia-standalone-page body.estia-standalone-body::before {
    background:
      linear-gradient(rgba(2, 14, 28, 0.35), rgba(2, 14, 28, 0.58)),
      url("/backgrounds/estiastri-cosmic-mobile.webp");
  }

  html.estia-standalone-page body.estia-standalone-body {
    padding-top: 72px;
  }

  .estia-standalone-entry-bar {
    min-height: 72px;
    padding: 7px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .estia-standalone-entry-text {
    width: 100%;
    font-size: 13px;
    line-height: 1.22;
  }

  .estia-standalone-entry-button {
    min-height: 30px;
    padding: 5px 16px;
    font-size: 21px;
  }
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  html.estia-standalone-page body.estia-standalone-body.oroscopo-segno-body {
    overflow-x: hidden;
  }

  html.estia-standalone-page body.estia-standalone-body.oroscopo-segno-body .ratings-box {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  html.estia-standalone-page body.estia-standalone-body.oroscopo-segno-body .r-line {
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  html.estia-standalone-page body.estia-standalone-body.oroscopo-segno-body .r-line .label {
    flex: 0 1 auto;
    min-width: 0;
  }

  html.estia-standalone-page body.estia-standalone-body.oroscopo-segno-body .r-line .stars {
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-align: right;
    font-size: clamp(16px, 4.4vw, 22px);
  }
}
