/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #5a5a7a;
  --border: #e8e8f0;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
  padding: 3rem 1.5rem;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  object-fit: cover;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.bio {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: white;
  transform: translateY(-1px);
}

/* === Container === */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* === Controls === */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 1;
}

.filter-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

.search-bar input {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font);
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus { border-color: var(--accent); }

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

/* === Year Separator === */
.year-separator {
  position: relative;
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.year-separator::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translate(0, -50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
}

/* === Card === */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.card::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.platform-badge.devto { background: #e8f5e9; color: #2e7d32; }
.platform-badge.github { background: #f3e8ff; color: #7c3aed; }
.platform-badge.youtube { background: #fce4ec; color: #c62828; }
.platform-badge.aws { background: #fff3e0; color: #e65100; }
.platform-badge.instagram { background: #fce4ec; color: #ad1457; }
.platform-badge.community-aws { background: #fff8e1; color: #f57f17; }
.platform-badge.linkedin { background: #e8f0fe; color: #0a66c2; }

.card-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.card-type {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
  margin-left: auto;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
}

/* === GitHub Card Extras === */
.repo-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.repo-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* === No Results === */
.no-results {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 0;
  font-size: 0.95rem;
}

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

/* === Responsive === */
@media (max-width: 600px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
  .avatar { width: 90px; height: 90px; }
  .hero-text h1 { font-size: 1.5rem; }
  .controls { flex-direction: column; }
  .search-bar input { width: 100%; }
  .card-type { margin-left: 0; }
}
