/*
Theme Name: VibeVault
Theme URI: https://vibevault.dev
Author: Vibe Coder
Author URI: https://vibevault.dev
Description: An intelligent, minimal app portfolio theme with automatic cover generation from a link. Clean, considered, fast.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vibevault
Tags: light, portfolio, apps, minimal, custom-colors, custom-menu, featured-images, full-width-template
*/

/* =========================================================
   CSS CUSTOM PROPERTIES — VIBEVAULT DESIGN TOKENS (Light)
   ========================================================= */
:root {
  /* Core Palette — warm off-white surface system */
  --vv-bg:          #fbfbfa;
  --vv-bg-card:     #ffffff;
  --vv-bg-card2:    #f6f6f4;
  --vv-surface:     #f3f3f1;
  --vv-border:      rgba(20, 20, 25, 0.08);
  --vv-border-glow: rgba(99, 67, 232, 0.35);

  /* Text */
  --vv-text:        #15151a;
  --vv-text-muted:  #6b6b76;
  --vv-text-faint:  #9d9da6;

  /* Accent — single confident indigo, used sparingly */
  --vv-purple:      #6343e8;
  --vv-purple-bright: #7c5cf0;
  --vv-pink:        #e94f8a;
  --vv-cyan:        #0ea5b8;
  --vv-green:       #1a9e6e;
  --vv-yellow:      #c9920f;
  --vv-orange:      #e3641f;

  /* Gradients — used as thin accents, not backgrounds */
  --vv-grad-hero:   linear-gradient(135deg, #6343e8 0%, #e94f8a 100%);
  --vv-grad-btn:    linear-gradient(135deg, #6343e8, #8a5cf6);
  --vv-grad-card:   linear-gradient(135deg, #ffffff 0%, #f8f8f6 100%);
  --vv-grad-grid:   linear-gradient(180deg, transparent 0%, rgba(99,67,232,0.02) 100%);

  /* Typography */
  --vv-font-display: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --vv-font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --vv-font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Sizing */
  --vv-radius-sm:  8px;
  --vv-radius-md:  14px;
  --vv-radius-lg:  20px;
  --vv-radius-xl:  28px;

  /* Shadows — soft, diffuse, almost no color */
  --vv-glow-purple: 0 0 0 4px rgba(99, 67, 232, 0.08);
  --vv-glow-pink:   0 0 0 4px rgba(233, 79, 138, 0.08);
  --vv-glow-cyan:   0 0 0 4px rgba(14, 165, 184, 0.08);
  --vv-shadow-card: 0 1px 2px rgba(20,20,25,0.04), 0 8px 24px rgba(20,20,25,0.06);
  --vv-shadow-card-hover: 0 4px 12px rgba(20,20,25,0.06), 0 20px 48px rgba(20,20,25,0.10);
  --vv-shadow-sm: 0 1px 2px rgba(20,20,25,0.05);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--vv-font-body);
  background: var(--vv-bg);
  color: var(--vv-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Faint dot grid — barely-there texture, not a neon overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(20,20,25,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--vv-purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vv-purple-bright); }

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

.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;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.vv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   TOPBAR (WordPress admin bar offset handled)
   ========================================================= */
.admin-bar .vv-navbar { top: 32px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.vv-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(251, 251, 250, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vv-border);
  height: 64px;
  display: flex;
  align-items: center;
}

.vv-navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.vv-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vv-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.vv-logo svg { flex-shrink: 0; }

.vv-logo__text { background: var(--vv-grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.vv-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  list-style: none;
}

.vv-nav a {
  color: var(--vv-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--vv-radius-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
}

.vv-nav a:hover,
.vv-nav .current-menu-item a,
.vv-nav .current_page_item a {
  color: var(--vv-text);
  background: rgba(168,85,247,0.15);
}

.vv-nav .current-menu-item a,
.vv-nav .current_page_item a {
  color: var(--vv-purple-bright);
}

.vv-navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.vv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--vv-radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.vv-btn--primary {
  background: var(--vv-grad-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,67,232,0.25);
}

.vv-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,67,232,0.35);
  color: #fff;
}

.vv-btn--ghost {
  background: var(--vv-bg-card);
  color: var(--vv-text);
  border: 1px solid var(--vv-border);
}

.vv-btn--ghost:hover {
  background: var(--vv-surface);
  color: var(--vv-text);
  border-color: rgba(20,20,25,0.16);
  transform: translateY(-1px);
}

.vv-btn--large {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--vv-radius-lg);
}

.vv-btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.vv-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--vv-purple);
  overflow: hidden;
  flex-shrink: 0;
}

.vv-avatar img { width: 100%; height: 100%; object-fit: cover; }

.vv-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--vv-text);
  cursor: pointer;
  padding: 8px;
}

/* =========================================================
   HERO
   ========================================================= */
.vv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero */
.vv-hero::before {
  content: '';
  position: absolute;
  top: 20%; right: 10%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.vv-hero::after {
  content: '';
  position: absolute;
  bottom: 10%; left: 5%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.vv-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
}

.vv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--vv-radius-sm);
  padding: 6px 14px;
  font-family: var(--vv-font-mono);
  font-size: 0.8rem;
  color: var(--vv-green);
  margin-bottom: 24px;
  width: fit-content;
}

.vv-hero__badge::before { content: '>_'; color: var(--vv-green); font-weight: 700; }

.vv-hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--vv-text);
  margin-bottom: 16px;
}

.vv-hero__title .line1 { display: block; }
.vv-hero__title .line2 {
  display: block;
  background: var(--vv-grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vv-hero__sub {
  font-size: 1.05rem;
  color: var(--vv-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.vv-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual */
.vv-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Fanned browser-preview stack — visualizes the auto-capture feature */
.vv-preview-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 320px;
}

.vv-preview-card {
  position: absolute;
  top: 0; left: 50%;
  width: 280px;
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-lg);
  box-shadow: var(--vv-shadow-card-hover);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}

.vv-preview-card--1 { transform: translate(-50%, 10px) rotate(-7deg); z-index: 1; opacity: 0.7; }
.vv-preview-card--2 { transform: translate(-50%, 0) rotate(4deg); z-index: 2; opacity: 0.85; }
.vv-preview-card--3 { transform: translate(-50%, -8px) rotate(-1deg) scale(1.04); z-index: 3; }

.vv-hero__visual:hover .vv-preview-card--1 { transform: translate(-66%, 30px) rotate(-12deg); }
.vv-hero__visual:hover .vv-preview-card--2 { transform: translate(-34%, 20px) rotate(8deg); }
.vv-hero__visual:hover .vv-preview-card--3 { transform: translate(-50%, -16px) rotate(-1deg) scale(1.06); }

.vv-preview-card__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--vv-border);
  background: var(--vv-bg-card2);
}
.vv-preview-card__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vv-border);
}
.vv-preview-card__url {
  margin-left: 6px;
  font-family: var(--vv-font-mono);
  font-size: 9px;
  color: var(--vv-text-faint);
  background: var(--vv-bg);
  border-radius: 4px;
  padding: 2px 8px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vv-preview-card__body {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--vv-surface), var(--vv-bg-card2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Floating capture badge */
.vv-capture-badge {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  box-shadow: var(--vv-shadow-card);
  border-radius: 30px;
  padding: 8px 16px 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vv-text);
  z-index: 4;
  white-space: nowrap;
}
.vv-capture-badge__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--vv-grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.vv-stats-strip {
  position: relative;
  z-index: 1;
  margin: 0 0 60px;
}

.vv-stats-strip__inner {
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-lg);
  padding: 28px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vv-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vv-stat__icon { font-size: 1.8rem; flex-shrink: 0; }

.vv-stat__value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--vv-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.vv-stat__label {
  font-size: 0.8rem;
  color: var(--vv-text-muted);
  margin-top: 2px;
}

/* =========================================================
   APPS SECTION
   ========================================================= */
.vv-apps-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}

.vv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.vv-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vv-text);
  letter-spacing: -0.02em;
  position: relative;
}

.vv-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 50px; height: 3px;
  background: var(--vv-grad-btn);
  border-radius: 2px;
}

.vv-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vv-search {
  position: relative;
}

.vv-search input {
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-md);
  color: var(--vv-text);
  padding: 10px 16px 10px 40px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color .2s;
  width: 200px;
  font-family: var(--vv-font-body);
}

.vv-search input:focus { border-color: var(--vv-purple); }
.vv-search input::placeholder { color: #475569; }

.vv-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 1rem;
}

.vv-select {
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-md);
  color: var(--vv-text);
  padding: 10px 36px 10px 14px;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: var(--vv-font-body);
}

.vv-select:focus { border-color: var(--vv-purple); }

.vv-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-md);
  padding: 4px;
}

.vv-view-toggle button {
  background: none;
  border: none;
  color: var(--vv-text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--vv-radius-sm);
  transition: all .2s;
  display: flex;
  align-items: center;
}

.vv-view-toggle button.active,
.vv-view-toggle button:hover {
  background: var(--vv-surface);
  color: var(--vv-text);
}

/* =========================================================
   APPS GRID
   ========================================================= */
.vv-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.vv-apps-grid.list-view {
  grid-template-columns: 1fr;
}

.vv-apps-grid.list-view .vv-app-card {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.vv-apps-grid.list-view .vv-app-card__cover {
  height: 100%;
  min-height: 120px;
  border-radius: var(--vv-radius-md) 0 0 var(--vv-radius-md);
}

/* App Card */
.vv-app-card {
  background: var(--vv-grad-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-lg);
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
  position: relative;
}

.vv-app-card:hover {
  border-color: var(--vv-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--vv-shadow-card), var(--vv-glow-purple);
}

.vv-app-card__cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--vv-surface);
}

.vv-app-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.vv-app-card:hover .vv-app-card__cover img {
  transform: scale(1.05);
}

/* AI placeholder cover */
.vv-app-card__cover--ai {
  background: linear-gradient(135deg, var(--vv-bg-card2) 0%, var(--vv-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.vv-app-card__cover--ai::before {
  content: '✦';
  font-size: 2rem;
  color: var(--vv-purple);
  opacity: 0.5;
}

.vv-app-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--vv-green);
  color: #0a0a14;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vv-app-badge--featured { background: var(--vv-yellow); }
.vv-app-badge--popular { background: var(--vv-orange); }

.vv-app-card__open {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-sm);
  color: var(--vv-text);
  padding: 4px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

.vv-app-card:hover .vv-app-card__open { opacity: 1; }

.vv-app-card__body { padding: 16px; }

.vv-app-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vv-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vv-app-card__desc {
  font-size: 0.8rem;
  color: var(--vv-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vv-app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.vv-tag {
  font-size: 0.7rem;
  color: var(--vv-text-muted);
  background: rgba(148,163,184,0.1);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--vv-font-mono);
}

.vv-app-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--vv-text-muted);
}

.vv-app-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Upload Card */
.vv-upload-card {
  background: transparent;
  border: 2px dashed rgba(168,85,247,0.4);
  border-radius: var(--vv-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  cursor: pointer;
  transition: all .2s;
  gap: 12px;
  min-height: 280px;
}

.vv-upload-card:hover {
  border-color: var(--vv-purple);
  background: rgba(168,85,247,0.05);
}

.vv-upload-card__icon {
  font-size: 2.5rem;
  color: var(--vv-purple);
  opacity: 0.7;
}

.vv-upload-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vv-text);
}

.vv-upload-card__sub {
  font-size: 0.8rem;
  color: var(--vv-text-muted);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.vv-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.vv-pagination a,
.vv-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--vv-radius-md);
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  color: var(--vv-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
}

.vv-pagination a:hover,
.vv-pagination span.current {
  background: var(--vv-grad-btn);
  border-color: transparent;
  color: #fff;
}

/* =========================================================
   SINGLE APP PAGE
   ========================================================= */
.vv-app-hero {
  padding: 100px 0 60px;
  position: relative;
  z-index: 1;
}

.vv-app-hero__cover {
  border-radius: var(--vv-radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/7;
  background: var(--vv-surface);
  position: relative;
}

.vv-app-hero__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.vv-app-meta-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.vv-app-meta-bar__left { flex: 1; }

.vv-app-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--vv-text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.vv-app-description {
  font-size: 1rem;
  color: var(--vv-text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.vv-app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vv-app-stats-bar {
  display: flex;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--vv-border);
  border-bottom: 1px solid var(--vv-border);
  margin: 32px 0;
}

.vv-app-stat {
  text-align: center;
}

.vv-app-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vv-text);
}

.vv-app-stat__label {
  font-size: 0.75rem;
  color: var(--vv-text-muted);
  margin-top: 2px;
}

.vv-app-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
}

.vv-app-content__main {}

.vv-app-content__main .entry-content {
  color: var(--vv-text);
  line-height: 1.8;
  font-size: 1rem;
}

.vv-app-content__main .entry-content h2,
.vv-app-content__main .entry-content h3 {
  color: var(--vv-text);
  font-weight: 700;
  margin: 32px 0 12px;
}

.vv-app-content__main .entry-content p { margin-bottom: 16px; }

.vv-app-content__main .entry-content ul,
.vv-app-content__main .entry-content ol {
  margin: 16px 0 16px 24px;
}

.vv-app-content__main .entry-content li { margin-bottom: 8px; }

.vv-app-sidebar {}

.vv-widget-box {
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.vv-widget-box__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.vv-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--vv-border);
  padding: 20px 0;
  text-align: center;
}

.vv-footer__quote {
  font-size: 0.85rem;
  color: #475569;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.vv-footer__quote::before,
.vv-footer__quote::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--vv-border);
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.vv-about-section {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.vv-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* =========================================================
   STATS PAGE
   ========================================================= */
.vv-stats-page {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.vv-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.vv-stats-card {
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-lg);
  padding: 28px;
  text-align: center;
  transition: border-color .2s;
}

.vv-stats-card:hover { border-color: var(--vv-border-glow); }

.vv-stats-card__icon { font-size: 2.5rem; margin-bottom: 12px; }
.vv-stats-card__value { font-size: 2.5rem; font-weight: 900; color: var(--vv-text); letter-spacing: -0.04em; }
.vv-stats-card__label { font-size: 0.85rem; color: var(--vv-text-muted); margin-top: 4px; }

/* =========================================================
   ADMIN: AI COVER GENERATOR
   ========================================================= */
.vv-ai-cover-box {
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-lg);
  padding: 20px;
  margin: 20px 0;
}

.vv-ai-cover-box h3 {
  color: var(--vv-text);
  margin-bottom: 12px;
  font-size: 1rem;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes vvPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes vvGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,67,232,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(99,67,232,0); }
}

@keyframes vvSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vv-pulse { animation: vvPulse 2s ease-in-out infinite; }
.vv-glow  { animation: vvGlow 3s ease-in-out infinite; }

/* =========================================================
   UTILITIES
   ========================================================= */
.vv-text-gradient {
  background: var(--vv-grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vv-mt-0 { margin-top: 0 !important; }
.vv-mb-0 { margin-bottom: 0 !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .vv-hero__inner { gap: 40px; }
  .vv-stats-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .vv-app-content { grid-template-columns: 1fr; }
  .vv-app-sidebar { display: none; }
}

@media (max-width: 768px) {
  .vv-nav, .vv-navbar__actions .vv-btn--primary { display: none; }
  .vv-hamburger { display: flex; margin-left: auto; }

  .vv-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0 40px;
  }

  .vv-hero__badge { margin: 0 auto 24px; }
  .vv-hero__ctas { justify-content: center; }
  .vv-hero__visual { order: -1; min-height: 280px; }
  .vv-preview-stack { max-width: 280px; height: 220px; }

  .vv-stats-strip__inner { grid-template-columns: 1fr 1fr; padding: 20px; gap: 16px; }
  .vv-about-grid { grid-template-columns: 1fr; gap: 40px; }

  .vv-section-header { flex-direction: column; align-items: flex-start; }
  .vv-filters { width: 100%; }

  .vv-apps-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .vv-app-hero { padding: 90px 0 40px; }
  .vv-app-meta-bar { flex-direction: column; }
}

@media (max-width: 480px) {
  .vv-container { padding: 0 16px; }
  .vv-stats-strip__inner { grid-template-columns: 1fr; }
  .vv-apps-grid { grid-template-columns: 1fr; }
}

/* Mobile nav open state */
.vv-mobile-nav-open .vv-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(251,251,250,0.97);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-bottom: 1px solid var(--vv-border);
  gap: 4px;
  z-index: 999;
}

/* =========================================================
   WORDPRESS ALIGNMENT HELPERS
   ========================================================= */
.alignleft  { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 10px; }

/* WP caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--vv-text-muted); text-align: center; margin-top: 6px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.vv-contact-section {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.vv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.vv-form-group {
  margin-bottom: 20px;
}

.vv-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vv-text-muted);
  margin-bottom: 8px;
}

.vv-input,
.vv-textarea {
  width: 100%;
  background: var(--vv-bg-card);
  border: 1px solid var(--vv-border);
  border-radius: var(--vv-radius-md);
  color: var(--vv-text);
  padding: 12px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s;
  font-family: var(--vv-font-body);
}

.vv-input:focus,
.vv-textarea:focus { border-color: var(--vv-purple); }

.vv-textarea { min-height: 140px; resize: vertical; }

@media (max-width: 768px) {
  .vv-contact-grid { grid-template-columns: 1fr; }
}
