/*
Theme Name: Astra Child — BudgetMate AI
Template: astra
Version: 1.0
*/

/* =============================================
   FONTS & BASE
   ============================================= */
:root {
  --brand-dark: #0f172a;
  --brand-blue: #2563eb;
  --brand-green: #10b981;
  --brand-light: #f0fdf4;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header, .ast-primary-header-bar {
  background: var(--brand-dark) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  border-bottom: none !important;
}

.site-header .site-title a,
.site-header .site-title,
.ast-site-identity .site-title a {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

/* Tagline in header */
.site-header .site-description {
  color: #94a3b8 !important;
  font-size: 12px;
}

/* Nav links */
.main-header-bar .main-navigation a,
.ast-primary-nav .menu-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 14px;
  transition: color .2s;
}
.main-header-bar .main-navigation a:hover,
.main-header-bar .main-navigation .current-menu-item > a {
  color: var(--brand-green) !important;
}

/* Logo badge */
.site-title a::before {
  content: '💰 ';
}

/* =============================================
   HERO / COVER BLOCK
   ============================================= */
.wp-block-cover {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2d1f 100%) !important;
}

.wp-block-cover h1 {
  font-size: clamp(32px, 5vw, 58px) !important;
  font-weight: 800 !important;
  letter-spacing: -1.5px !important;
  line-height: 1.1 !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.wp-block-button__link,
.wp-element-button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all .2s ease !important;
}

/* Primary CTA button */
.wp-block-button:first-child .wp-block-button__link {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.4) !important;
}
.wp-block-button:first-child .wp-block-button__link:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(16,185,129,.5) !important;
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.wp-block-group[style*="border-radius:12px"],
.wp-block-group[style*="border-radius: 12px"] {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow .2s, transform .2s !important;
}
.wp-block-group[style*="border-radius:12px"]:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}

/* =============================================
   BLOG POSTS
   ============================================= */
.ast-article-post,
.blog .post,
article.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.ast-article-post:hover,
.blog .post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.entry-title a {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  text-decoration: none !important;
  transition: color .2s;
}
.entry-title a:hover {
  color: var(--brand-blue) !important;
}

.entry-meta, .entry-meta a, .ast-post-meta {
  color: var(--text-muted) !important;
  font-size: 13px;
}

/* =============================================
   SINGLE POST
   ============================================= */
.single .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #1e293b;
  max-width: 740px;
}

.single .entry-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--brand-dark);
  border-left: 4px solid var(--brand-green);
  padding-left: 16px;
}

.single .entry-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  color: var(--brand-dark);
}

.single .entry-content blockquote {
  background: #f0fdf4;
  border-left: 4px solid var(--brand-green);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: normal;
  color: #1e293b;
}

.single .entry-content ul li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.single .entry-content a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,.3);
  transition: text-decoration-color .2s;
}
.single .entry-content a:hover {
  text-decoration-color: var(--brand-blue);
}

.single .entry-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 48px 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer, .ast-small-footer {
  background: var(--brand-dark) !important;
  color: #94a3b8 !important;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 32px 0 !important;
}

.site-footer a, .ast-small-footer a {
  color: #cbd5e1 !important;
  transition: color .2s;
}
.site-footer a:hover {
  color: var(--brand-green) !important;
}

/* Hide "Powered by WordPress / Astra" */
.ast-footer-copyright,
.ast-small-footer-wrap .ast-small-footer-copyright {
  display: none !important;
}

/* =============================================
   CATEGORY / ARCHIVE PAGES
   ============================================= */
.ast-archive-description,
.page-header {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.widget-area .widget {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* =============================================
   FEATURED IMAGE
   ============================================= */
.post-thumbnail img,
.wp-post-image {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .site-header .site-title a { font-size: 18px; }
  .single .entry-content { font-size: 16px; }
  .single .entry-content h2 { font-size: 22px; }
}

/* =============================================
   HIDE PAGE TITLE ON HOMEPAGE
   ============================================= */
.home .entry-header,
.home .ast-archive-description .ast-archive-title,
.page-id-14 .entry-header,
.page-id-14 .entry-title,
.home h1.entry-title,
.home .page-title {
  display: none !important;
}

/* Also hide Astra page title bar on homepage */
.home .ast-page-title-bar,
.home .ast-breadcrumbs-wrapper {
  display: none !important;
}

/* =============================================
   FIX CATEGORY ARCHIVE HEADER — TEXT VISIBLE
   ============================================= */
.ast-archive-description,
.page-header,
.ast-archive-description .ast-archive-title,
.archive .page-header .page-title {
  background: linear-gradient(135deg, #0f172a, #1e3a5f) !important;
  color: #ffffff !important;
  padding: 48px 40px !important;
  border-radius: 12px !important;
  margin-bottom: 32px !important;
}

.ast-archive-description .ast-archive-title,
.archive .page-title,
.page-header .page-title {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 800 !important;
}

.ast-archive-description p,
.page-header p,
.term-description {
  color: #94a3b8 !important;
  font-size: 16px !important;
  margin-top: 8px !important;
}

/* =============================================
   FOOTER — PROPER SETUP
   ============================================= */
.site-footer {
  background: #0f172a !important;
  padding: 0 !important;
}

/* Footer widgets area */
.footer-widget-area,
.ast-footer-overlay {
  background: #0f172a !important;
  padding: 56px 0 32px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}

/* Footer bottom bar */
.ast-small-footer,
.footer-bar-area {
  background: #070e1a !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  padding: 20px 0 !important;
}

.ast-small-footer-wrap,
.ast-small-footer .ast-footer-copyright {
  color: #475569 !important;
  font-size: 13px !important;
  text-align: center !important;
  display: block !important;
}

/* Footer custom content via Astra */
#ast-custom-footer {
  color: #475569;
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

/* =============================================
   BLOG CARD — BETTER EXCERPT STYLE
   ============================================= */
.blog .entry-summary p,
.archive .entry-summary p {
  color: #64748b !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-top: 8px;
}

/* Category tags on cards */
.ast-article-categories-list a,
.cat-links a {
  background: #f0fdf4 !important;
  color: #059669 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  margin-right: 4px !important;
}

/* =============================================
   REMOVE ASTRA BREADCRUMB & PAGE TITLE BAR
   ON FRONT PAGE
   ============================================= */
.ast-breadcrumbs-wrapper { display: none; }
