/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */
/* Custom Styles for Portal de Títulos Marianos & Biblioteconomia UFRJ */

:root {
  --primary-color: #0d3b66;
  --primary-dark: #05192d;
  --secondary-color: #0077b6;
  --accent-gold: #c99700;
  --accent-gold-light: #fef8e7;
  --marian-blue: #023e8a;
  --marian-light: #e8f4f8;
  --bg-subtle: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-subtle: #e9ecef;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Header & Navbar */
.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar {
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0d3b66 0%, #004b75 50%, #023e8a 100%);
  color: #ffffff;
  padding: 5rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 151, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

/* Author Profile Section */
.author-avatar {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(13, 59, 102, 0.2);
}

.stat-card {
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-subtle);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* Category Filter Pills */
.category-pill {
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.85rem;
}

.category-pill:hover,
.category-pill.active-filter {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.alphabet-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* Term Cards */
.term-card {
  border-radius: 12px;
  background-color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eef2f5 !important;
}

.term-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(13, 59, 102, 0.1) !important;
  border-color: #b8d5e5 !important;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section Headings */
.section-title {
  position: relative;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-divider {
  width: 50px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Academic Callout / Ficha Catalográfica */
.catalog-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Method Steps */
.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

/* Gallery & Thesa Preview */
.gallery-img-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-img-card:hover {
  transform: scale(1.02);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #adb5bd;
}

footer a {
  color: #e9ecef;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-gold);
}

/* Animations & Transitions */
.transition-all {
  transition: all 0.25s ease-in-out;
}
