/*
Theme Name: Blocksy AstroHub
Theme URI: https://astrohub.gr
Description: Child theme for Astro-Hub.gr — dark navy + gold marketplace aesthetic.
Author: AstroHub
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-astrohub
*/

:root {
  --ah-navy: #0b1c2e;
  --ah-navy-deep: #06111c;
  --ah-gold: #c9a227;
  --ah-gold-soft: #e0c56a;
  --ah-beige: #e8dfd0;
  --ah-beige-dark: #d4c4a8;
  --ah-ink: #f4efe6;
  --ah-muted: #a8b3c2;
  --ah-tool-blue: #0a2744;
  --ah-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ah-navy-deep);
  color: var(--ah-ink);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1.2'%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Cpath d='M40 22v36M22 40h36'/%3E%3Ccircle cx='160' cy='80' r='8'/%3E%3Cpath d='M160 66v28M146 80h28'/%3E%3Cpath d='M90 150l12 20h-24z'/%3E%3Cpath d='M200 170c8 0 14 6 14 14s-6 14-14 14-14-6-14-14 6-14 14-14z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
}

#main-container,
.ct-drawer-canvas,
footer.ct-footer,
header#header {
  position: relative;
  z-index: 1;
}

a {
  color: var(--ah-gold-soft);
}

a:hover {
  color: var(--ah-gold);
}

.ah-section-beige {
  background:
    linear-gradient(180deg, rgba(232, 223, 208, 0.96), rgba(212, 196, 168, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='%230B1C2E' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3Ccircle cx='90' cy='60' r='2'/%3E%3Ccircle cx='140' cy='120' r='2.5'/%3E%3Cpath d='M50 110l6 10h-12z'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ah-navy);
}

.ah-section-navy {
  background: linear-gradient(160deg, var(--ah-navy) 0%, #12304a 100%);
  color: var(--ah-ink);
}

.ah-zodiac-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.65rem 1rem;
  background: rgba(6, 17, 28, 0.92);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  scrollbar-width: thin;
}

.ah-zodiac-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 3.4rem;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ah-beige);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ah-zodiac-strip a:hover,
.ah-zodiac-strip a:focus-visible {
  background: rgba(201, 162, 39, 0.18);
  color: var(--ah-gold-soft);
  transform: translateY(-2px);
}

.ah-zodiac-strip .ah-glyph {
  font-size: 1.15rem;
  line-height: 1;
}

.ah-sticky-cta {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ah-gold), #a88414);
  color: var(--ah-navy-deep) !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: ah-cta-in 0.6s ease both;
}

.ah-sticky-cta:hover {
  filter: brightness(1.05);
  color: var(--ah-navy-deep) !important;
}

.ah-sticky-cta .ah-cta-icon {
  font-size: 1.15rem;
}

@keyframes ah-cta-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ah-footer-quotes {
  overflow: hidden;
  background: var(--ah-navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--ah-beige);
  font-style: italic;
  padding: 0.85rem 0;
}

.ah-footer-quotes__track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: ah-marquee 42s linear infinite;
  padding-left: 100%;
}

.ah-footer-quotes__item {
  white-space: nowrap;
  font-size: 0.95rem;
}

@keyframes ah-marquee {
  to {
    transform: translateX(-50%);
  }
}

.ah-tool-shell {
  background: var(--ah-tool-blue);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--ah-radius);
  padding: 1.5rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.ah-tool-shell h2,
.ah-tool-shell h3 {
  color: var(--ah-gold-soft);
}

.ah-tool-shell input,
.ah-tool-shell select,
.ah-tool-shell textarea,
.ah-tool-shell button,
.ah-btn {
  border-radius: 10px;
}

.ah-btn,
.ah-tool-shell button[type="submit"] {
  background: var(--ah-gold);
  color: var(--ah-navy-deep);
  border: 0;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.ah-btn:hover,
.ah-tool-shell button[type="submit"]:hover {
  filter: brightness(1.06);
}

.ah-daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.ah-daily-card {
  background: rgba(11, 28, 46, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--ah-radius);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.ah-daily-card::before {
  content: attr(data-glyph);
  position: absolute;
  right: 0.6rem;
  top: 0.2rem;
  font-size: 2.4rem;
  opacity: 0.18;
}

.ah-daily-card h3 {
  margin: 0 0 0.55rem;
  color: var(--ah-gold-soft);
  font-size: 1.05rem;
}

.ah-daily-card p {
  margin: 0;
  color: var(--ah-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.ah-section-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.ah-section-icon-card {
  text-align: center;
  padding: 1.25rem 0.9rem;
  border-radius: var(--ah-radius);
  background: rgba(11, 28, 46, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.22);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ah-section-icon-card:hover {
  transform: translateY(-3px);
  border-color: var(--ah-gold);
}

.ah-section-icon-card .ah-si {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.45rem;
}

.ah-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.ah-follow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  text-decoration: none;
  color: var(--ah-beige);
  font-size: 0.85rem;
}

.ah-compat-result,
.ah-tarot-result,
.ah-chart-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

@media (max-width: 782px) {
  .ah-sticky-cta span.ah-cta-label {
    display: none;
  }

  .ah-sticky-cta {
    padding: 0.9rem;
  }
}
