:root {
  --bg-default: #2b2b2b;
  --bg-surface: #313335;
  --bg-card: #3c3f41;
  --border-color: rgba(255, 255, 255, 0.12);
  --text-primary: #a9b7c6;
  --text-muted: #80868f;
  --accent: #6897bb;
  --accent-strong: #cc7832;
  --accent-bg: rgba(104, 151, 187, 0.2);
  --accent-secondary: #9876aa;
  --accent-secondary-bg: rgba(152, 118, 170, 0.2);
  --highlight: #6a8759;
  --card-gradient: linear-gradient(135deg, #cc7832, #9876aa, #6897bb);
}

body,
.bg-light,
.bg-white {
  background: var(--bg-default) !important;
  color: var(--text-primary);
}

a {
  color: var(--accent-strong);
}

a:hover,
a:focus-visible {
  color: #bae6fd;
}

.navbar,
.navbar-light {
  background: var(--bg-surface) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
  color: var(--text-primary);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus-visible {
  color: var(--accent-strong);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  filter: invert(0.9);
}

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

.card,
.card-body,
.list-group-item {
  background-color: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.feed-card {
  border-radius: 2rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(104, 151, 187, 0.18);
  color: var(--accent);
  font-size: 1rem;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: rgba(104, 151, 187, 0.32);
  color: var(--accent-strong);
}

.archive-panel {
  min-width: 280px;
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

.archive-panel .card,
.archive-panel .card-body {
  background-color: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.12);
}

.feed-layout {
  width: 100%;
}

.featured-panel {
  width: 100%;
}

.timeline-card {
  border-radius: 2rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0;
}

.timeline-item {
  list-style: none;
}

.timeline-link {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-secondary-bg);
  transition: background 0.2s ease, color 0.2s ease;
}

.timeline-link:hover,
.timeline-link:focus-visible {
  background: rgba(204, 120, 50, 0.25);
  color: var(--text-primary);
}

.archive-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.archive-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease;
}

.archive-link:hover,
.archive-link:focus-visible {
  background: rgba(204, 120, 50, 0.18);
}

.archive-date {
  font-weight: 600;
  color: var(--highlight);
}

.archive-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card {
  background: var(--bg-surface);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-card {
  border: none;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: var(--card-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.social-card .card-body {
  position: relative;
  background: var(--bg-card);
  border-radius: 1.4rem;
}

.avatar-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 151, 187, 0.2);
  color: var(--accent);
  font-size: 1.25rem;
}

.avatar-icon.lg {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

.avatar-photo {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 3px solid rgba(104, 151, 187, 0.3);
}

.avatar-photo.sm {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-card-content p {
  margin-bottom: 0.75rem;
}

.social-card-content p:last-child {
  margin-bottom: 0;
}

.badge {
  letter-spacing: 0.06em;
  background: rgba(104, 151, 187, 0.2);
  color: var(--accent);
}

.stat-badge {
  background: rgba(33, 34, 36, 0.9);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
}

.stat-badge i {
  color: var(--accent-strong);
}

.border-top {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-reset {
  color: var(--accent);
}

footer .text-reset:hover,
footer .text-reset:focus-visible {
  color: var(--accent-strong);
}

.feed-card .social-card:last-child {
  margin-bottom: 0;
}

.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #1a1b18;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff2d80;
  border-color: #ff2d80;
  color: #1a1b18;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  color: #1a1b18;
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline-secondary {
  color: var(--highlight);
  border-color: var(--highlight);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  color: #1a1b18;
  background: var(--highlight);
  border-color: var(--highlight);
}

@media (max-width: 767px) {
  .hero-card {
    border-radius: 1rem;
  }

  .social-card {
    border-radius: 1rem;
  }

  .feed-card {
    border-radius: 1.25rem;
  }

  .archive-panel {
    width: 100%;
  }

  .avatar-photo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .avatar-photo.sm {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (min-width: 992px) {
  .feed-layout .featured-panel {
    flex: 3 1 0;
  }

  .feed-layout .archive-panel {
    flex: 1 1 0;
    max-width: 25%;
  }
}
