/* Base Styles */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #333333;
  --color-border: #e5e5e5;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1400px;
  --spacing: 4vw;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

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

/* Header */
.site-header {
  padding: 1.5rem var(--spacing);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
}

.nav-links a.active {
  font-weight: 600;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
}

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

.project-card:hover .card-image img {
  transform: scale(1.02);
}

.card-content {
  padding: 1rem 0;
}

.card-content h2 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.card-category {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Project Detail */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
}

.project-header {
  margin-bottom: 2rem;
}

.project-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-header .subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #f5f5f5;
  border-radius: 2px;
}

.project-cover {
  margin-bottom: 2rem;
}

.project-content {
  font-size: 1rem;
  line-height: 1.8;
}

.project-content p {
  margin-bottom: 1.5rem;
}

.project-content img {
  margin: 2rem 0;
}

.project-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Podcast Styles */
.podcast-listing {
  max-width: 800px;
  margin: 0 auto;
}

.podcast-header {
  text-align: center;
  margin-bottom: 3rem;
}

.podcast-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.podcast-tagline {
  color: var(--color-text-muted);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.episode-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.episode-card:hover {
  border-color: var(--color-text);
}

.episode-card h2 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.episode-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.episode-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Podcast Episode Detail */
.podcast-episode {
  max-width: 800px;
  margin: 0 auto;
}

.episode-header {
  margin-bottom: 2rem;
}

.episode-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.audio-player {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.audio-player audio {
  width: 100%;
}

.episode-content {
  line-height: 1.8;
}

.episode-content p {
  margin-bottom: 1.5rem;
}

.guest-links {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
}

.guest-links h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.guest-links ul {
  list-style: none;
}

.guest-links li {
  margin-bottom: 0.5rem;
}

.guest-links a {
  text-decoration: underline;
}

.episode-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* About & Contact */
.about-page,
.contact-page {
  max-width: 600px;
  margin: 0 auto;
}

.about-content h1,
.contact-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-links {
  list-style: none;
  margin-top: 1rem;
}

.contact-links a {
  text-decoration: underline;
}

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

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
