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

body {
  background-color: #faf9f7;
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="1"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 0;
}

/* === Navbar === */
.academic-navbar {
  background: #ffffff;
  border-bottom: 2px solid #2c3e50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 1rem 0;
  font-family: 'Inter', sans-serif;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #2c3e50 !important;
  letter-spacing: -0.5px;
}

.navbar-brand i {
  color: #c0392b;
  font-size: 1.4rem;
  margin-right: 8px;
}

.nav-link {
  color: #34495e !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0.25rem;
  transition: all 0.2s ease;
}

.nav-link:hover { color: #c0392b !important; background: #f8f9fa; }

.btn-nav-login {
  background: #2c3e50 !important;
  color: #ffffff !important;
  padding: 0.4rem 1.2rem !important;
  font-weight: 600;
  letter-spacing: 1px;
  border: 2px solid #2c3e50;
  transition: all 0.2s ease;
}

.btn-nav-login:hover { background: #c0392b !important; border-color: #c0392b; }

/* === Footer === */
.academic-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  font-family: 'Inter', sans-serif;
}

/* === Breadcrumb === */
.breadcrumb-custom {
  background: transparent;
  padding: 0 0 1.5rem 0;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

.breadcrumb-custom a { color: #7f8c8d; text-decoration: none; }
.breadcrumb-custom a:hover { color: #c0392b; }
.breadcrumb-custom .active { color: #2c3e50; }

/* === Shared Typography === */
.journal-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

/* === Sidebar === */
.academic-sidebar,
.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e0dcd5;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c0392b;
}

/* === Citation & Reference === */
.citation-card {
  font-family: 'Inter', sans-serif;
  border-left: 2px solid #c0392b;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f8f7f5;
}

.citation-card .author {
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.reference-box {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  background: #f8f7f5;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 2px solid #c0392b;
}

/* === Action Buttons === */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-btn {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #e0dcd5;
  color: #2c3e50;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.action-btn:hover { background: #c0392b; border-color: #c0392b; color: #ffffff; }

/* === PWA Install Button === */
.install-btn {
  position: fixed;
  bottom: 30px; right: 30px;
  background: #2c3e50;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 1000;
  display: none;
  transition: all 0.2s ease;
}

.install-btn:hover { background: #c0392b; }

/* === Responsive === */
.navbar-toggler { border: 1px solid #2c3e50; padding: 0.4rem 0.6rem; }
.navbar-toggler .fas { color: #2c3e50; font-size: 1.2rem; }
.navbar-toggler-icon { display: none; }

@media (max-width: 991px) {
  .btn-nav-login { display: inline-block; margin-top: 0.5rem; }
}

@media (max-width: 768px) {
  .academic-footer { padding: 2rem 0 1.5rem; }
  .academic-footer p { word-break: break-word; overflow-wrap: break-word; }
  .sidebar-title { font-size: 1.1rem; }
  .action-buttons { flex-wrap: wrap; }
  .action-btn { font-size: 0.75rem; padding: 0.4rem; }
  .install-btn { bottom: 15px; right: 15px; padding: 10px 16px; font-size: 0.8rem; }
  .citation-card { padding: 0.75rem 1rem; }
  .reference-box { font-size: 0.8rem; padding: 0.75rem; }
}

/* === Highlight Box === */
.highlight-box {
  background: #f8f7f5;
  border-left: 3px solid #c0392b;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}
