/* Main CSS file for Jekyll site */
/* Tale theme overrides for noidea.dog styling with headshot */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fefefe;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - very clean, minimal with headshot */
.header {
  background-color: #fefefe;
  padding: 40px 0 30px;
  text-align: left;
}

.header-with-photo {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.header-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #f0f0f0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.header-photo:hover {
  border-color: #666;
  transform: scale(1.05);
}

.header-text {
  flex: 1;
}

.header-title {
  font-size: 2.8em;
  font-weight: 300;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.header-description {
  font-size: 1.1em;
  color: #666;
  font-weight: 300;
  max-width: 700px;
  line-height: 1.5;
}

/* Navigation - very minimal  */
.nav {
  background: #fefefe;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 20px 0;
  margin-bottom: 50px;
}

.nav-container {
  display: flex;
  gap: 40px;
  font-size: 0.95em;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -21px;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
}

/* Posts grid - noidea.dog style */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 0 0 80px;
}

.post-card {
  background: white;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.post-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.post-meta {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  color: #666;
  padding: 4px 8px;
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.post-content {
  padding: 20px;
}

.post-title {
  font-size: 1.2em;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-excerpt {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: #f8f9fa;
  color: #666;
  padding: 2px 8px;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.tag.tech { background: #e3f2fd; color: #1976d2; }
.tag.leadership { background: #fff3e0; color: #f57c00; }
.tag.family { background: #fce4ec; color: #c2185b; }
.tag.travel { background: #e8f5e8; color: #2e7d32; }
.tag.keynote { background: #f3e5f5; color: #7b1fa2; }
.tag.outdoors { background: #e8f5e8; color: #388e3c; }

/* Section titles for individual pages */
.section-title {
  font-size: 1.5em;
  font-weight: 400;
  color: #333;
  margin-bottom: 40px;
  text-align: center;
}

/* Reading list specific styles */
.reading-section {
  max-width: 800px;
  margin: 0 auto;
}

.reading-category {
  margin-bottom: 40px;
}

.reading-category h3 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
  font-weight: 500;
}

.reading-list {
  list-style: none;
  padding: 0;
}

/* Reading list link styling */
.reading-list a {
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.reading-list a:hover {
  color: #222;
  border-bottom-color: #ddd;
}

.reading-list li {
  padding: 12px 0;
  color: #666;
  font-size: 0.95em;
  border-bottom: 1px solid #f8f9fa;
  line-height: 1.4;
}

/* About page content styling */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
}

/* Footer styling */
.footer {
  border-top: 1px solid #e9ecef;
  padding: 40px 0;
  color: #999;
  font-size: 0.9em;
  background: #fefefe;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content p {
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Position social icons at right */
.social-links {
  margin: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #999;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 50%;
  background: transparent;
}

.social-icon:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .footer-top, .footer-bottom {
    justify-content: center !important;
  }
  
  .footer-content p {
    text-align: center;
  }
}



/* Mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-with-photo {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .header-photo {
    width: 130px;
    height: 130px;
  }
  
  .header-title {
    font-size: 2.2em;
  }
  
  .header-description {
    font-size: 1em;
  }
  
  .nav-container {
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .post-card {
    margin: 0 auto;
    max-width: 400px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .header-title {
    font-size: 1.8em;
  }
  
  .header-description {
    font-size: 0.95em;
  }
  
  .nav-container {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 0.9em;
  }
}