@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary: #0b3d60;
  --primary-dark: #061a2b;
  --primary-light: #0ea5e9;
  --accent-cyan: #06b6d4;
  --accent-teal: #008080;
  --accent-gold: #d4af37;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --surface-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.25);
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Lora', serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-brand: 'Cinzel', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--surface-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

/* Glassmorphic Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.header-container, .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.journal-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-dark);
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.nav-item a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem;
}
.nav-item a:hover, .nav-item.active a {
  color: var(--primary-light);
}
.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Journal Hero */
.journal-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.journal-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.hero-cover {
  width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.hero-content {
  flex: 1;
}
.acronym-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-meta {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-pill { border-radius: 50px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-emerald { background: var(--accent-emerald); color: #fff; }
.btn-emerald:hover { background: #059669; color: #fff; box-shadow: var(--shadow-md); }

.btn-cyan { background: var(--accent-cyan); color: #fff; }
.btn-cyan:hover { background: #0891b2; color: #fff; box-shadow: var(--shadow-md); }

/* Article Layout */
.article-layout {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-main {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-bg);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.doi-pill, .metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.metric-pill { font-family: var(--font-sans); font-weight: 600; color: var(--primary); }

.tab-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}
.tab-nav button {
  background: none;
  border: none;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-nav button.active, .tab-nav button:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.citation-box {
  background: var(--surface-bg);
  border-left: 4px solid var(--primary-light);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 2rem;
  font-family: var(--font-serif);
}
.reference-item {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  font-size: 0.95rem;
}

/* Article List Cards */
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: block;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.article-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.pdf-btn, .cite-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}
.pdf-btn { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.pdf-btn:hover { background: #fee2e2; }

/* Issue Archive Cards */
.issue-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.issue-cover { width: 120px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.issue-details { flex: 1; }
.toc-accordion {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Editorial Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.avatar-pill {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-bg);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-light);
}
.inst-tag {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--surface-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.orcid-link { color: #a6ce39; font-size: 0.9rem; display: block; margin-top: 0.5rem; }

/* Search Sidebar */
.search-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}
.facet-group { margin-bottom: 1.5rem; }
.facet-title { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Auth Cards */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
}
.floating-label {
  position: relative;
  margin-bottom: 1.5rem;
}
.floating-label input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 1rem;
  background: transparent;
}
.floating-label label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  padding: 0 0.5rem;
  color: var(--text-muted);
  transition: all 0.2s;
  pointer-events: none;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  color: var(--primary);
}
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent-emerald);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* Alerts & Badges */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-published { background: #dcfce7; color: #166534; }
.badge-review { background: #fef3c7; color: #92400e; }
.badge-revision { background: #ffedd5; color: #c2410c; }
.badge-copyedit { background: #e0e7ff; color: #3730a3; }
.badge-decline { background: #fee2e2; color: #991b1b; }

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.alert-error { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }


/* =========================================================
   JournalsHub Portal Styling (Preserved)
   ========================================================= */

.journalshub-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Top Utility Bar */
.jh-topbar {
  background: #091a2b;
  color: #94a3b8;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.jh-topbar-links a {
  color: #cbd5e1;
  margin-left: 16px;
  font-weight: 500;
  transition: color 0.2s;
}
.jh-topbar-links a:hover {
  color: #38bdf8;
  text-decoration: none;
}

/* Main Navigation */
.jh-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.jh-brand {
  text-decoration: none;
}
.jh-logo-icon {
  color: #0b4f8a;
}
.jh-logo-text {
  font-family: 'Cinzel', 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #0b2545;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.jh-logo-sub {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #008080;
  letter-spacing: 1px;
}
.jh-nav-links .nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #334155 !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.2s;
}
.jh-nav-links .nav-link:hover {
  color: #0b4f8a !important;
  background: #f1f5f9;
}
.jh-btn-submit {
  background: linear-gradient(135deg, #0b4f8a 0%, #008080 100%);
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(11, 79, 138, 0.25);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.jh-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 79, 138, 0.35);
  color: #fff;
}

/* Hero Discovery Section */
.jh-hero {
  background: linear-gradient(135deg, #07192f 0%, #0b3d60 50%, #083344 100%);
  padding: 80px 0 90px 0;
  position: relative;
  overflow: hidden;
}
.jh-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.jh-hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.jh-hero-subtitle {
  max-width: 760px;
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.6;
}
.jh-search-wrapper {
  max-width: 780px;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  display: flex;
}
.jh-search-input {
  flex: 1;
  border: none;
  font-size: 16px;
  padding: 12px 18px;
  color: #1e293b;
  border-radius: 10px;
}
.jh-search-input:focus {
  box-shadow: none;
  outline: none;
}
.jh-search-btn {
  background: #0b4f8a;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  transition: background 0.2s;
}
.jh-search-btn:hover {
  background: #073b68;
}
.jh-trending-tags .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  margin: 3px;
  font-weight: 500;
  font-size: 12.5px;
  border-radius: 20px;
  transition: all 0.2s;
}
.jh-trending-tags .badge:hover {
  background: #ffffff !important;
  color: #0b2545 !important;
  transform: translateY(-2px);
}

/* Headings */
.jh-section-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #0b2545;
  letter-spacing: -0.3px;
}

/* Subject Cards */
.jh-subject-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.jh-subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(11, 79, 138, 0.1);
  border-color: #38bdf8;
}
.jh-subject-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0fdf4;
  color: #0b4f8a;
  font-size: 24px;
  transition: all 0.25s;
}
.jh-subject-card:hover .jh-subject-icon {
  background: #0b4f8a;
  color: #ffffff;
}

/* Journal Cards */
.jh-journal-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  background: #ffffff;
}
.jh-journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
  border-color: #93c5fd;
}
.jh-journal-badge {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.jh-journal-title a {
  color: #0b2545;
  font-family: 'Lora', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s;
}
.jh-journal-title a:hover {
  color: #0b4f8a;
  text-decoration: none;
}
.jh-btn-outline {
  background: transparent;
  border: 1px solid #0b4f8a;
  color: #0b4f8a;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.2s;
}
.jh-btn-outline:hover {
  background: #0b4f8a;
  color: #ffffff;
}

/* Article Feed */
.jh-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.2s;
}
.jh-article-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.jh-bg-navy {
  background-color: #0b2545;
  color: #ffffff;
  padding: 20px;
}
.jh-article-title a {
  color: #0f172a;
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}
.jh-article-title a:hover {
  color: #0b4f8a;
  text-decoration: underline;
}
.jh-btn-pdf {
  background: #dc2626;
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 5px 14px;
  border-radius: 5px;
  transition: background 0.2s;
}
.jh-btn-pdf:hover {
  background: #b91c1c;
  color: #ffffff;
}

/* Audience Portals */
.jh-audience-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}
.jh-audience-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* Platform Metrics Bar */
.jh-metrics-bar {
  background: linear-gradient(135deg, #0b2545 0%, #00182b 100%);
  color: #ffffff;
  border-top: 3px solid var(--accent-gold);
  padding: 30px 0;
  text-align: center;
}
.jh-metric-val {
  color: #38bdf8;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

/* Footer */
.jh-footer {
  background: #061423;
  color: #94a3b8;
  font-size: 13.5px;
  padding: 40px 0;
}
.jh-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.jh-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.hover-white:hover {
  color: #ffffff !important;
}
