/* Vakalat Diary — God-Mode Design System
   Brand: Deep Indigo + Gold — authoritative, professional, distinctive
*/

:root {
  /* Brand palette */
  --v-indigo-900: #0f1033;
  --v-indigo-800: #1a1c4e;
  --v-indigo-700: #272a6b;
  --v-indigo-600: #3b3e8e;
  --v-indigo-500: #5558b8;
  --v-indigo-100: #e8e9f7;
  --v-gold: #f5b940;
  --v-gold-bright: #ffcf5c;
  --v-gold-dark: #c8911b;

  /* Neutrals */
  --v-bg: #fafbfc;
  --v-surface: #ffffff;
  --v-surface-2: #f5f6f9;
  --v-text: #14152e;
  --v-text-muted: #6b6e85;
  --v-border: #e3e5ef;

  /* Gradients */
  --v-gradient-hero: linear-gradient(135deg, #0f1033 0%, #1a1c4e 45%, #3b3e8e 100%);
  --v-gradient-accent: linear-gradient(135deg, var(--v-gold) 0%, var(--v-gold-bright) 100%);
  --v-gradient-mesh:
    radial-gradient(at 20% 10%, rgba(85, 88, 184, 0.4) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(245, 185, 64, 0.25) 0px, transparent 50%),
    radial-gradient(at 40% 80%, rgba(59, 62, 142, 0.35) 0px, transparent 50%);

  /* Typography */
  --v-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --v-font-serif: 'Playfair Display', 'Georgia', serif;

  /* Shadow */
  --v-shadow-sm: 0 1px 2px rgba(15, 16, 51, 0.05);
  --v-shadow-md: 0 4px 12px rgba(15, 16, 51, 0.08);
  --v-shadow-lg: 0 12px 32px rgba(15, 16, 51, 0.12);
  --v-shadow-glow: 0 0 40px rgba(85, 88, 184, 0.25);

  --v-radius: 12px;
  --v-radius-lg: 20px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--v-font-sans);
  color: var(--v-text);
  background: var(--v-bg);
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--v-text);
}

.display-serif { font-family: var(--v-font-serif); font-weight: 800; }

/* ============ Top Nav ============ */
.v-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--v-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.v-nav .navbar-brand {
  font-family: var(--v-font-serif);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--v-indigo-900) !important;
  letter-spacing: -0.03em;
}
.v-nav .navbar-brand .brand-accent { color: var(--v-gold-dark); }
.v-nav .nav-link {
  color: var(--v-text) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: background 0.15s;
}
.v-nav .nav-link:hover { background: var(--v-indigo-100); }

/* ============ Hero ============ */
.v-hero {
  position: relative;
  background: var(--v-gradient-hero);
  color: #fff;
  padding: 110px 0 80px;
  overflow: hidden;
}
.v-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--v-gradient-mesh);
  pointer-events: none;
}
.v-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--v-bg));
}
.v-hero h1 {
  font-family: var(--v-font-serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}
.v-hero .h-accent { color: var(--v-gold-bright); }
.v-hero .lead-muted { color: rgba(255,255,255,0.75); font-size: 1.18rem; max-width: 620px; margin: 0 auto 2.4rem; }

.v-badge-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(245, 185, 64, 0.15);
  color: var(--v-gold-bright);
  border: 1px solid rgba(245, 185, 64, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

/* ============ Buttons ============ */
.btn-v-primary {
  background: var(--v-gradient-accent);
  color: var(--v-indigo-900);
  border: none;
  padding: 0.78rem 1.8rem;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: -0.005em;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245, 185, 64, 0.35);
}
.btn-v-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(245, 185, 64, 0.5);
  color: var(--v-indigo-900);
}
.btn-v-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.78rem 1.6rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
}
.btn-v-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }

/* ============ Cards ============ */
.v-card {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 1.8rem;
  box-shadow: var(--v-shadow-sm);
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
}
.v-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v-shadow-lg);
  border-color: var(--v-indigo-500);
}
.v-card-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.v-feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v-indigo-100);
  color: var(--v-indigo-600);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ============ KPI tiles ============ */
.v-kpi {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.v-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--v-indigo-500);
}
.v-kpi.accent::before { background: var(--v-gold); }
.v-kpi.success::before { background: #10b981; }
.v-kpi.danger::before { background: #ef4444; }
.v-kpi.warning::before { background: #f59e0b; }
.v-kpi:hover { border-color: var(--v-indigo-500); box-shadow: var(--v-shadow-md); }
.v-kpi .k-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--v-text-muted); }
.v-kpi .k-value { font-size: 2.1rem; font-weight: 800; line-height: 1.1; margin-top: 0.2rem; color: var(--v-text); font-variant-numeric: tabular-nums; }
.v-kpi .k-sub { font-size: 0.82rem; color: var(--v-text-muted); margin-top: 0.2rem; }
.v-kpi .k-icon {
  position: absolute; top: 1.2rem; right: 1.2rem;
  opacity: 0.15;
  font-size: 2.8rem;
  color: var(--v-indigo-600);
}

/* ============ Section ============ */
.v-section { padding: 80px 0; }
.v-section h2 { font-family: var(--v-font-serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; margin-bottom: 0.5rem; }
.v-section .lead { color: var(--v-text-muted); max-width: 650px; margin: 0 auto 3rem; text-align: center; font-size: 1.08rem; }
.v-section-dark { background: var(--v-indigo-900); color: #fff; }
.v-section-dark h2 { color: #fff; }
.v-section-dark .lead { color: rgba(255,255,255,0.7); }
.v-section-tinted { background: var(--v-surface-2); }

/* ============ Badge ============ */
.v-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--v-indigo-100);
  color: var(--v-indigo-700);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.v-badge.gold { background: rgba(245,185,64,0.2); color: var(--v-gold-dark); }
.v-badge.success { background: rgba(16,185,129,0.12); color: #059669; }
.v-badge.danger { background: rgba(239,68,68,0.12); color: #dc2626; }

/* ============ Footer ============ */
.v-footer {
  background: var(--v-indigo-900);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.v-footer h6 { color: #fff; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.v-footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 0.25rem 0; font-size: 0.92rem; }
.v-footer a:hover { color: var(--v-gold-bright); }

/* ============ Dashboard layout ============ */
.v-dashboard { background: var(--v-surface-2); min-height: calc(100vh - 80px); padding: 32px 0; }
.v-panel {
  background: var(--v-surface);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  padding: 1.4rem 1.6rem;
}
.v-panel h5 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.v-panel .panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--v-border);
}

.v-activity-item {
  display: flex; align-items: start; gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--v-border);
}
.v-activity-item:last-child { border-bottom: none; }
.v-activity-dot {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v-indigo-100);
  color: var(--v-indigo-600);
  font-size: 0.95rem;
}
.v-activity-body { flex: 1; font-size: 0.91rem; }
.v-activity-body .t-muted { color: var(--v-text-muted); font-size: 0.8rem; }

/* ============ Stats counter animation ============ */
@keyframes v-fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.v-fade-in { animation: v-fadeup 0.6s cubic-bezier(.2,.8,.2,1) both; }
.v-fade-in.d1 { animation-delay: 0.08s; }
.v-fade-in.d2 { animation-delay: 0.16s; }
.v-fade-in.d3 { animation-delay: 0.24s; }
.v-fade-in.d4 { animation-delay: 0.32s; }

/* ============ Utility ============ */
.v-divider { height: 1px; background: var(--v-border); margin: 2rem 0; }
.v-link-arrow { color: var(--v-indigo-600); font-weight: 600; text-decoration: none; }
.v-link-arrow:hover { color: var(--v-indigo-700); }
.v-link-arrow::after { content: ' →'; transition: margin-left 0.2s; }
.v-link-arrow:hover::after { margin-left: 4px; }

.v-dot-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; position: relative; margin-right: 0.4rem; }
.v-dot-pulse::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.8); opacity: 0; } }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .v-hero { padding: 70px 0 50px; }
  .v-hero h1 { font-size: 2.2rem; }
  .v-section { padding: 50px 0; }
}
