/* ======================================
   Faith Frontier – Components & Pages
   (theme.css handles base + header/footer)
====================================== */

/* Homepage vintage enhancements */
.vintage-card {
  transition: all 0.3s ease;
}

.vintage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.25) !important;
  border-color: var(--ff-cream) !important;
}

/* Breadcrumbs */

.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  color: var(--ff-sepia);
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-list li:not(:last-child)::after {
  content: "›";
  color: var(--ff-vintage-gold);
  opacity: 0.5;
}

.breadcrumbs-list a {
  color: var(--ff-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-list a:hover {
  color: var(--ff-vintage-gold);
  text-decoration: none;
}

.breadcrumbs-list [aria-current="page"] {
  color: var(--ff-muted);
  font-weight: 600;
}

/* Main content wrapper */

.site-main {
  padding: 2.5rem 0 3rem;
}

/* Generic sections */

.section-intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.section-intro .lead {
  margin-top: 0.5rem;
  color: var(--ff-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-content {
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

/* Hero (home / page hero) */

.hero--home {
  padding: 5rem 1.25rem 4rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    radial-gradient(ellipse at top, rgba(212, 165, 116, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(15, 118, 110, 0.05) 0%, transparent 60%);
}

.hero--home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ff-vintage-gold) 50%, transparent);
  opacity: 0.3;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--ff-vintage-gold);
  margin: 0 0 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ff-cream) 0%, var(--ff-vintage-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(212, 165, 116, 0.3);
}

.hero-lead {
  max-width: 48rem;
  margin: 0 0 2.5rem;
  color: var(--ff-ink);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.75;
  font-family: 'Crimson Text', serif;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero--home {
    padding: 6rem 1.25rem 5rem;
  }
}

/* Buttons */

.btn,
.btn-ghost {
  border-radius: 6px;
  padding: 0.65rem 1.75rem;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before,
.btn-ghost::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before,
.btn-ghost:hover::before {
  width: 300px;
  height: 300px;
}

.btn {
  background: linear-gradient(135deg, var(--ff-primary) 0%, #0d6860 100%);
  color: var(--ff-cream);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.btn-ghost {
  border-color: var(--ff-vintage-gold);
  color: var(--ff-vintage-gold);
  background: transparent;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.4);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--ff-cream);
  color: var(--ff-cream);
  background: rgba(212, 165, 116, 0.1);
}

/* Case pages */

.case-record {
  max-width: 60rem;
  margin: 0 auto;
}

.case-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.3);
}

.case-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--ff-vintage-gold);
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.case-title {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ff-cream);
}

.case-subtitle {
  margin: 0 0 1.5rem;
  color: var(--ff-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem 1.5rem;
  padding: 1rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.case-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ff-vintage-gold);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.25rem;
}

.case-meta dd {
  margin: 0;
  color: var(--ff-ink);
  font-size: 0.95rem;
}

.case-files {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.case-files h2 {
  color: var(--ff-vintage-gold);
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.case-files ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-files li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.case-files li:last-child {
  border-bottom: none;
}

.case-files li + li {
  margin-top: 0;
}

.case-files a {
  color: var(--ff-emerald);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.case-files a:hover {
  color: var(--ff-accent);
  text-decoration: underline;
}

.case-doc-note {
  color: var(--ff-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.case-body {
  margin-bottom: 3rem;
  line-height: 1.8;
}

.case-body h2 {
  color: var(--ff-vintage-gold);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  border-bottom: 2px solid rgba(212, 165, 116, 0.3);
  padding-bottom: 0.5rem;
}

.case-body h3 {
  color: var(--ff-cream);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.case-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.case-body ul,
.case-body ol {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.case-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.case-body table th,
.case-body table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.case-body table th {
  background: rgba(15, 23, 42, 0.5);
  font-weight: 600;
  color: var(--ff-accent);
}

.case-body table td {
  background: rgba(15, 23, 42, 0.3);
}

/* Docket section */

.docket {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.docket h2 {
  color: var(--ff-vintage-gold);
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.docket-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docket-list li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.3);
  border-left: 3px solid var(--ff-emerald);
  border-radius: 4px;
}

.docket-list time {
  color: var(--ff-vintage-gold);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', monospace;
}

.docket-list strong {
  color: var(--ff-ink);
  margin: 0 0.5rem;
}

.docket-list a {
  color: var(--ff-emerald);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.docket-list a:hover {
  color: var(--ff-accent);
  text-decoration: underline;
}

.docket-list .notes {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ff-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Case related matters */

.case-related {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.case-related h2 {
  color: var(--ff-vintage-gold);
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.case-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-related li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ff-ink);
}

.case-related li:last-child {
  border-bottom: none;
}

.case-hero {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.case-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ff-muted);
  margin: 0 0 0.75rem;
}

.case-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.case-hero-subtitle {
  margin: 0 0 1rem;
  color: var(--ff-muted);
  font-size: 1rem;
}

.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.9rem;
}

.case-hero-meta .meta-item strong {
  color: var(--ff-muted);
  font-weight: 600;
}

/* Essay pages */

.essay-record {
  max-width: 60rem;
  margin: 0 auto;
}

.essay-header {
  margin-bottom: 2rem;
}

.essay-date {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--ff-vintage-gold);
  margin: 0 0 0.75rem;
  font-family: 'Inter', sans-serif;
}

.essay-title {
  margin: 0 0 0.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--ff-cream);
}

.essay-subtitle {
  margin: 0 0 1.25rem;
  color: var(--ff-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.essay-body {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.essay-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.essay-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.essay-body p {
  margin-bottom: 1rem;
}

.post-categories {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-badge {
  background: rgba(212, 165, 116, 0.2);
  color: var(--ff-vintage-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.essay-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.essay-tags h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ff-muted);
  margin: 0 0 0.75rem;
}

.essay-tags ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.essay-tags li {
  background: rgba(148, 163, 184, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ff-ink);
}

/* Index / listing cards */

.cases-list,
.essays-list,
.case-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
}

.case-card,
.essay-card {
  padding: 1.25rem 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  background: rgba(15, 23, 42, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

.case-card::before,
.essay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--ff-vintage-gold), var(--ff-primary));
  transition: height 0.3s ease;
  border-radius: 8px 0 0 8px;
}

.case-card:hover,
.essay-card:hover {
  border-color: var(--ff-vintage-gold);
  background: rgba(15, 23, 42, 0.8);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.15);
}

.case-card:hover::before,
.essay-card:hover::before {
  height: 100%;
}

.case-card header,
.essay-card header {
  margin-bottom: 0.35rem;
}

.case-card h2,
.essay-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
  color: var(--ff-cream);
}

.case-card .text-muted,
.essay-card .text-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ff-muted);
}

.case-card p,
.essay-card p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

/* Utility */

.text-muted {
  color: var(--ff-muted);
}

/* Vintage decorative elements */
.vintage-divider {
  margin: 3rem auto;
  text-align: center;
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ff-vintage-gold) 50%, transparent);
  max-width: 200px;
}

.vintage-divider::before,
.vintage-divider::after {
  content: '❖';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ff-vintage-gold);
  font-size: 0.7rem;
  opacity: 0.6;
}

.vintage-divider::before {
  left: -20px;
}

.vintage-divider::after {
  right: -20px;
}

/* Enhanced section styling with vintage borders */
.section-intro,
.section-content {
  padding: 0 1.25rem;
}

.section-intro h2,
.section-content h2 {
  position: relative;
  padding-bottom: 0.75rem;
}

.section-intro h2::after,
.section-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--ff-vintage-gold), transparent);
}

@media (min-width: 768px) {
  .section-intro,
  .section-content {
    padding-inline: 0;
  }
}

/* Case List Index Styling */

.cases-index {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cases-index h1 {
  margin-bottom: 1rem;
}

.cases-index .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ff-muted);
  margin-bottom: 2rem;
}

/* Case Filter Form */

#case-filter {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

#case-filter input[type="search"],
#case-filter select {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: var(--ff-ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#case-filter input[type="search"] {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

#case-filter input[type="search"]:focus,
#case-filter select:focus {
  outline: none;
  border-color: var(--ff-emerald);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

#case-filter select {
  min-width: 150px;
}

/* Case List */

#case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-item {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-left: 3px solid rgba(148, 163, 184, 0.4);
  transition: all 0.2s ease;
  position: relative;
}

/* Alternating shadow pattern */
.case-item:nth-child(odd) {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: rgba(15, 23, 42, 0.4);
  border-left-color: var(--ff-emerald);
}

.case-item:nth-child(even) {
  box-shadow: none;
  background: rgba(15, 23, 42, 0.25);
  border-left-color: var(--ff-secondary);
}

.case-item:hover {
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.case-item:hover:nth-child(even) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.case-item a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ff-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.case-item a:hover {
  color: var(--ff-accent);
  text-decoration: underline;
}

.case-item .meta {
  margin-top: 0.5rem;
  color: var(--ff-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #case-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  #case-filter input[type="search"],
  #case-filter select {
    max-width: 100%;
  }
  
  .case-item {
    padding: 1rem 1.25rem;
  }
}

/* Import case analysis styles */
@import url('case-analysis.css');

