/**
 * timeline.css — Global site styles for jazracherif.github.io
 *
 * Sections:
 *   1. Variables
 *   2. Typography
 *   3. Footer
 *   4. Hero (home page intro)
 *   5. Bio Photos
 *   6. Timeline (experience & education cards)
 *   7. Post Cards (home & writings page listing)
 *
 * Note: Header & Navigation styles live in header.css
 */


/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
  --card-bg: #edf2f8;
}


/* ==========================================================================
   2. Typography
   ========================================================================== */

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.site-title, .site-nav,
.page-link, nav {
  font-family: 'Inter', system-ui, sans-serif;
}

code, pre {
  font-family: 'IBM Plex Mono', Menlo, monospace;
}


/* ==========================================================================
   3. Footer
   ========================================================================== */

.site-footer {
  background-color: #ffffff;
}

.footer-copyright {
  border-top: 1px solid #e8e3da;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  color: #999;
  font-family: 'Inter', system-ui, sans-serif;
}


/* ==========================================================================
   5. Hero
   Home page intro block: circular photo + name, tagline, bio, social links.
   ========================================================================== */

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 40px 0 20px 0;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.hero-content {
  flex: 1;
}

.hero-name {
  font-size: 1.8em;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px 0;
}

.hero-tagline {
  font-size: 1em;
  color: #888;
  margin: 0 0 12px 0;
}

.hero-bio {
  font-size: 0.95em;
  color: #555;
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.hero-companies {
  font-size: 0.82em;
  color: #999;
  margin: 0 0 14px 0;
}

.hero-companies span {
  color: #444;
  font-weight: 600;
}

.hero-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-social a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #666;
  text-decoration: none;
  font-size: 0.85em;
  transition: color 0.2s;
}

.hero-social a:hover {
  color: #222;
}

.hero-social .svg-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-social {
    justify-content: center;
  }
}

/* ==========================================================================
   6. Bio Photos
   Flex gallery of square photos used on the about page Personal Projects section.
   ========================================================================== */

.bio-photos {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.bio-photo {
  text-align: center;
}

.bio-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 60% center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bio-photo p {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
  max-width: 200px;
}

/* ==========================================================================
   7. Timeline
   Experience and education cards on the about page.
   Each card has a logo on the left and content (title, period, description) on the right.
   ========================================================================== */

.timeline-section {
  max-width: 800px;
  margin: 60px auto;
}

.timeline-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.8em;
  color: #333;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-left: 3px solid #e8e8e8;
}

.timeline-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.timeline-logo {
  flex-shrink: 0;
  margin-right: 25px;
}

.timeline-logo img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.timeline-content {
  flex-grow: 1;
}

.timeline-content h3 {
  margin: 0 0 6px 0;
  color: #222;
  font-size: 1.2em;
}

.timeline-content .period {
  display: inline-block;
  color: #666;
  font-size: 0.8em;
  margin-bottom: 10px;
  font-style: normal;
  background: #e4e4e4;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.timeline-content p {
  margin: 10px 0 0 0;
  line-height: 1.7;
  color: #666;
  text-align: left;
  border-top: 1px solid #e5e5e5;
  padding-top: 10px;
}

/* ==========================================================================
   8. Post Cards
   Blog post listing used on the home page (Recent Writings) and Writings page.
   Each card shows title, date, category tags, and an excerpt.
   ========================================================================== */

/* Section heading label above the post list */
.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2a4060;
  border-bottom: 2px solid #a8bcd4;
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card {
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.post-card-title {
  font-size: 1em;
  font-weight: 600;
  color: #1a5db5;
  text-decoration: none;
}

.post-card-title:hover {
  color: #4a90d9;
}

.post-card-date {
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
}

.post-card-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.post-card-excerpt {
  margin: 0.5rem 0 0 0;
  font-size: 0.88em;
  color: #555;
  line-height: 1.5;
  text-align: left;
}

.post-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3a5878;
  background: #dce8f4;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .post-card-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* ==========================================================================
   9. TL;DR Box
   ========================================================================== */

.tldr {
  padding: 0.8em 1.4em;
  margin: 1.5em 0;
  font-size: 0.9em;
  color: #444;
  background-color: #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tldr-label {
  margin: 0 0 0.6em 0;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8em;
  color: #888;
}

.tldr ol {
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.7em;
}

/* ==========================================================================
   10. Post Content Tables
   ========================================================================== */

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 1.5rem 0;
}

.post-content table th {
  background: #3d4a7a;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-content table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #dde6f0;
  color: #333;
  vertical-align: top;
}

.post-content table tr:last-child td {
  border-bottom: none;
}

.post-content table tr:nth-child(even) {
  background: #f6f9fc;
}
