/*
Theme Name: DigiVibe
Template: kadence
Description: Custom DigiVibe design system — built on Kadence for stability, styled entirely bespoke.
Version: 1.0.0
Author: DigiVibe
*/

/* ============================================================
   DIGIVIBE DESIGN SYSTEM
   ============================================================ */

:root {
  /* Brand palette */
  --dv-ink: #14112b;
  --dv-navy: #1e293b;
  --dv-slate: #475569;
  --dv-muted: #64748b;
  --dv-mist: #f8fafc;
  --dv-line: #e6e9f2;
  --dv-white: #ffffff;

  --dv-violet: #7c3aed;
  --dv-violet-dark: #4c1d95;
  --dv-cyan: #06b6d4;
  --dv-cyan-light: #22d3ee;

  --dv-gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --dv-gradient-deep: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #0e7490 130%);
  --dv-gradient-text: linear-gradient(90deg, #a78bfa 0%, #22d3ee 100%);

  --dv-radius-sm: 10px;
  --dv-radius-md: 16px;
  --dv-radius-lg: 24px;

  --dv-shadow-card: 0 1px 2px rgba(20, 17, 43, 0.04), 0 12px 32px -12px rgba(76, 29, 149, 0.18);
  --dv-shadow-card-hover: 0 4px 8px rgba(20, 17, 43, 0.06), 0 24px 48px -16px rgba(76, 29, 149, 0.28);

  --dv-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dv-font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --dv-container: 1180px;
}

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

* { box-sizing: border-box; }

body {
  font-family: var(--dv-font-body);
  color: var(--dv-slate);
  -webkit-font-smoothing: antialiased;
  background: var(--dv-white);
}

h1, h2, h3, h4, .wp-block-heading {
  font-family: var(--dv-font-display);
  letter-spacing: -0.02em;
}

a { transition: color .15s ease, opacity .15s ease, transform .15s ease; }

/* ============================================================
   HERO SPACING (tighten the gap right after the cover block)
   ============================================================ */

.wp-block-cover.alignfull + * {
  margin-top: -1rem;
}

.site-header,
#masthead {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--dv-line);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-navigation ul li a,
#masthead .menu-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dv-navy);
  position: relative;
  padding-bottom: 4px;
}

.main-navigation ul li a::after,
#masthead .menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--dv-gradient-brand);
  transition: width .2s ease;
  border-radius: 2px;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
#masthead .menu-link:hover::after {
  width: 100%;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.wp-block-button__link,
.dv-btn {
  border-radius: var(--dv-radius-sm) !important;
  font-weight: 600 !important;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(124, 58, 237, 0.45);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ============================================================
   CARDS (feature cards, generic wp-block-column cards)
   ============================================================ */

.wp-block-column.has-background {
  box-shadow: var(--dv-shadow-card) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wp-block-column.has-background:hover {
  transform: translateY(-4px);
  box-shadow: var(--dv-shadow-card-hover) !important;
}

/* ============================================================
   ICON SYSTEM — replaces raw emoji paragraphs with styled chips
   ============================================================ */

.dv-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--dv-radius-sm);
  background: var(--dv-gradient-brand);
  margin: 0 0 0.5rem 0;
}

.dv-icon-chip svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
}

.dv-icon-chip.dv-icon-chip--dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ============================================================
   BLOG CARDS (latest posts block)
   ============================================================ */

.wp-block-latest-posts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-latest-posts > li {
  background: var(--dv-white);
  border-radius: var(--dv-radius-md);
  overflow: hidden;
  box-shadow: var(--dv-shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--dv-line);
}

.wp-block-latest-posts > li:hover {
  transform: translateY(-6px);
  box-shadow: var(--dv-shadow-card-hover);
}

.wp-block-latest-posts__featured-image {
  margin: 0 !important;
  line-height: 0;
}

.wp-block-latest-posts__featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.wp-block-latest-posts > li > a {
  display: block;
  padding: 1.25rem 1.4rem 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dv-navy);
  line-height: 1.35;
}

.wp-block-latest-posts > li > a:hover {
  background: linear-gradient(90deg, #7c3aed 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wp-block-latest-posts__post-date {
  display: block;
  padding: 0.35rem 1.4rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dv-cyan);
}

.wp-block-latest-posts__post-author {
  display: block;
  padding: 0.15rem 1.4rem 0;
  font-size: 0.8rem;
  color: var(--dv-muted);
}

.wp-block-latest-posts__post-excerpt {
  padding: 0.6rem 1.4rem 1.4rem;
  font-size: 0.92rem;
  color: var(--dv-muted);
  line-height: 1.55;
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.single .entry-header {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 2.5rem;
}

.single .entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dv-navy);
  line-height: 1.15;
}

.single .entry-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--dv-slate);
}

.single .entry-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dv-navy);
  margin-top: 2.5rem;
}

.single .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dv-navy);
}

.single .entry-content a {
  color: var(--dv-violet);
  text-decoration-thickness: 1.5px;
}

.single .entry-content blockquote {
  border-left: 3px solid var(--dv-cyan);
  padding-left: 1.25rem;
  color: var(--dv-navy);
  font-style: italic;
}

.dv-read-time {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dv-cyan);
  margin: -0.5rem auto 1.5rem;
  max-width: 760px;
}

.single .entry-content > .dv-read-time:first-child {
  display: block;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

#colophon,
.site-footer {
  background: var(--dv-ink);
  color: #cbd5e1;
}

#colophon a,
.site-footer a {
  color: #e2e8f0;
}

#colophon a:hover,
.site-footer a:hover {
  color: var(--dv-cyan-light);
}

/* ============================================================
   MISC POLISH
   ============================================================ */

::selection {
  background: var(--dv-violet);
  color: #fff;
}

img { border-radius: 4px; }
.wp-block-cover img { border-radius: 0; }

/* Kadence "Similar Posts" related cards */
.kadence-blog-related img,
.related-posts img,
article .post-thumbnail img {
  border-radius: var(--dv-radius-md) var(--dv-radius-md) 0 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}

@media (max-width: 782px) {
  .wp-block-columns { flex-wrap: wrap !important; }
}

/* ============================================================
   HIDE GENERIC PAGE-TITLE BAR ON THE HOMEPAGE
   ============================================================ */

.home .entry-header,
.home .page-header,
.home .site-content > .entry-header {
  display: none !important;
}

/* ============================================================
   CUSTOM FOOTER (replaces default Kadence "Theme by Kadence WP" credit)
   ============================================================ */

.dv-footer-note {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

#colophon .footer-widget-area,
.site-footer .footer-widget-area,
#colophon .site-info,
.site-footer .site-info {
  display: none !important;
}
