body {
  background-color: #1a1a1a;
  min-height: 100vh;
  color: white;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

#app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: #33231a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  color: #fed7aa;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

.logo-accent {
  color: #f97316;
}

.nav-menu {
  
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.875rem;
  flex: 1;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: #fb923c;
}

.nav-link.active:hover {
  color: #fdba74;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  background-color: #ea580c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
  background-color: #c2410c;
}
.user-avatar {
  background-color: #ea580c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar:hover {
  background-color: #c2410c;
}
main {
  padding-top: 14rem; 
  padding-bottom: 4rem;
}


.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative; 
}

.page-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
  position: fixed;
  top: 4rem;
  left: 0; 
  right: 0; 
  background-color: #1a1a1a;
  z-index: 3000;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-title-section h1 {
  padding-left: 7rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin: 0;
}

@media (min-width: 640px) {
  .page-title-section h1 {
    font-size: 1.875rem;
  }
}

.page-subtitle {
  padding-left: 7rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.filter-buttons {
  padding-right: 7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background-color: #ea580c;
  color: white;
}

.filter-btn.inactive {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.filter-btn.inactive:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

#timeline {
  position: relative;
  padding-left: 0.25rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

#timeline-list {
  margin: 0;
}

.timeline-empty {
  padding: 3rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

@media (min-width: 640px) {
  .timeline-item {
    gap: 1.5rem;
  }
}

.timeline-year {
  flex-shrink: 0;
  width: 3rem;
  text-align: right;
}

@media (min-width: 640px) {
  .timeline-year {
    width: 3.5rem;
  }
}

.timeline-year-text {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fb923c;
  font-variant-numeric: tabular-nums;
}

.timeline-dot-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #f97316;
  border: 2px solid #1a1a1a;
  z-index: 10;
}

.timeline-content {
  flex: 1;
  min-width: 0;
  margin-left: -21px;
}

@media (min-width: 640px) {
  .timeline-content {
    margin-left: 0;
    margin-left: -23px;
  }
}

.timeline-card {
  display: block;
  background-color: #33231a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-card:hover {
  border-color: rgba(189, 148, 28, 0.4);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-card-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.timeline-card-inner img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-card:hover .timeline-card-inner img {
  transform: scale(1.08);
}

@media (min-width: 640px) {
  .timeline-card-inner {
    flex-direction: row;
  }
}

.timeline-image-container {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .timeline-image-container {
    width: 9rem;
  }
}

.timeline-image {
  width: 100%;
  height: 8rem;
  object-fit: cover;
}

@media (min-width: 640px) {
  .timeline-image {
    height: 100%;
    min-height: 100px;
  }
}

.timeline-card-content {
  padding: 1rem;
  flex: 1;
  min-width: 0;
}

.timeline-type-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(251, 146, 60, 0.9);
}

.timeline-entity-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-top: 0.25rem;
}

.timeline-period {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

.timeline-summary {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-view-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #2f2f2f;
  font-size: 0.85rem;
  color: #9ca3af;
}

.history-view-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer-column h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f9fafb;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li + li {
  margin-top: 4px;
}

.footer-column a {
  text-decoration: none;
  color: inherit;
}

.footer-column a:hover {
  color: #f9fafb;
}

.footer-column-wide p {
  margin: 4px 0 10px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-social a:hover {
  color: #f9fafb;
}

.history-view-footer-bottom {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.footer-links a:hover {
  color: #4091e2;
}


.hidden {
  display: none;
}