/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* =========================
   Base Font Override (Single + Route)
========================= */
body.single-horoscope,
body.hz-route,
body.single-horoscope .site,
body.hz-route .site,
body.single-horoscope .site-content,
body.hz-route .site-content,
body.single-horoscope .inside-article,
body.hz-route .inside-article,
body.single-horoscope .entry-title,
body.hz-route .entry-title,
body.single-horoscope .hz-entry,
body.hz-route .hz-entry,
body.single-horoscope p,
body.hz-route p,
body.single-horoscope li,
body.hz-route li,
body.single-horoscope a,
body.hz-route a{
  font-family: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif !important;
}

/* =========================
   SINGLE HOROSCOPE (Clean)
========================= */
body.single-horoscope,
body.single-horoscope #page,
body.single-horoscope .site,
body.single-horoscope .site-content{
  background:#fff !important;
}

/* Remove heavy gaps */
body.single-horoscope .site-content,
body.single-horoscope #content{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.single-horoscope img, body.hz-route img, body.single-horoscope iframe, body.hz-route iframe{
    max-width: 250px !important;
}

body.single-horoscope .content-area{
  margin-top: 0 !important;
}

/* No “card look” */
body.single-horoscope article.hz-single .inside-article{
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Title */
body.single-horoscope .hz-header{
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
}

body.single-horoscope .hz-header .entry-title{
  margin: 0 !important;
  color: #0B1B3A;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(26px, 2.4vw, 44px) !important;
}

/* Entry typography */
body.single-horoscope .hz-entry{
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(15,23,42,.92);
}

body.single-horoscope .hz-entry p{ margin: 0 0 14px; }

body.single-horoscope .hz-entry a{
  color:#E85A4F;
  text-decoration:none;
  border-bottom: 1px solid rgba(232,90,79,.25);
}

body.single-horoscope .hz-entry a:hover{
  border-bottom-color: rgba(232,90,79,.70);
}

/* IMAGE left (small) + wrap */
body.single-horoscope .hz-float-media{
  float: left;
  width: min(360px, 45%);
  margin: 6px 22px 14px 0;
}

body.single-horoscope .hz-thumb{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* After content ends, clear float so footer/comments align */
body.single-horoscope .hz-footer,
body.single-horoscope .comments-area{
  clear: both;
}

/* Footer: categories/tags */
body.single-horoscope .hz-footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.10);
}

body.single-horoscope .hz-tax{
  font-size: 13px;
  color: rgba(15,23,42,.78);
  margin: 6px 0;
}

body.single-horoscope .hz-tax a{
  color:#E85A4F;
  text-decoration:none;
  border-bottom: 1px solid rgba(232,90,79,.20);
}

/* Prev/Next */
body.single-horoscope .hz-nav{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

body.single-horoscope .hz-nav a{
  text-decoration:none;
  font-weight: 800;
  color:#0B1B3A;
}

/* Related */
body.single-horoscope .hz-related{ margin-top: 18px; }

body.single-horoscope .hz-related-title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color:#0B1B3A;
}

body.single-horoscope .hz-related-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

body.single-horoscope .hz-related-card{
  display:block;
  text-decoration:none;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
}

body.single-horoscope .hz-related-img{
  width: 100%;
  height: auto;
  display:block;
}

body.single-horoscope .hz-related-text{
  padding: 10px 10px;
  font-size: 13px;
  font-weight: 800;
  color:#0B1B3A;
  line-height: 1.25;
}

/* Comments form clean */
body.single-horoscope .comment-respond{ margin-top: 18px; }

body.single-horoscope #comment{
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.16);
  padding: 12px;
}

body.single-horoscope #submit{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

/* Responsive (Single) */
@media (max-width: 900px){
  body.single-horoscope .hz-float-media{
    float: none;
    width: 100%;
    margin: 10px 0 14px 0;
  }
  body.single-horoscope .hz-related-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 767px){
  body.single-horoscope .hz-related-grid{ grid-template-columns: 1fr; }
}

/* =========================
   ROUTE Layout (TOI-like)
========================= */
body.hz-route,
body.hz-route #page,
body.hz-route .site,
body.hz-route .site-content{
  background:#fff !important;
}

body.hz-route .site-content,
body.hz-route #content{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* remove card look */
body.hz-route article.horoscope .inside-article{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.hz-route .entry-header{
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(15,23,42,.10);
}

body.hz-route .entry-title{
  margin: 0 !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(26px, 2.4vw, 44px) !important;
  color: #0B1B3A;
}

body.hz-route .hz-float-media{
  float: left;
  width: min(360px, 45%);
  margin: 6px 22px 14px 0;
}

body.hz-route .hz-thumb{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display:block;
}

body.hz-route .hz-entry{
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(15,23,42,.92);
}

body.hz-route .hz-entry p{ margin: 0 0 14px; }

body.hz-route .hz-footer,
body.hz-route .comments-area{
  clear: both;
}

@media (max-width: 900px){
  body.hz-route .hz-float-media{
    float: none;
    width: 100%;
    margin: 10px 0 14px 0;
  }
}

/* Route padding tweak */
body.hz-route .site-content,
body.hz-route #content{
  padding: 20px 10px !important;
}

@media (max-width: 767px){
  body.hz-route .site-content,
  body.hz-route #content{
    padding: 0 10px !important;
  }
}

/* =========================
   Switch Card (Sidebar)
========================= */
.hz-switch-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:16px 16px 14px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.hz-switch-title{
  font-family: 'Inter','Open Sans',sans-serif !important;
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  color:#0B1B3A;
  margin:0 0 12px;
}

.hz-switch-label{
  display:block;
  font-family: 'Inter','Open Sans',sans-serif !important;
  font-size:12px;
  font-weight:700;
  color:rgba(15,23,42,.70);
  margin:0 0 6px;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.hz-switch-select{
  width:100%;
  max-width:100%;
  height:44px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background:#fff;
  font-size:14px;
  font-weight:600;
  color:#0B1B3A;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.70) 50%),
    linear-gradient(135deg, rgba(15,23,42,.70) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px,
    0 0;
  background-size:5px 5px, 5px 5px, 100% 100%;
  background-repeat:no-repeat;
}

.hz-switch-select:focus{
  border-color:rgba(232,90,79,.55);
  box-shadow:0 0 0 3px rgba(232,90,79,.16);
}

.hz-switch-links{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.hz-switch-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-size:13px;
  font-weight:800;
  text-decoration:none !important;
  color:#0B1B3A !important;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}

.hz-switch-links a:hover{
  background:rgba(232,90,79,.08);
  border-color:rgba(232,90,79,.35);
  color:#E85A4F !important;
}

.hz-switch-links a.current,
.hz-switch-links a[aria-current="page"]{
  background:#E85A4F;
  border-color:#E85A4F;
  color:#fff !important;
}

/* Active = Hover (Daily/Weekly/Monthly/Yearly) */
body.hz-type-daily   .hz-switch-links a[href*="/horoscopes/daily/"],
body.hz-type-weekly  .hz-switch-links a[href*="/horoscopes/weekly/"],
body.hz-type-monthly .hz-switch-links a[href*="/horoscopes/monthly/"],
body.hz-type-yearly  .hz-switch-links a[href*="/horoscopes/yearly/"]{
  background:#E85A4F;
  border-color:#E85A4F;
  color:#fff !important;
  transform: translateY(-1px);
}

.widget .hz-switch-card{ margin:0; }

@media (max-width: 767px){
  .hz-switch-card{ padding:14px; }
  .hz-switch-title{ font-size:15px; }
  .hz-switch-links{ gap:8px; }
  .hz-switch-links a{ padding:7px 10px; font-size:12.5px; }
}

/* =========================
   Title Split Colours (: / ;)
========================= */
.hz-title-lead{ color:#E85A4F !important; }
.hz-title-sep{ color:#E85A4F !important; }
.hz-title-rest{ color:inherit !important; }

/* =========================
   Single/Route H3 colour
========================= */
body.single-horoscope .hz-entry h3,
body.hz-route .hz-entry h3{
  color:#0C1559 !important;
}

/* =========================
   Tags/Categories chips (Screenshot 2 look)
========================= */
.hz-chip-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hz-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  background: #f3f4f6;
  border: 1px solid rgba(15,23,42,.10);
  color: #111827 !important;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.hz-chip:hover{
  background: #fff;
  border-color: rgba(232,90,79,.35);
  transform: translateY(-1px);
  color:#E85A4F !important;
}

/* =========================
   ANDROID RIGHT GAP FIX (ONLY small screens)
========================= */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1024px){

  body.single-horoscope #page,
  body.single-horoscope .site,
  body.single-horoscope .site-content,
  body.single-horoscope #content,
  body.hz-route #page,
  body.hz-route .site,
  body.hz-route .site-content,
  body.hz-route #content{
    max-width: 100% !important;
  }

  body.single-horoscope .site-content,
  body.hz-route .site-content{
    display: block !important;
  }

  body.single-horoscope .content-area,
  body.single-horoscope .widget-area.sidebar,
  body.hz-route .content-area,
  body.hz-route .widget-area.sidebar{
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    clear: both !important;
  }

  body.single-horoscope .widget-area.sidebar,
  body.hz-route .widget-area.sidebar{
    margin-top: 18px !important;
  }
}

/* Safety: images/iframes should not create overflow */
body.single-horoscope img,
body.hz-route img,
body.single-horoscope iframe,
body.hz-route iframe{
  max-width: 100%;
  height: auto;
}

/* =========================
   META + SHARE (Single Source of Truth)
========================= */
body.single-horoscope .hz-meta,
body.hz-route .hz-meta{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(15,23,42,.70);
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start; /* NO space-between */
}

body.single-horoscope .hz-meta-sep,
body.hz-route .hz-meta-sep{ opacity: .6; }

body.single-horoscope .hz-meta-left,
body.hz-route .hz-meta-left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

/* Share row right side */
body.single-horoscope .hz-share,
body.hz-route .hz-share{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

/* Icon buttons */
body.single-horoscope .hz-share-btn,
body.hz-route .hz-share-btn{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(15,23,42,.18);
  border-radius:8px;
  background:#fff;
  text-decoration:none !important;
  color:#0B1B3A !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

body.single-horoscope .hz-share-btn i,
body.hz-route .hz-share-btn i{
  font-size:16px;
  line-height:1;
}

body.single-horoscope .hz-share-btn:hover,
body.hz-route .hz-share-btn:hover{
  transform: translateY(-1px);
  background: rgba(232,90,79,.08);
  border-color: rgba(232,90,79,.35);
  color:#E85A4F !important;
}

body.single-horoscope .hz-share-btn.hz-share-wa:hover,
body.hz-route .hz-share-btn.hz-share-wa:hover{
  background: rgba(37,211,102,.10);
  border-color: rgba(37,211,102,.45);
  color:#25D366 !important;
}

/* Mobile: centre align */
@media (max-width: 767px){

  body.single-horoscope .hz-header .entry-title,
  body.hz-route .hz-header .entry-title{
    text-align:center !important;
  }

  body.single-horoscope .hz-meta,
  body.hz-route .hz-meta{
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    gap:10px !important;
  }

  body.single-horoscope .hz-meta-left,
  body.hz-route .hz-meta-left{
    width:100% !important;
    justify-content:center !important;
  }

  body.single-horoscope .hz-share,
  body.hz-route .hz-share{
    width:100% !important;
    margin-left:0 !important;
    justify-content:center !important;
  }
}

