@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --plum:        #3C3489;
  --plum-dark:   #26215C;
  --plum-mid:    #534AB7;
  --plum-light:  #AFA9EC;
  --plum-pale:   #EEEDFE;
  --plum-soft:   #CECBF6;
  --gold:        #BA7517;
  --gold-light:  #FAC775;
  --gold-pale:   #FAEEDA;
  --text:        #1a1830;
  --text-mid:    #3d3a6a;
  --text-muted:  #6b6899;
  --border:      #d5d0f0;
  --surface:     #f7f6fb;
}

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ── Layout Wrapper ─────────────────────────────────────────── */
.journal-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

/* ══════════════════════════════════════════════════════════════
   MASTHEAD
══════════════════════════════════════════════════════════════ */
.masthead {
  background: var(--plum-dark);
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255, 255, 255, 0.03) 60px,
    rgba(255, 255, 255, 0.03) 61px
  );
  pointer-events: none;
}

/* Top strip */
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.masthead-meta {
  font-size: 11px;
  color: var(--plum-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.masthead-issn {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* Center hero */
.masthead-center {
  padding: 2.5rem 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.journal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.journal-title-main {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.journal-title-main em {
  font-style: italic;
  color: var(--plum-soft);
}

.journal-subtitle {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--plum-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.gold-rule {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto;
}

/* Stats row */
.masthead-bottom {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem 2.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.masthead-stat { text-align: center; }

.masthead-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
}

.masthead-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-light);
  margin-top: 2px;
}

.masthead-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION STRIP
══════════════════════════════════════════════════════════════ */
.nav-strip {
  background: var(--plum-mid);
  padding: 0 2.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-tab {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  background: none;
  transition: color 0.15s, border-color 0.15s;
}

.nav-tab:hover,
.nav-tab.active {
  color: #fff;
  border-bottom-color: var(--gold-light);
}

/* ══════════════════════════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════════════════════════ */
.content-area {
  padding: 2.5rem 2.5rem 0;
}

/* Tab panes */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Featured label ─────────────────────────────────────────── */
.featured-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

/* ── Featured Article Card ──────────────────────────────────── */
.featured-article {
  background: #fff;
  border: 0.5px solid var(--border);
  border-left: 4px solid var(--plum);
  border-radius: 0 8px 8px 0;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.featured-article .art-category {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-mid);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.featured-article .art-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum-dark);
  margin-bottom: 0.75rem;
}

.featured-article .art-authors {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.featured-article .art-abstract {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.75;
  color: #3d3a5e;
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
}

/* Keywords */
.art-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.art-kw {
  background: var(--plum-pale);
  color: var(--plum-mid);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
}

/* Footer row */
.art-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}

.art-pages {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Buttons ────────────────────────────────────────────────── */
.read-btn {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--plum);
  border: 0.5px solid var(--plum-light);
  background: none;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.read-btn:hover {
  background: var(--plum);
  color: #fff;
}

/* ── Section Divider ────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 1.25rem;
}

.section-head-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.section-head-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE GRID CARDS
══════════════════════════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.article-card:hover {
  border-color: var(--plum-light);
  transform: translateY(-2px);
}

.card-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--plum-pale);
  line-height: 1;
  margin-bottom: 0.5rem;
  user-select: none;
}

.card-category {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--plum-dark);
  margin-bottom: 0.5rem;
}

.card-authors {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Lora', serif;
  margin-bottom: 0.75rem;
}

.card-abstract {
  font-size: 12.5px;
  color: #4a4870;
  line-height: 1.65;
  font-family: 'Lora', serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
}

.card-pages {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS TAB
══════════════════════════════════════════════════════════════ */
.toc-section {
  background: var(--plum-pale);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 0.25rem;
}

.toc-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--plum-dark);
  margin-bottom: 1rem;
}

.toc-list { list-style: none; }

.toc-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid var(--border);
}

.toc-item:last-child { border-bottom: none; }

.toc-pg {
  font-size: 12px;
  font-weight: 500;
  color: var(--plum-mid);
  min-width: 30px;
  font-family: 'DM Sans', sans-serif;
  padding-top: 2px;
}

.toc-txt {
  font-size: 13px;
  color: var(--text-mid);
  font-family: 'Lora', serif;
  line-height: 1.4;
}

.toc-txt strong {
  font-weight: 500;
  color: var(--plum-dark);
  display: block;
  font-style: normal;
  margin-bottom: 2px;
}

.toc-txt span {
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT TAB
══════════════════════════════════════════════════════════════ */
.about-banner {
  margin-top: 0.25rem;
  background: var(--plum-dark);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}

.about-body {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.8;
  max-width: 700px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.about-stat-box {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.about-stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-light);
  margin-bottom: 0.4rem;
  font-family: 'DM Sans', sans-serif;
}

.about-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--gold-light);
  font-weight: 600;
}

.about-stat-text {
  font-size: 13px;
  color: #fff;
  line-height: 1.4;
}

.about-stat-sub {
  font-size: 11px;
  color: var(--plum-light);
  margin-top: 4px;
}

.about-stat-link {
  font-size: 13px;
  color: var(--gold-light);
  text-decoration: none;
}

.about-stat-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   SUBMIT TAB
══════════════════════════════════════════════════════════════ */
.submit-panel {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 0.25rem;
}

.submit-heading {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--plum-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.submit-rules { display: grid; gap: 1rem; }

.submit-rule {
  border-left: 3px solid var(--plum);
  padding-left: 1rem;
}

.submit-rule-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-family: 'DM Sans', sans-serif;
}

.submit-rule-text {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

.submit-rule-text a {
  color: var(--plum);
  text-decoration: none;
}

.submit-rule-text a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   ABSTRACT MODAL
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 48, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close:hover { color: var(--plum); }

.modal-category {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-mid);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.modal-authors {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
}

.modal-abstract {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.8;
  color: #3d3a5e;
}

.modal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.modal-pages {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1rem;
  font-family: 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .journal-title-main { font-size: 30px; }
  .masthead-top { flex-direction: column; gap: 4px; text-align: center; }
  .masthead-bottom { gap: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .content-area { padding: 1.5rem 1.25rem 0; }
  .nav-strip { padding: 0 0.5rem; }
}
