/* ==========================================================================
   PUBLISHER HOUSE — EDITORIAL LUXURY MINIMALISM (UPDATE V21)
   UI/UX Pro Max Specification:
   • Industry: Publisher House (Academic & Scholarly Publishing)
   • Style: Minimalism (Archival Ivory Canvas, 1px Stone Hairlines, Quiet Luxury)
   • Typography: Elegant Luxury (Cormorant Garamond + Newsreader + Plus Jakarta Sans)
   • Color: Service Trust (Editorial Obsidian #141923 + Classic Navy #0F4C81 + Burnished Gold #B4833E)
   • Stack: html-tailwind compatible utility tokens (Zero-Build PHP Hosting Ready)
   • UX: Animation & WCAG 2.1 AA/AAA Accessibility
   ========================================================================== */

:root {
  --pub-ivory: #faf9f6;
  --pub-parchment: #f4f2ec;
  --pub-paper: #ffffff;
  --pub-obsidian: #141923;
  --pub-ink: #1c1917;
  --pub-ink-muted: #57534e;
  --pub-ink-subtle: #78716c;
  --pub-service: #0f4c81;
  --pub-service-hover: #0a3760;
  --pub-service-soft: #eef5fb;
  --pub-gold: #b4833e;
  --pub-gold-light: #d4a359;
  --pub-gold-soft: #fbf6ec;
  --pub-border: #e7e5e4;
  --pub-border-strong: #d6d3d1;
  --pub-font-display: 'Cormorant Garamond', 'Newsreader', Georgia, serif;
  --pub-font-serif: 'Newsreader', Georgia, serif;
  --pub-font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --pub-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"],
body.dark-mode,
html.dark {
  --pub-ivory: #0e1117;
  --pub-parchment: #141922;
  --pub-paper: #161b24;
  --pub-obsidian: #f5f4f0;
  --pub-ink: #f5f4f0;
  --pub-ink-muted: #cbd5e1;
  --pub-ink-subtle: #94a3b8;
  --pub-service: #38bdf8;
  --pub-service-hover: #7dd3fc;
  --pub-service-soft: rgba(56, 189, 248, 0.14);
  --pub-gold: #d4a359;
  --pub-gold-soft: rgba(212, 163, 89, 0.14);
  --pub-border: #262e3d;
  --pub-border-strong: #374151;
}

/* ==========================================================================
   1. GLOBAL EDITORIAL LUXURY TYPOGRAPHY & ARCHIVAL PAPER SURFACE
   ========================================================================== */
body {
  background-color: var(--pub-ivory) !important;
  color: var(--pub-ink);
  font-family: var(--pub-font-sans);
  line-height: 1.65;
}

.hero-title,
.section-title,
.reved-hero h1,
.saas-hub-heading,
.pub-editorial-heading {
  font-family: var(--pub-font-display) !important;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.hero-title em {
  font-style: italic;
  color: #e6c281 !important;
  font-weight: 600;
}

/* ==========================================================================
   2. MINIMALIST INSTITUTIONAL HEADER & TOP UTILITY STRIP
   ========================================================================== */
.top-announcement {
  background: #111620 !important;
  border-bottom: 1px solid rgba(212, 163, 89, 0.22) !important;
}

.navbar {
  background: rgba(250, 249, 246, 0.92) !important;
  border-bottom: 1px solid var(--pub-border) !important;
  box-shadow: none !important;
}

.brand-emblem {
  background: #141923 !important;
  border: 1px solid rgba(180, 131, 62, 0.45);
  box-shadow: 0 4px 12px rgba(20, 25, 35, 0.14) !important;
}

.brand-text h1 {
  font-family: var(--pub-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: #141923 !important;
}

/* ==========================================================================
   3. EDITORIAL LUXURY HERO (QUIET AUTHORITY, HIGH CONTRAST)
   ========================================================================== */
.hero-section,
.reved-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(180, 131, 62, 0.14), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(15, 76, 129, 0.22), transparent 48%),
    linear-gradient(155deg, #0d121b 0%, #141b29 58%, #182336 100%) !important;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
}

.hero-legal-badge {
  background: rgba(212, 163, 89, 0.12) !important;
  border: 1px solid rgba(212, 163, 89, 0.36) !important;
  color: #f3e2c1 !important;
  font-weight: 600;
}

/* Minimalist Service Primary & Outline Buttons */
.btn-primary {
  background-color: var(--pub-service);
  border-color: var(--pub-service);
  color: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(15, 76, 129, 0.28);
}

.btn-primary:hover {
  background-color: var(--pub-service-hover);
  border-color: var(--pub-service-hover);
  box-shadow: 0 8px 18px -6px rgba(15, 76, 129, 0.36);
}

/* ==========================================================================
   4. MINIMALIST CARDS, SAAS HUB & EDITORIAL HAIRLINES
   ========================================================================== */
.saas-hub-shell,
.service-card,
.journal-card,
.workflow-card-adaptive,
.oa-shadcn-shell,
.oa-shadcn-card,
.oa-kpi-card,
.oa-article-card,
.reved-search-card,
.reved-candidate-card {
  background: var(--pub-paper) !important;
  border: 1px solid var(--pub-border) !important;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04) !important;
}

.saas-module-card {
  background: var(--pub-ivory) !important;
  border: 1px solid var(--pub-border) !important;
}

.saas-module-card:hover,
.service-card:hover,
.journal-card:hover,
.oa-kpi-card:hover,
.oa-article-card:hover,
.reved-candidate-card:hover {
  background: var(--pub-paper) !important;
  border-color: var(--pub-gold) !important;
  box-shadow: 0 12px 28px -14px rgba(20, 25, 35, 0.14) !important;
  transform: translateY(-2px);
}

.saas-hub-pill {
  background: var(--pub-gold-soft) !important;
  color: #8a5f23 !important;
  border: 1px solid rgba(180, 131, 62, 0.28);
}

.section-alt {
  background: var(--pub-paper) !important;
  border-top: 1px solid var(--pub-border) !important;
  border-bottom: 1px solid var(--pub-border) !important;
}

/* ==========================================================================
   5. LANDING SOCIAL-PROOF & PUBLISHER AUTHORITY SECTION
   ========================================================================== */
.pub-social-proof {
  padding: 3.25rem 0;
  background: var(--pub-parchment);
  border-top: 1px solid var(--pub-border);
  border-bottom: 1px solid var(--pub-border);
}

.pub-proof-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pub-gold);
  margin-bottom: 0.45rem;
}

.pub-kicker::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--pub-gold);
}

.pub-proof-title {
  font-family: var(--pub-font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--pub-ink);
  margin: 0;
  line-height: 1.2;
}

.pub-proof-sub {
  font-size: 0.88rem;
  color: var(--pub-ink-muted);
  max-width: 460px;
  margin: 0;
}

/* Trust Metrics Strip (Minimalist Hairline Grid) */
.pub-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--pub-border);
  border-radius: 14px;
  background: var(--pub-paper);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.pub-trust-cell {
  padding: 1.25rem 1.35rem;
  border-right: 1px solid var(--pub-border);
}

.pub-trust-cell:last-child {
  border-right: none;
}

.pub-trust-num {
  font-family: var(--pub-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pub-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pub-trust-label {
  font-size: 0.78rem;
  color: var(--pub-ink-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Scholarly Testimonials Grid */
.pub-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pub-quote-card {
  background: var(--pub-paper);
  border: 1px solid var(--pub-border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  transition: border-color 220ms var(--pub-ease), transform 220ms var(--pub-ease), box-shadow 220ms var(--pub-ease);
}

.pub-quote-card:hover {
  border-color: var(--pub-gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(20, 25, 35, 0.14);
}

.pub-quote-mark {
  font-family: var(--pub-font-display);
  font-size: 2.6rem;
  line-height: 0.8;
  color: var(--pub-gold);
  opacity: 0.75;
}

.pub-quote-text {
  font-family: var(--pub-font-serif);
  font-size: 0.96rem;
  color: var(--pub-ink);
  line-height: 1.65;
  margin: 0.45rem 0 0;
}

.pub-quote-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pub-border);
}

.pub-author-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--pub-ink);
}

.pub-author-role {
  font-size: 0.74rem;
  color: var(--pub-ink-subtle);
}

.pub-verified-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--pub-gold-soft);
  color: #8a5f23;
  border: 1px solid rgba(180, 131, 62, 0.25);
  white-space: nowrap;
}

/* ==========================================================================
   6. PUBLISHER HOUSE MINIMALIST LUXURY FOR ADMIN & MITRA PORTALS
   ========================================================================== */
body.admin-feed-ui {
  background: var(--pub-ivory) !important;
}

body.admin-feed-ui .admin-topbar {
  background: rgba(250, 249, 246, 0.92) !important;
  border-bottom: 1px solid var(--pub-border) !important;
}

[data-theme="dark"] body.admin-feed-ui .admin-topbar,
body.dark-mode.admin-feed-ui .admin-topbar {
  background: rgba(14, 17, 23, 0.92) !important;
}

body.admin-feed-ui #currentTabTitle {
  font-family: var(--pub-font-display) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

body.admin-feed-ui .feed-card,
body.admin-feed-ui .feed-toolbar-card,
body.admin-feed-ui .rail-card:not(.rail-card-hero),
body.admin-feed-ui .admin-card-box,
body.admin-feed-ui .admin-table tbody tr {
  background: var(--pub-paper);
  border-color: var(--pub-border);
}

body.admin-feed-ui .rail-card-hero {
  background: linear-gradient(150deg, #0d121b 0%, #141c2b 62%, #1d2b40 100%) !important;
  border: 1px solid rgba(212, 163, 89, 0.28) !important;
}

body.admin-feed-ui .feed-chip.active {
  background: #141923 !important;
  border-color: #141923 !important;
  color: #faf9f6 !important;
}

/* Editorial Footer Minimalism */
.site-footer {
  background: #111620 !important;
  border-top: 1px solid rgba(212, 163, 89, 0.24);
}

/* ==========================================================================
   7. RESPONSIVE MULTI-DEVICE BREAKPOINTS FOR V21
   ========================================================================== */
@media (max-width: 960px) {
  .pub-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pub-trust-cell {
    border-bottom: 1px solid var(--pub-border);
  }
  .pub-trust-cell:nth-child(2n) {
    border-right: none;
  }
  .pub-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pub-trust-bar {
    grid-template-columns: 1fr;
  }
  .pub-trust-cell {
    border-right: none;
  }
  .pub-trust-cell:last-child {
    border-bottom: none;
  }
}
