/*
 Theme Name:  Astra Child (CloudNativeWiz — visual styles)
 Template:    astra
 Description: Font & style overrides to match cloudnativewiz.com (no functionality changes)
*/

/* ====== Brand tokens (match your PHP homepage) ====== */
:root{
  --cnw-page-bg: #f3f4f6;   /* light gray body */
  --cnw-text:    #374151;   /* base text */
  --cnw-muted:   #6b7280;   /* secondary text */
  --cnw-card:    #ffffff;   /* surfaces/cards */
  --cnw-radius:  16px;

  /* Brand colors (Indigo → Purple), and link accents */
  --cnw-indigo-600: #4f46e5;
  --cnw-indigo-700: #4338ca;
  --cnw-purple-700: #7c3aed;

  --cnw-link:        #4338ca;   /* links/buttons */
  --cnw-link-hover:  #3730a3;
}

/* ====== Global base ====== */
html { scroll-behavior: smooth; }
body{
  background: var(--cnw-page-bg);
  color: var(--cnw-text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a{ color: var(--cnw-link); text-decoration: none; }
a:hover{ color: var(--cnw-link-hover); }

/* Container width parity with home page */
.ast-container, .ast-container-fluid{ max-width: 1200px; }

/* ====== Typography scale (match homepage feel) ======
   Adjust sizes if you want slightly bigger/smaller */
h1{ font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
h2{ font-size: 32px; line-height: 1.2; font-weight: 700; }
h3{ font-size: 24px; line-height: 1.3; font-weight: 700; }
p, li{ font-size: 18px; }

/* Astra headings sometimes get theme sizes — ensure ours win */
.entry-title, .ast-single-post .entry-title{ font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }

/* Secondary text */
.entry-meta, .entry-meta * { color: var(--cnw-muted) !important; }

/* ====== Header (visual only) ====== */
.site-header, .main-header-bar{ background: transparent; box-shadow: none; }
.main-header-menu .menu-link{ color: var(--cnw-text); opacity: .95; }
.main-header-menu .menu-link:hover{ color: var(--cnw-link); }

/* ====== Buttons (visual only) ====== */
button, .button, .wp-block-button__link, input[type=submit]{
  background: var(--cnw-indigo-700);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
}
button:hover, .button:hover, .wp-block-button__link:hover, input[type=submit]:hover{
  background: var(--cnw-link-hover);
  color: #fff;
}

/* ====== Card look for archives & single posts ====== */
.blog .site-main,
.archive .site-main{
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.blog .site-main article,
.archive .site-main article{
  background: var(--cnw-card);
  border-radius: var(--cnw-radius);
  padding: 22px;
  box-shadow: 0 10px 35px rgba(0,0,0,.09);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog .site-main .entry-content{ margin-top: auto; }

.single .site-main article{
  background: var(--cnw-card);
  border-radius: var(--cnw-radius);
  padding: 34px 28px;
  box-shadow: 0 14px 46px rgba(0,0,0,.12);
}

/* Featured images rounded */
.post-thumb img, .wp-post-image{
  border-radius: 12px;
  width: 100%; height: auto; object-fit: cover;
}

/* ====== Chips for categories/tags (visual only) ====== */
.entry-meta .cat-links a,
.entry-meta .tags-links a,
.wp-block-post-terms a{
  display: inline-block;
  padding: 6px 10px;
  margin: 4px 6px 0 0;
  border-radius: 999px;
  background: rgba(67,56,202,.10);
  color: var(--cnw-indigo-700);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  line-height: 1;
}
.entry-meta .cat-links a:hover,
.entry-meta .tags-links a:hover,
.wp-block-post-terms a:hover{
  background: rgba(67,56,202,.18);
}

/* ====== Readability helpers ====== */
.single blockquote{
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--cnw-indigo-700);
  background: #ffffff;
  border-radius: 12px;
  color: var(--cnw-text);
}
.single pre{
  background: #0b1220;
  color: #e5e7eb;
  padding: 14px 16px;
  border-radius: 12px;
  overflow: auto;
}

/* ====== Responsive type ====== */
@media (max-width: 768px){
  h1{ font-size: 38px; }
  .entry-title, .ast-single-post .entry-title{ font-size: 36px; }
  p, li{ font-size: 17px; }
}
@media (max-width: 480px){
  h1{ font-size: 32px; }
  .entry-title, .ast-single-post .entry-title{ font-size: 32px; }
  p, li{ font-size: 16px; }
}
