/*
Theme Name: Zavify
Theme URI: https://zavify.com
Author: Hassan Zaviar
Author URI: https://zavify.com
Description: A premium AI intelligence blog theme with real-time updates, featured posts, single blog layout, archive layout, and header search. Pixel-perfect conversion from the Zavify React app.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zavify
Tags: blog, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready, custom-logo, editor-style
*/

/* ─────────────────────────────────────────────────────────────
   Design Tokens — mirrors the React app's CSS variables exactly
───────────────────────────────────────────────────────────── */
:root {
  /* Radius scale */
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  /* Core palette */
  --lime: #b9fb6a;
  --lime-dark: #9de84f;
  --ink: #0f0f0f;

  /* Semantic colors */
  --background: #ffffff;
  --foreground: #0f0f0f;
  --card: #ffffff;
  --card-foreground: #0f0f0f;
  --muted: #f4f7f0;
  --muted-foreground: #6b7562;
  --accent: #b9fb6a;
  --accent-foreground: #0f0f0f;
  --border: rgba(15, 15, 15, 0.10);
  --border-strong: rgba(15, 15, 15, 0.18);
  --input: rgba(15, 15, 15, 0.12);
  --ring: #0f0f0f;

  /* Fonts */
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.06), 0 24px 48px -16px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 10px 40px -10px rgba(185, 251, 106, 0.6);

  /* Gradients */
  --gradient-lime: linear-gradient(135deg, #ddfca6, #b9fb6a);
  --gradient-ink: linear-gradient(180deg, #1c1c1c, #080808);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ─── Layout utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── Scroll animation base ────────────────────────────────── */
.anim {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 {
  transition-delay: 0.08s;
}

.anim-delay-2 {
  transition-delay: 0.16s;
}

.anim-delay-3 {
  transition-delay: 0.24s;
}

.anim-delay-4 {
  transition-delay: 0.32s;
}

.anim-delay-5 {
  transition-delay: 0.40s;
}

.anim-delay-6 {
  transition-delay: 0.48s;
}

/* ─── Global keyframes ─────────────────────────────────────── */
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

@keyframes bar-grow {
  from {
    height: 0;
  }

  to {
    height: var(--bar-h);
  }
}

/* ─── Global utility classes ───────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-accent {
  background-color: var(--accent);
}

.text-accent {
  color: var(--accent);
}

.bg-foreground {
  background-color: var(--foreground);
}

.text-background {
  color: var(--background);
}

/* ─── WordPress alignment classes ─────────────────────────── */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

.alignwide {
  max-width: 1100px;
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-inline: calc(-50vw + 50%);
}

/* ─── Responsive images ────────────────────────────────────── */
.wp-post-image {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}