/*
Theme Name: YouNoya Companion
Theme URI: https://younoya.com
Author: YouNoya Engineering Team
Author URI: https://younoya.com
Description: Production Astroplate Theme for YouNoya Astrology & Zodiac Gifting Journal.
Version: 3.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: younoya-companion
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Heebo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Astroplate Palette - Light Golden Astrology Edition */
  --yn-primary: #c59b43;
  --yn-primary-hover: #b38728;
  --yn-primary-dark: #8c6318;
  --yn-primary-light: #fefcf7;
  
  --yn-body: #faf6ed;
  --yn-light: #faf6ed;
  --yn-light-subtle: #f5eedc;
  --yn-border: #ede4d1;
  --yn-border-dark: #d8c8a8;
  --yn-dark: #181512;
  --yn-dark-subtle: #241f1a;
  
  --yn-text: #4a4237;
  --yn-text-dark: #181512;
  --yn-text-light: #7c7263;
  --yn-text-muted: #948a7b;
  
  --yn-gold-gradient: linear-gradient(135deg, #d4af37 0%, #c59b43 50%, #9a741c 100%);
  --yn-dark-gradient: linear-gradient(135deg, #181512 0%, #29231c 100%);
  
  --yn-font-primary: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --yn-font-secondary: 'Cinzel', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #faf6ed !important;
}

body {
  font-family: var(--yn-font-primary);
  background-color: #faf6ed !important;
  color: var(--yn-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
  padding: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography scale */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--yn-font-secondary);
  color: var(--yn-text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

h1, .h1 { font-size: 2.85rem; letter-spacing: -0.01em; }
h2, .h2 { font-size: 2.15rem; }
h3, .h3 { font-size: 1.6rem; }
h4, .h4 { font-size: 1.3rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 0.95rem; }

@media (max-width: 768px) {
  h1, .h1 { font-size: 2.15rem; }
  h2, .h2 { font-size: 1.75rem; }
  h3, .h3 { font-size: 1.35rem; }
}

p {
  margin-bottom: 1.25rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Spacing */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 6.5rem; padding-bottom: 3.5rem; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--yn-font-primary);
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 9999px;
}

.btn-primary {
  background: var(--yn-primary);
  border-color: var(--yn-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(197, 155, 67, 0.28);
}
.btn-primary:hover {
  background: var(--yn-primary-hover);
  border-color: var(--yn-primary-hover);
  box-shadow: 0 6px 18px rgba(197, 155, 67, 0.38);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--yn-text-dark);
  color: var(--yn-text-dark);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline-primary:hover {
  background: var(--yn-text-dark);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24, 21, 18, 0.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   FIXED FLOATING FROSTED GLASS PILL HEADER
   ========================================================================== */
.site-header {
  position: fixed !important;
  top: 16px !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: calc(100% - 2.5rem) !important;
  max-width: 1100px !important;
  height: 64px !important;
  z-index: 999999 !important;
  
  /* True Frosted Glassmorphism */
  background: rgba(255, 255, 255, 0.52) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 30px rgba(74, 66, 55, 0.08), 0 2px 8px rgba(197, 155, 67, 0.06) !important;
  
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 1.75rem !important;
  gap: 1.5rem !important;
  box-sizing: border-box !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 14px 38px rgba(74, 66, 55, 0.12), 0 2px 8px rgba(197, 155, 67, 0.08) !important;
  border-color: rgba(237, 228, 209, 0.95) !important;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 175px !important;
  object-fit: contain !important;
  display: block !important;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.main-navigation ul,
.navbar-nav,
ul.menu {
  display: flex !important;
  list-style: none !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li,
.navbar-nav li,
ul.menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.main-navigation a,
.nav-link,
ul.menu a {
  font-family: var(--yn-font-primary);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--yn-text-dark);
  transition: all 0.2s ease;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  position: relative;
  display: inline-block;
  text-decoration: none !important;
}

.main-navigation a:hover,
.nav-link:hover,
.current-menu-item > a,
.main-navigation .current-menu-item > a {
  background: rgba(197, 155, 67, 0.12) !important;
  color: var(--yn-primary) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--yn-border);
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yn-text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 1.5rem);
  max-width: 1100px;
  z-index: 999998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--yn-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(74, 66, 55, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.mobile-drawer.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mobile-drawer a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--yn-text-dark);
  font-size: 1rem;
}
.mobile-drawer a:hover,
.mobile-drawer .current-menu-item > a {
  background: var(--yn-light);
  color: var(--yn-primary);
}

/* ==========================================================================
   ASTROPLATE HERO BANNER & HERO TILE
   ========================================================================== */
.hero-banner {
  padding: 7.5rem 0 3.5rem;
  background: linear-gradient(180deg, #faf6ed 0%, #ffffff 100%);
  width: 100%;
  margin-top: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #ffffff;
  color: var(--yn-primary-dark);
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid var(--yn-border);
  margin-bottom: 1.5rem;
  font-family: var(--yn-font-secondary);
  box-shadow: 0 2px 6px rgba(197, 155, 67, 0.08);
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 700;
  color: var(--yn-text-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--yn-text);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-tile-wrapper {
  margin-top: 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(74, 66, 55, 0.1);
  border: 1px solid var(--yn-border);
  background: #ffffff;
}

.hero-tile-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   ASTROPLATE 2-COLUMN FEATURES
   ========================================================================== */
.feature-section {
  padding: 5rem 0;
  border-top: 1px solid var(--yn-border);
  background-color: #ffffff;
}

.feature-section.bg-light {
  background-color: var(--yn-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.feature-bullet-list li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--yn-text);
  line-height: 1.6;
}

.feature-bullet-list li svg {
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--yn-primary);
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
}

/* ==========================================================================
   ASTROPLATE BLOG CARD & GRID
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--yn-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 8px rgba(74, 66, 55, 0.04);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(197, 155, 67, 0.16);
  border-color: var(--yn-primary);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--yn-light);
  width: 100%;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
  font-family: var(--yn-font-secondary);
}

.blog-card-title a {
  color: var(--yn-text-dark);
}

.blog-card-title a:hover {
  color: var(--yn-primary);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--yn-text-light);
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.blog-card-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-meta a {
  color: var(--yn-text-light);
}

.blog-card-meta a:hover {
  color: var(--yn-primary);
}

.blog-card-summary {
  color: var(--yn-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Category & Zodiac Chips */
.chips-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--yn-text-dark);
  border: 1px solid var(--yn-border);
  transition: all 0.2s ease;
  text-decoration: none;
}

.chip-item:hover, .chip-item.active {
  background: var(--yn-light);
  border-color: var(--yn-primary);
  color: var(--yn-primary-dark);
  box-shadow: 0 2px 8px rgba(197, 155, 67, 0.15);
}

/* ==========================================================================
   ASTROPLATE CALL TO ACTION SECTION
   ========================================================================== */
.cta-box {
  background: var(--yn-light);
  border: 1px solid var(--yn-border);
  border-radius: 16px;
  padding: 4rem 3.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* ==========================================================================
   ASTROPLATE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--yn-light);
  border-top: 1px solid var(--yn-border);
  color: var(--yn-text);
  margin-top: 5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5rem 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
  display: block !important;
}

.footer-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--yn-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--yn-primary);
}

.footer-bottom {
  border-top: 1px solid var(--yn-border);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--yn-text-light);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .hero-title { font-size: 2.5rem; }
}

@media (max-width: 900px) {
  .site-header { top: 12px !important; height: 58px !important; width: calc(100% - 1.5rem) !important; padding: 0 1rem !important; gap: 0.5rem !important; }
  .header-logo { height: 34px !important; max-height: 34px !important; max-width: 135px !important; }
  .main-navigation { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
  .header-actions .btn { padding: 0.35rem 0.85rem !important; font-size: 0.8rem !important; }
  
  .hero-banner { padding: 6.25rem 0 2.5rem !important; }
  .hero-title { font-size: 2rem !important; }
  .hero-subtitle { font-size: 1.025rem !important; margin-bottom: 1.75rem !important; }
  
  .feature-section { padding: 3.5rem 0 !important; }
  .feature-grid { grid-template-columns: 1fr !important; gap: 2.25rem !important; text-align: center !important; }
  .feature-bullet-list li { text-align: left !important; font-size: 0.975rem !important; }
  
  .cta-box { padding: 2.5rem 1.5rem !important; }
  .cta-grid { grid-template-columns: 1fr !important; gap: 2rem !important; text-align: center !important; }
  
  .footer-inner { flex-direction: column !important; text-align: center !important; gap: 1.5rem !important; padding: 2.5rem 0 1.5rem !important; }
  .footer-nav { justify-content: center !important; gap: 1.25rem !important; }
}

@media (max-width: 640px) {
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .hero-banner { padding: 5.75rem 0 2rem !important; }
  .hero-title { font-size: 1.75rem !important; }
  .hero-subtitle { font-size: 0.95rem !important; }
  .hero-pill { font-size: 0.72rem !important; padding: 0.35rem 0.9rem !important; }
  .hero-tile-wrapper { margin-top: 2rem !important; border-radius: 12px !important; }
  
  .articles-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .blog-card { padding: 1.25rem !important; }
  .blog-card-title { font-size: 1.15rem !important; }
  
  .chips-nav { flex-wrap: nowrap !important; overflow-x: auto !important; padding-bottom: 0.5rem !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; margin-bottom: 1.5rem !important; }
  .chips-nav::-webkit-scrollbar { display: none !important; }
  .chip-item { flex-shrink: 0 !important; font-size: 0.8rem !important; padding: 0.35rem 0.85rem !important; }
  
  .section-sm { padding-top: 5.75rem !important; padding-bottom: 3rem !important; }
}
