/*
Theme Name: Astrology Space
Theme URI: http://astrology-spcae.com
Author: mrPyzhyk
Description: Магічна тема для астролоічного блогу
Version: 1.0
Text Domain: astrology-space.com
*/

:root {
  --bg: #07010f;
  --bg2: #0d0120;
  --bg3: #120028;
  --gold: #e8c96a;
  --gold2: #c9a84c;
  --purple: #7f77dd;
  --purple2: #534AB7;
  --text: #f0e6ff;
  --muted: #9f7ccc;
  --dim: #5a3a7a;
  --border: #2a0f4a;
  --border2: #1a0533;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Merriweather', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/*  NAV  */
.nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: inherit;
}
.logo:visited,
.logo:active,
.logo:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}
.logo-main {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
/* Active menu */
.nav-link.active {
  color: #fff;
}
.nav-links .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #8b5cf6;
}
/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: 0.3s;
}

/*  LANG BAR  */
.lang-bar {
  background: #06000f;
  border-bottom: 1px solid var(--border2);
  padding: 8px 24px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  transition: 0.2s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.1);
}

.lang-btn.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
}
.lang-label {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}
.lb {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 20px;
  border: 1px solid #3d1a6e;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.lb:hover { border-color: var(--purple); color: var(--text); }
.lb.on { background: var(--purple); color: #fff; border-color: var(--purple); }

/*  HERO  */
.hero {
  background: var(--bg2);
  padding: 60px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border2);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(127,119,221,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* затемнення як було */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.banner-inner {
  position: relative;
  z-index: 2;
}
.banner h1,
.banner p {
  position: relative;
  z-index: 1;
}
.hero-stars { font-size: 12px; color: #6a3d9a; letter-spacing: 4px; margin-bottom: 14px; }
.hero-h {
  font-family: 'Merriweather', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 12px;
  /* color: #c9aef0; */
  color: var(--gold);
}

/*  ADS  */
.ad-wrap { padding: 12px 24px; }
.ad {
  background: #0c0020;
  border: 1px dashed #3d1a6e;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
}
.ad-lbl {
  font-size: 9px;
  color: #3d1a6e;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ad-box {
  background: var(--bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #3d1a6e;
  border: 1px solid var(--border2);
  height: 60px;
}

/*  SECTION HEADER  */
.sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 14px;
}
.sec-title {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.sec-all {
  font-size: 12px;
  color: var(--purple);
  cursor: pointer;
  transition: color 0.2s;
}
.sec-all:hover { color: #a09aff; }

/*  CAT GRID  */
.cat-section { padding: 0 24px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.cat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 50%;
}
.cat-card {
  display: block;
  border-radius: 14px;
  padding: 18px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, filter 0.2s;
}
.cat-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  text-decoration: none;
}
.cat-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.cat-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cat-desc { font-size: 11px; line-height: 1.5; opacity: 0.7; }
.cat-arrow { font-size: 11px; margin-top: 8px; opacity: 0.8; }

.c-horoscope { background: #1a1a35; border-color: #3d3d7a; }
.c-horoscope .cat-name, .c-horoscope .cat-arrow { color: #c8c8f5; }
.c-horoscope .cat-desc { color: #c8c8f5; }

.c-sign { background: #1a2a1a; border-color: #3a5a3a; }
.c-sign .cat-name, .c-sign .cat-arrow { color: #a8d4a8; }
.c-sign .cat-desc { color: #a8d4a8; }

.c-chart { background: #2a1a2a; border-color: #5a3a5a; }
.c-chart .cat-name, .c-chart .cat-arrow { color: #d4a8d4; }
.c-chart .cat-desc { color: #d4a8d4; }

.c-num { background: #2a2010; border-color: #5a4820; }
.c-num .cat-name, .c-num .cat-arrow { color: #d4c080; }
.c-num .cat-desc { color: #d4c080; }

.c-compat { background: #2a1018; border-color: #5a2030; }
.c-compat .cat-name, .c-compat .cat-arrow { color: #d48090; }
.c-compat .cat-desc { color: #d48090; }

.c-dreams { background: #101a2a; border-color: #203a5a; }
.c-dreams .cat-name, .c-dreams .cat-arrow { color: #80a8d4; }
.c-dreams .cat-desc { color: #80a8d4; }

.c-spirituality { background: #32373c; border-color: #535353; }
.c-spirituality .cat-name, .c-spirituality .cat-arrow { color: #ddd; }
.c-spirituality .cat-desc { color: #ddd; }

.c-mysticism { background: #4b3f19; border-color: #8b7e53; }
.c-mysticism .cat-name, .c-mysticism .cat-arrow { color: #abb8c3; }
.c-mysticism .cat-desc { color: #abb8c3; }

/*  DIVIDER  */
.divider { height: 1px; background: var(--border2); margin: 8px 24px 0; }

/*  SIGN GRID  */
.sign-section { padding: 0 24px; }
.sign-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}
.sign-grid-post {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.s-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.s-btn:hover { border-color: var(--gold); background: #1a0533; }
.s-sym { font-size: 18px; display: block; margin-bottom: 3px; }
.s-nm { font-size: 9px; color: var(--muted); display: block; }
.s-desc {
  text-decoration: none;
  color: var(--gold);
}
/* BREADCRUMBS */
.breadcrumbs {
  font-size: 18px;
  margin-bottom: 20px;
  color: #aaa;
}

.breadcrumbs a {
  color: #9b51e0;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #fff;
}

/*  ARTICLES  */
.art-section { padding: 0 24px; }
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.art-card {
  background: var(--bg3);
  /* border: 1px solid var(--border); */
  border-radius: 12px;
  padding: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;

  position: relative;
  z-index: 2;
  display: block;
  text-decoration: none;
  color: inherit;
}
.art-type {
  font-size: 12px;
  color: #9b51e0;
  margin-bottom: 5px;
}
/* Клікабельний шар */
.art-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.art-card:hover { border-color: var(--purple); transform: translateY(-2px); transition: 0.3s;}
/* .art-img {
  height: 80px;
  background: #1a0533;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
} */
 .art-img {
  width: 100%;
  height: 200px; /* або як тобі потрібно */
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.art-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.art-card:hover .art-img img {
  transform: scale(1.05);
}
.art-body { padding: 12px; }
.art-tag { font-size: 9px; color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.art-title { font-size: 13px; font-weight: 500; color: #e8d5ff; line-height: 1.4; margin-bottom: 6px; }
.art-meta { font-size: 10px; color: var(--dim); }
.badge {
  display: inline-block;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 5px;
}
.badge-hot { background: #3a1a0a; color: #e8793a; border: 1px solid #5a2a0a; }
.badge-new { background: #1a3a1a; color: #5db85d; border: 1px solid #2d5a2d; }

/* CARD Archive post */ 
.art-card-ar {
  position: relative;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: flex-end;
}

/* затемнення + блюр */
.art-overlay-ar {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* контент */
.art-content-ar {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
}

.art-content-ar h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.art-content-ar p {
  font-size: 14px;
  opacity: 0.9;
}

/* клікабельність */
.art-link-ar {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* hover ефект */
.art-card-ar:hover {
  transform: scale(1.02);
  transition: 0.3s;
}

/* ACF */ 
.comp-box {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
}

.score {
  font-size: 24px;
  font-weight: bold;
}

#compatibility-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.calc_result {
  flex-basis: 100%;
}


#compatibility-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: #111;
  color: #fff;

  border: 1px solid #333;
  border-radius: 10px;

  padding: 12px 40px 12px 15px;
  font-size: 16px;

  cursor: pointer;
  transition: 0.3s;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;}

#compatibility-form select:hover {
  border-color: #7a00df;
}

#compatibility-form select:focus {
  outline: none;
  border-color: #9b51e0;
  box-shadow: 0 0 10px rgba(155,81,224,0.5);
}
#compatibility-form button {
  background: linear-gradient(135deg, #7a00df, #9b51e0);
  color: #fff;

  border: none;
  border-radius: 12px;

  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.3s ease;

  box-shadow: 0 0 10px rgba(122,0,223,0.5);
}
#compatibility-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(155,81,224,0.8);
}
#compatibility-form button:active {
  transform: scale(0.97);
  box-shadow: 0 0 8px rgba(122,0,223,0.6);
}

/* MENU */
.pll-switcher-select {
  background: #111;
  color: #fff;
  border: 1px solid #7a00df;
  border-radius: 8px;
  padding: 8px 12px;
}

/*  FOOTER  */
footer {
  background: #06000f;
  border-top: 1px solid var(--border2);
  padding: 28px 24px;
  margin-top: 40px;
  text-align: center;
}
.terms {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.f-langs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.f-lang {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
}
.f-lang:hover { border-color: var(--purple); }
.f-copy { font-size: 11px; color: var(--dim); }
.f-lang.active { color: var(--text); }

/* CONTAINER */
.container-single-post {
  max-width: 800px;   /* головне */
  margin: 0 auto;
  padding: 0 15px;
}
.container-arhive-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.container-single-post p {
  font-size: 18px;
  line-height: 1.7;
}
.container-single-post h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
.container-single-post h2 {
  margin-top: 30px;
}

/* Profile Avatar*/
.post-author {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 12px;
  margin: 20px 0;
}
.post-author .author-avatar img {
  border-radius: 50%;
  border: 2px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-author:hover .author-avatar img {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.author-info {
  display: flex;
  flex-direction: column;
}
.post-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.author-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}
.author-name:hover::after {
  width: 100%;
}
.author-name:hover {
  color: var(--gold);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #888;
}
.read-time::before {
  content: "•";
  margin-right: 6px;
  color: #bbb;
}

.post--author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0;
}
.author--avatar img {
  border-radius: 50%;
}
.author--info {
  max-width: 500px;
}
.author--name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}
.author--bio {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}
.author-posts-title{
  margin-bottom: 20px;
}

/*  MOBILE  */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
    gap: 2px;
    z-index: 99;
  }
  .sign-grid-post {
    display: block;
  }
  .banner {
    min-height: 270px;
    padding: 20px;
  }
  .s-desc {
    font-size: small;
  }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-2 { max-width: 100%; }
  .sign-grid { grid-template-columns: repeat(6, 1fr); row-gap: 8px; }
  .art-grid { grid-template-columns: 1fr; }
  .lang-bar { padding: 8px 16px; gap: 5px; }
  .lb { padding: 5px 14px; font-size: 11px; }
  .hero { padding: 40px 16px 32px; }
  .sec-hd { padding: 20px 16px 10px; }
  .cat-section, .sign-section, .art-section { padding: 0 16px; }
  .ad-wrap { padding: 10px 16px; }
  .divider { margin: 8px 16px 0; }
}

@media (max-width: 480px) {
  .sign-grid { grid-template-columns: repeat(4, 1fr); }
  .logo-main { font-size: 18px; }
}