/* ==========================================================================
   AccelerWeb OJS Theme Replica Stylesheet for Rumah Jurnal
   Inspired by https://e-journal.metrouniv.ac.id/index/en
   ========================================================================== */

:root {
  --primary-brand: #0284c7;
  --primary-brand-dark: #0369a1;
  --neutral-dark: #0f172a;
  --neutral-content: #f8fafc;
  --base-100: #ffffff;
  --base-200: #f1f5f9;
  --base-300: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-serif);
  color: var(--text-main);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* ================= 1. FLOATING STICKY NAVBAR ================= */
.metro-navbar-wrap {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.metro-navbar-wrap.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.metro-navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metro-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}
.metro-brand-logo {
  height: 44px;
  width: 44px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.metro-brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.metro-brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metro-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.metro-nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.metro-nav-links a:hover,
.metro-nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.metro-nav-btn {
  background: #ffffff;
  color: #0f172a !important;
  font-weight: 700;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.metro-nav-btn:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1px);
}

/* ================= 2. HERO SECTION LIKE METROUNIV ================= */
.metro-hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.88) 100%),
              url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 4.5rem;
  overflow: hidden;
}
.metro-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(2, 132, 199, 0.35) 0%, transparent 60%);
  pointer-events: none;
}
.metro-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.metro-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}
.metro-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 680px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}
.metro-search-box {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50px;
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  max-width: 650px;
}
.metro-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.98rem;
  color: #0f172a;
}
.metro-search-box .btn-search {
  background: #0284c7;
  color: white;
  border: none;
  font-weight: 700;
  border-radius: 50px;
  padding: 10px 24px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.metro-search-box .btn-search:hover {
  background: #0369a1;
}

/* ================= 3. THREE ANALYTICS DASHBOARD WIDGETS ================= */
.metro-widgets-section {
  position: relative;
  z-index: 20;
  margin-top: -3.5rem;
  margin-bottom: 3.5rem;
}
.metro-widget-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.metro-widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.metro-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}
.metro-widget-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0;
}

/* Tabs mini in Top 5 Widget */
.metro-tabs-mini {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 30px;
  gap: 2px;
}
.metro-tabs-mini button {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.metro-tabs-mini button.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Top 5 list items */
.metro-top5-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.metro-top5-item:last-child {
  border-bottom: none;
}
.metro-rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metro-top5-item:nth-child(1) .metro-rank-badge { background: #fef3c7; color: #b45309; }
.metro-top5-item:nth-child(2) .metro-rank-badge { background: #e0e7ff; color: #4338ca; }
.metro-top5-item:nth-child(3) .metro-rank-badge { background: #ecfdf5; color: #047857; }

/* Donut Chart Widget (Tingkat Akreditasi) */
.metrouniv-accreditation-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}
.metrouniv-accreditation-donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.metrouniv-accreditation-donut-center {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.metrouniv-accreditation-total {
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  color: #0f172a;
}
.metrouniv-accreditation-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

/* Donut legend pills */
.metro-donut-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 1rem;
}
.metro-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #334155;
  font-weight: 600;
}
.metro-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* OpenAlex Top 10 Citedness Row */
.metrouniv-openalex-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f8fafc;
}
.metrouniv-openalex-rank {
  font-weight: 800;
  font-size: 0.75rem;
  color: #64748b;
  width: 18px;
  text-align: center;
}
.metrouniv-openalex-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metrouniv-openalex-bar-wrap {
  width: 70px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}
.metrouniv-openalex-bar {
  height: 100%;
  background: #0284c7;
  border-radius: 10px;
}
.metrouniv-openalex-score {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  min-width: 32px;
  text-align: right;
}

/* ================= 4. JOURNAL DIRECTORY CARDS (E-JOURNAL.METROUNIV STYLE) ================= */
.metro-journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.metro-journal-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.metro-journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.metro-journal-figure {
  background: #f8fafc;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}
.metro-journal-figure img {
  max-height: 175px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
  transition: transform 0.3s ease;
}
.metro-journal-card:hover .metro-journal-figure img {
  transform: scale(1.06);
}
.metro-journal-figure .journal-fallback {
  width: 110px;
  height: 155px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 6px;
  border-left: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  padding: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.metro-journal-body {
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}
.metro-journal-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}
.metro-journal-title:hover {
  color: #0284c7;
}

/* Badges (SINTA, SCOPUS, DOAJ) exactly like metrouniv */
.metrouniv-journal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 0.65rem;
}
.metrouniv-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}
.metrouniv-badge-sinta {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.metrouniv-badge-sinta.s1 { background: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.metrouniv-badge-sinta.s2 { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.metrouniv-badge-sinta.s3 { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.metrouniv-badge-sinta.s4 { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.metrouniv-badge-sinta.s5 { background: #cffafe; color: #155e75; border-color: #a5f3fc; }
.metrouniv-badge-sinta.s6 { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.metrouniv-badge-scopus {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 800;
}
.metrouniv-badge-doaj {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.metro-journal-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.metro-journal-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.metro-btn-view {
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 8px 18px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  border: 1px solid transparent;
}
.metro-btn-view:hover {
  background: #0369a1;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* ================= 5. FOOTER LIKE METROUNIV ================= */
.metro-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.metro-footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.metro-footer-brand-logo {
  height: 40px;
  width: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  font-size: 1.25rem;
}
.metro-footer-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.metro-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.metro-footer a:hover {
  color: #38bdf8;
}
.metro-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

/* ================= 6. OJS CURRENT ISSUE & ARTICLE CARDS (User Image Replica) ================= */
.ojs-current-issue-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.ojs-issue-title-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.ojs-issue-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 1.25rem;
}
.ojs-issue-cover-img {
  width: 140px;
  height: 195px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.ojs-issue-meta-list {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.6;
}
.ojs-issue-meta-list strong {
  color: #0f172a;
  font-weight: 700;
}
.ojs-issue-meta-list a {
  color: #b45309;
  text-decoration: underline;
}

/* Articles Section Heading */
.ojs-articles-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ojs-articles-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

/* OJS Article Cards (Yellow Header Outline, Blue Author Tag, Green PDF Badge) */
.ojs-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.ojs-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.ojs-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.ojs-article-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: #d97706; /* Vibrant warm orange/amber title exactly as in user image */
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.ojs-article-title:hover {
  color: #b45309;
  text-decoration: underline;
}
.ojs-author-badge {
  display: inline-block;
  background-color: #0284c7; /* Blue highlighted author badge */
  color: #ffffff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 6px;
}
.ojs-author-text {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
}
.ojs-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #15803d; /* Dark green PDF button */
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(21, 128, 61, 0.25);
}
.ojs-pdf-btn:hover {
  background-color: #166534;
  color: #ffffff;
  transform: scale(1.03);
}
.ojs-pages-text {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
