/* =============================================
   Scholarly Journal — Main Stylesheet
   White Editorial Theme
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --white:       #FFFFFF;
  --off-white:   #F9F7F4;
  --light-gray:  #F2EFE9;
  --border:      #E5DFD6;
  --border-dark: #C8BFB0;

  --text-primary:   #1A1814;
  --text-secondary: #4A4540;
  --text-muted:     #8A837A;

  --navy:       #1B2A4A;
  --navy-light: #263D6B;
  --navy-pale:  #EBF0F8;
  --gold:       #C9A84C;
  --gold-light: #F0D98C;
  --gold-pale:  #FDF8ED;

  --success:  #1E6B45;
  --success-bg:#EBF7F1;
  --danger:    #B91C1C;
  --danger-bg: #FEF2F2;
  --warning:   #B45309;
  --warning-bg:#FFFBEB;
  --info:      #1D4ED8;
  --info-bg:   #EFF6FF;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', Courier, monospace;

  --shadow-sm: 0 1px 3px rgba(27,42,74,.06);
  --shadow-md: 0 4px 16px rgba(27,42,74,.08);
  --shadow-lg: 0 8px 32px rgba(27,42,74,.12);
  --shadow-xl: 0 20px 60px rgba(27,42,74,.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --nav-h: 72px;
  --top-h: 36px;
  --transition: all .28s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  padding-top: calc(var(--top-h) + var(--nav-h));
}

body.no-topbar { padding-top: var(--nav-h); }
body.admin-body { padding-top: 0; background: var(--off-white); }

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
button { cursor: pointer; font-family: inherit; }

::selection { background: var(--gold-light); color: var(--text-primary); }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top Bar ---------- */
.topbar {
  height: var(--top-h);
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  letter-spacing: .04em;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: rgba(255,255,255,.8); font-size: .75rem; }
.topbar-links a:hover { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: var(--top-h);
  left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  flex-shrink: 0;
}
.site-logo:hover { color: var(--navy); }
.logo-icon {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.logo-text small  { display: block; font-size: .68rem; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.search-icon { font-size: 1.1rem; padding: 8px 10px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .875rem;
  color: var(--text-secondary);
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--navy); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin: 12px auto;
  font-size: .9rem;
  animation: slideDown .3s ease;
}
.alert-success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-left: 4px solid var(--danger);  }
.alert-info    { background: var(--info-bg);     color: var(--info);    border-left: 4px solid var(--info);    }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); border-color: var(--navy-light); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: #B8963C; color: var(--white); border-color: #B8963C; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--off-white); color: var(--navy); }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #991B1B; color: white; }

.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-orange { background: #FFEDD5; color: #C2410C; }
.badge-yellow { background: #FEF9C3; color: #A16207; }
.badge-green  { background: var(--success-bg); color: var(--success); }
.badge-red    { background: var(--danger-bg); color: var(--danger); }
.badge-navy   { background: var(--navy-pale); color: var(--navy); }
.badge-gray   { background: var(--light-gray); color: var(--text-secondary); }
.badge-gold   { background: var(--gold-pale); color: #92700A; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .03em;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,.08);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { 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='%234A4540' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--off-white); }

/* ---------- Article Card ---------- */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .3s, transform .3s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--gold); }
.article-card-authors { font-size: .875rem; color: var(--text-muted); margin-bottom: 10px; }
.article-card-abstract { font-size: .9rem; color: var(--text-secondary); line-height: 1.65; }
.article-card-abstract.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-stats { display: flex; gap: 16px; }
.article-stat { font-size: .8rem; color: var(--text-muted); }

/* ---------- Section Styles ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: white; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: white; }

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-divider {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px 0 24px;
}
.section-divider.centered { margin: 16px auto 24px; }

/* ---------- Grid Layouts ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-articles { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2A4A7A 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: white; font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-search { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 24px 28px; margin-top: 40px; }
.hero-search-form { display: flex; gap: 0; }
.hero-search-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: rgba(255,255,255,.95);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}
.hero-search-input:focus { outline: none; border-color: var(--gold); }
.hero-search-btn {
  padding: 14px 28px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-search-btn:hover { background: #B8963C; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.hero-stat-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.65); letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Category Cards ---------- */
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c-color, var(--navy));
  border-radius: 4px 0 0 4px;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.category-card p  { font-size: .85rem; color: var(--text-muted); margin: 0; }
.category-count {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--border);
}

/* ---------- Stat Cards ---------- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .875rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Announcement / News ---------- */
.announcement-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.announcement-card:last-child { border-bottom: none; }
.announcement-date { font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.announcement-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.announcement-card p  { font-size: .9rem; color: var(--text-secondary); margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--off-white);
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--off-white); }
.table-striped tbody tr:nth-child(even) td { background: var(--off-white); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 48px; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ---------- Sidebar ---------- */
.layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-widget-header {
  padding: 16px 20px;
  background: var(--navy);
  color: white;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sidebar-widget-body { padding: 20px; }
.sidebar-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text-secondary);
}
.sidebar-link-list a:last-child { border-bottom: none; }
.sidebar-link-list a:hover { color: var(--navy); }
.sidebar-link-list .count { font-size: .75rem; background: var(--navy-pale); color: var(--navy); padding: 2px 8px; border-radius: 100px; }

/* ---------- Steps (submission) ---------- */
.steps { display: flex; gap: 0; margin-bottom: 40px; }
.step {
  flex: 1;
  padding: 16px 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 3px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.step.active { color: var(--navy); border-color: var(--navy); }
.step.done   { color: var(--success); border-color: var(--success); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 900;
  margin-right: 8px;
}
.step.active .step-num { background: var(--navy); color: white; }
.step.done .step-num   { background: var(--success); color: white; }

/* ---------- Tag / Keyword ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tag:hover { background: var(--navy-pale); border-color: var(--navy); color: var(--navy); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Citation Box ---------- */
.citation-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
}
.citation-copy-btn {
  position: absolute;
  top: 12px; right: 12px;
  padding: 6px 12px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.citation-copy-btn:hover { background: var(--navy-light); }
.citation-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.citation-tab {
  padding: 8px 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}
.citation-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Search Page ---------- */
.search-bar { display: flex; gap: 0; margin-bottom: 32px; }
.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-input:focus { outline: none; border-color: var(--navy); }
.search-btn {
  padding: 14px 28px;
  background: var(--navy);
  color: white;
  border: 2px solid var(--navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 700;
  font-size: .9rem;
}
.search-btn:hover { background: var(--navy-light); border-color: var(--navy-light); }

/* ---------- Auth Pages ---------- */
.auth-page { min-height: 80vh; display: flex; align-items: center; padding: 60px 0; }
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.auth-header { background: var(--navy); color: white; padding: 36px 40px; text-align: center; }
.auth-header h2 { color: white; margin-bottom: 6px; }
.auth-header p  { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.auth-logo { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; }
.auth-body { padding: 36px 40px; }
.auth-footer { padding: 20px 40px; border-top: 1px solid var(--border); text-align: center; font-size: .875rem; background: var(--off-white); }

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 64px 0;
}
.page-header h1 { color: white; margin-bottom: 10px; }
.page-header p   { color: rgba(255,255,255,.75); max-width: 600px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

/* ---------- Article Detail ---------- */
.article-detail-header { padding: 60px 0; border-bottom: 1px solid var(--border); }
.article-type-badge { margin-bottom: 16px; }
.article-title { font-size: clamp(1.6rem, 3.5vw, 2.8rem); line-height: 1.2; color: var(--navy); margin-bottom: 20px; }
.article-authors-list { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.author-chip {
  padding: 6px 14px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--text-secondary);
}
.author-chip.corresponding { border-color: var(--gold); color: var(--navy); }
.article-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.meta-item label { font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 4px; }
.meta-item span  { font-size: .95rem; font-weight: 600; color: var(--text-primary); }
.abstract-section { margin-bottom: 32px; }
.abstract-section h2 { font-size: 1.3rem; margin-bottom: 12px; }
.abstract-text { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); text-align: justify; }

/* ---------- Admin Layout ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--navy);
  color: white;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 200;
}
.admin-sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar-logo span { color: var(--gold); font-size: 1.4rem; }
.admin-nav { padding: 16px 0; }
.admin-nav-label {
  padding: 10px 24px 6px;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 400;
  transition: var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.1);
  color: white;
}
.admin-nav-link.active { border-left: 3px solid var(--gold); }
.admin-nav-icon { width: 20px; text-align: center; }
.admin-main { margin-left: 260px; flex: 1; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0; z-index: 100;
}
.admin-topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user-avatar {
  width: 36px; height: 36px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}
.admin-content { padding: 32px; }
.admin-page-header { margin-bottom: 28px; }
.admin-page-header h1 { font-size: 1.6rem; margin-bottom: 4px; }
.admin-page-header p  { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* Stat cards for admin */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.admin-stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; bottom: 0;
  background: var(--c-color, var(--navy));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.admin-stat-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.admin-stat-change { font-size: .8rem; color: var(--success); margin-top: 8px; }

/* ---------- Toast ---------- */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  max-width: 320px;
  animation: toastIn .3s ease;
}
.toast.toast-success { background: var(--success); }
.toast.toast-error   { background: var(--danger); }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(12px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn   { from { opacity: 0; transform: translateX(20px); }  to { opacity: 1; transform: translateX(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-navy    { color: var(--navy); }
.text-gold    { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.d-none { display: none; }
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 8px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- Setup Page ---------- */
.setup-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 40px; }
.setup-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
}
.setup-header { background: var(--gold); padding: 36px 40px; text-align: center; }
.setup-header h1 { color: white; font-size: 1.8rem; margin-bottom: 6px; }
.setup-header p   { color: rgba(255,255,255,.85); margin: 0; }
.setup-body { padding: 36px 40px; }
.setup-warning { background: #FEF9C3; border: 1px solid #FDE047; border-radius: var(--radius-md); padding: 14px 18px; font-size: .875rem; color: #A16207; margin-bottom: 24px; }

/* ---------- Guidelines Page ---------- */
.guidelines-nav { position: sticky; top: calc(var(--top-h) + var(--nav-h) + 20px); }
.guidelines-nav a { display: block; padding: 8px 16px; font-size: .875rem; color: var(--text-secondary); border-left: 2px solid var(--border); transition: var(--transition); }
.guidelines-nav a:hover, .guidelines-nav a.active { color: var(--navy); border-left-color: var(--navy); background: var(--navy-pale); }
.guidelines-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.guidelines-section:last-child { border-bottom: none; }
.guidelines-section h2 { margin-bottom: 16px; }

/* ---------- About Page ---------- */
.editorial-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.board-member {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.board-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.board-member h4 { font-size: 1rem; margin-bottom: 4px; }
.board-member p  { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .footer-logo { font-family: var(--font-heading); font-size: 1.4rem; color: white; font-weight: 700; margin-bottom: 12px; }
.footer-brand p     { font-size: .875rem; line-height: 1.7; margin-bottom: 12px; }
.footer-issn        { font-size: .8rem; font-family: var(--font-mono); color: rgba(255,255,255,.5); }
.footer-col h4      { color: white; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a       { display: block; font-size: .875rem; color: rgba(255,255,255,.65); padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  body { padding-top: calc(var(--top-h) + 64px); }

  .topbar { display: none; }
  body { padding-top: 64px; }
  .site-header { top: 0; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 24px; border-radius: 0; }
  .nav-link.active::after { display: none; }
  .nav-dropdown { position: static; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 16px; background: var(--off-white); }
  .dropdown-menu a { padding: 10px 24px; }
  .nav-toggle { display: flex; }
  .dropdown-trigger { display: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-articles { grid-template-columns: 1fr; }

  .hero { padding: 60px 0 48px; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }

  .form-row { grid-template-columns: 1fr; }

  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .steps { flex-direction: column; }
  .steps .step { border-bottom: none; border-left: 3px solid var(--border); text-align: left; padding: 12px 20px; }
  .steps .step.active { border-left-color: var(--navy); }

  .auth-card { margin: 0 16px; }
  .auth-body { padding: 28px 24px; }
  .auth-header { padding: 28px 24px; }
  .auth-footer { padding: 16px 24px; }

  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
}

@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search-form { flex-direction: column; }
  .hero-search-input { border-right: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius-md); }
  .hero-search-btn { border-radius: var(--radius-md); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .site-footer, .admin-sidebar, .btn, .no-print { display: none !important; }
  body { padding-top: 0; font-size: 12pt; }
  .abstract-text { text-align: justify; }
}
