/* ══════════════════════════════════════════════
   LDRC Components CSS — Navbar, Footer, Cards
══════════════════════════════════════════════ */

/* ── Navbar ── */
#ldrc-navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
}
.ldrc-navbar {
  background: #0A1221;
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ldrc-navbar .navbar-brand {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.ldrc-navbar .nav-link {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 12px 20px !important;
  position: relative;
}
.ldrc-navbar .nav-link:hover {
  color: var(--text-primary);
}
.ldrc-navbar .nav-link.active {
  color: var(--gold);
  font-weight: 600;
}
.ldrc-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.ldrc-navbar .navbar-toggler {
  border-color: rgba(228,210,167,0.3);
  padding: 6px 10px;
}
.ldrc-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(228,210,167,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .ldrc-navbar .navbar-collapse {
    background: #0A1221;
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
    margin-top: 8px;
  }
  .ldrc-navbar .nav-link.active::after {
    display: none;
  }
}

/* ── Footer ── */
.ldrc-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
  padding-bottom: 32px;
}
.ldrc-footer h5 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}
.ldrc-footer a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 3px 0;
}
.ldrc-footer a:hover {
  color: var(--gold);
}
.ldrc-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 40px;
}
.ldrc-footer .footer-bottom p,
.ldrc-footer .footer-bottom a {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Logo icon ── */
.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ── Page Hero ── */
.page-hero {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.breadcrumb-custom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
}
.breadcrumb-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb-custom a:hover { color: var(--gold); }
.breadcrumb-custom .sep { color: var(--gold); opacity: 0.5; }
.breadcrumb-custom .current { color: var(--gold); }
.page-hero .breadcrumb-custom {
  justify-content: center;
  margin-bottom: 16px;
}
.page-hero .hero-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 62px);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 600;
}
.page-hero .hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.75;
}

/* ── Research Card ── */
.research-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.research-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,169,97,0.12);
  transform: translateY(-4px);
}
.research-card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.research-card .card-body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.research-card .card-tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.research-card .card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.research-card:hover .card-title { color: var(--gold-light); }
.research-card .card-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Publication Card ── */
.pub-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--card-padding);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pub-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Blog Card ── */
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,169,97,0.12);
  transform: translateY(-4px);
}
.blog-card .blog-img {
  height: 190px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img { transform: scale(1.06); }

/* ── Stats bar ── */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-bar .stat-item {
  text-align: center;
  padding: 32px 40px;
}
.stats-bar .stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
}
.stats-bar .stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  align-self: center;
}

/* ── Subscribe section ── */
.subscribe-section {
  background: var(--color-bg);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}
.subscribe-section input[type="email"] {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  outline: none;
  padding: 10px 4px;
  width: 280px;
  transition: border-color 0.3s ease;
}
.subscribe-section input[type="email"]:focus {
  border-bottom-color: var(--gold);
}

/* ── Pagination ── */
.ldrc-pagination .page-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.3);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ldrc-pagination .page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.ldrc-pagination .page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--color-bg);
  font-weight: 700;
}

/* ── Podcast row ── */
.podcast-row {
  border-left: 3px solid transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}
.podcast-row:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,169,97,0.12);
}
.podcast-row:nth-child(even) { background: var(--color-surface-2); }
.podcast-row:nth-child(odd) { background: var(--color-surface); }

/* ── Tab navigation ── */
.ldrc-tabs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 73px;
  z-index: 40;
}
.ldrc-tabs .tab-btn {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 28px;
  position: relative;
  transition: color 0.25s ease;
  text-transform: uppercase;
}
.ldrc-tabs .tab-btn:hover { color: var(--text-primary); }
.ldrc-tabs .tab-btn.active {
  color: var(--gold);
  font-weight: 600;
}
.ldrc-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
}

/* ── Sticky filter bar ── */
.filter-bar {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

/* ── Detail page hero ── */
.detail-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 100px 0 60px;
}

/* ── Related cards grid ── */
.related-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
  display: block;
}
.related-card:hover {
  border-left-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,169,97,0.12);
}

/* ── Author avatar ── */
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface), #1a2c50);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--gold);
}

/* ── Excerpt block ── */
.article-excerpt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-ldrc-primary {
  background: var(--btn-gradient);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 30px;
  padding: 10px 24px;
  border: 1px solid rgba(228,210,167,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ldrc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
  color: var(--color-bg);
}

.btn-ldrc-outline {
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-ldrc-outline:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-gold-gradient {
  background: var(--btn-gradient);
  color: var(--color-bg);
  border: none;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-gold-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-gold-outline:hover {
  background: rgba(201,168,76,0.1);
}
