/* Last Hope Memorial - Main Stylesheet */
/* Dark theme inspired by the original 2002 site aesthetic */

:root {
  --bg-dark: #1a1a1a;
  --bg-darker: #0d0d0d;
  --bg-card: #252525;
  --bg-card-hover: #2a2a2a;
  --accent-orange: #dd8300;
  --accent-orange-light: #ff9933;
  --accent-blue: #006699;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --border-color: #333333;
  --shadow: rgba(0, 0, 0, 0.5);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-orange-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background-color: var(--bg-darker);
}

/* Header / Navigation */
.site-header {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-bottom: 2px solid var(--accent-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-orange);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent-orange-light);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--accent-orange-light);
  text-decoration: none;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-darker);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 2px solid var(--accent-orange);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1510 50%, var(--bg-darker) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(221, 131, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-orange);
  text-shadow: 0 0 30px rgba(221, 131, 0, 0.3);
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero .years {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Era Cards */
.era-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.era-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: left;
}

.era-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
  border-color: var(--accent-orange);
}

.era-card h3 {
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.era-card .era-years {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.era-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.era-card .btn {
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--accent-orange-light);
  color: var(--bg-dark);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
}

.btn-outline:hover {
  background-color: var(--accent-orange);
  color: var(--bg-dark);
  text-decoration: none;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 400px;
  margin-right: 2rem;
  border: 1px solid var(--border-color);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: 2rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-orange);
  border-radius: 50%;
  top: 1.5rem;
}

.timeline-year {
  color: var(--accent-orange);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }

  .timeline-item::after {
    left: 20px;
  }
}

/* Content Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-darker);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Team Members */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-member {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.team-member .flag {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-member h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--accent-orange);
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background-color: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 2rem 1rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-caption {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: var(--accent-orange);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(221, 131, 0, 0.5);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Dedication Section */
.dedication {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1510 100%);
  border-left: 4px solid var(--accent-orange);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.dedication blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.dedication .author {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Story/Lore Section */
.story-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.story-section h3 {
  color: var(--accent-orange);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Forum Highlights */
.forum-post {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.forum-post .post-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.forum-post .username {
  color: var(--accent-orange);
  font-weight: 600;
}

.forum-post .date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.forum-post .post-content {
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--accent-orange-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
}

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

.breadcrumb span {
  color: var(--text-secondary);
  margin: 0 0.5rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1510 100%);
  padding: 4rem 0 3rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: 3rem 0;
  }
}

/* Archive Notice */
.archive-notice {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.archive-notice a {
  color: var(--text-primary);
  text-decoration: underline;
}
