/* ============================================
   MTW Custom Terminal Styling
   ============================================ */

/* Hero Section */
.hero-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.hero-banner {
  text-align: center;
  margin-bottom: 2rem;
}

.ascii-art {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

.hero-statement {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.hero-statement p {
  margin-bottom: 1.2rem;
}

.hero-statement strong {
  color: var(--accent);
  font-weight: 700;
}

/* Mission Pillars */
.mission-pillars {
  margin: 4rem 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mission-pillars h2,
.featured-investigation h2,
.recent-posts-section h2,
.cta-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.bracket {
  color: var(--accent);
  font-weight: 700;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pillar-item {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  background: var(--background);
}

.pillar-title {
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.pillar-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Featured Investigation */
.featured-investigation {
  margin: 4rem 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.featured-article {
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid var(--accent);
  padding: 2rem;
  background: var(--background);
}

.featured-header {
  margin-bottom: 1.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: var(--background);
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

.featured-title a {
  color: var(--color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.featured-title a:hover {
  border-bottom-color: var(--accent);
}

.featured-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1.5rem 0;
  opacity: 0.9;
}

.featured-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.read-more-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}

.read-more-button:hover {
  background: var(--accent);
  color: var(--background);
}

/* Recent Posts Section */
.recent-posts-section {
  margin: 4rem 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.posts-list {
  max-width: 800px;
  margin: 0 auto;
}

.post-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.post-item:last-child {
  border-bottom: none;
}

.post-header {
  margin-bottom: 0.75rem;
}

.post-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

.post-title a {
  color: var(--color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-title a:hover {
  border-bottom-color: var(--accent);
}

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0.75rem 0;
}

.post-metadata {
  font-size: 0.85rem;
  opacity: 0.6;
  display: flex;
  gap: 0.5rem;
}

/* View All Link */
.view-all-container {
  text-align: center;
  margin-top: 2rem;
}

.view-all-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--border-color);
  color: var(--color);
  text-decoration: none;
  transition: all 0.2s;
}

.view-all-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* CTA Section */
.cta-section {
  margin: 4rem 0;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.cta-section a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.cta-section a:hover {
  opacity: 0.8;
}

.cta-motto {
  font-style: italic;
  opacity: 0.9;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .ascii-art {
    font-size: 0.45rem;
  }

  .hero-statement {
    font-size: 1rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-article {
    padding: 1.5rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-summary {
    font-size: 1rem;
  }

  .post-title {
    font-size: 1.2rem;
  }

  .mission-pillars h2,
  .featured-investigation h2,
  .recent-posts-section h2,
  .cta-section h2 {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 480px) {
  .ascii-art {
    font-size: 0.35rem;
  }

  .hero-section {
    margin: 2rem 0;
    padding: 1rem 0;
  }

  .mission-pillars,
  .featured-investigation,
  .recent-posts-section {
    margin: 2rem 0;
    padding: 1rem 0;
  }
}

/* Work in Progress Section */
.work-in-progress {
  margin: 4rem 0;
  padding: 2rem 0;
  text-align: center;
}

.work-in-progress h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.wip-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 2px solid var(--border-color);
  background: var(--background);
}

.wip-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.wip-status {
  font-family: 'Fira Code', monospace;
  color: var(--accent);
  font-size: 0.95rem;
  margin-top: 2rem;
  opacity: 1;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.5; }
}

/* Additional Terminal aesthetic enhancements */
.featured-article::before {
  content: "┌─ FEATURED ─────────────────────────────────────────────┐";
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.featured-article::after {
  content: "└────────────────────────────────────────────────────────┘";
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 1rem;
  opacity: 0.6;
}
