/* AdkinsFam Site - Main Stylesheet */

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #333333;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --accent: #d4842a;
  --accent-hover: #e0953a;
  --border: #444444;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #2a1a0a 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--accent);
  padding: 1.5rem 2rem;
  text-align: center;
}

.site-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.site-header h1 span {
  color: var(--accent);
}

.site-header .tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* Navigation */
.site-nav {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Main Content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateX(4px);
}

.blog-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--accent);
}

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

.blog-card .post-count {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Blog Layout with Sidebar */
.blog-layout {
  display: flex;
  gap: 2rem;
}

.post-archive {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
}

.post-archive h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.post-archive ul {
  list-style: none;
  padding: 0;
}

.post-archive li {
  margin-bottom: 0.4rem;
}

.post-archive li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.post-archive li a:hover {
  color: var(--accent);
  background-color: var(--bg-card);
}

.post-archive details {
  margin-bottom: 0.5rem;
}

.post-archive summary {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  list-style: disclosure-closed;
}

.post-archive details[open] summary {
  list-style: disclosure-open;
  margin-bottom: 0.3rem;
}

.post-archive details ul {
  padding-left: 0.5rem;
}

/* Post List */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.post-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.post-card .post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-card .post-body {
  padding: 1.5rem;
}

.post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.post-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card .post-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.post-card .post-meta .location {
  color: var(--accent);
}

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

/* Single Post */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-header .post-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-header .post-meta .location {
  color: var(--accent);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.6;
}

.post-content p {
  margin-bottom: 0.5rem;
}

.post-content p:empty {
  display: none;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content .image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.post-content .image-row img {
  margin: 0;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.page-header p {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column;
  }

  .post-archive {
    width: 100%;
    position: static;
  }
}

@media (max-width: 600px) {
  .site-header h1 {
    font-size: 1.6rem;
  }

  .site-nav {
    gap: 1rem;
    padding: 0.8rem 1rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .post-card .post-image {
    height: 180px;
  }

  .post-content .image-row {
    grid-template-columns: 1fr;
  }

  .post-content .image-row img {
    height: 200px;
  }
}
