/* ===== Dark Developer Theme for maeste.it ===== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #e2e8f0;
  background: #0f172a;
  line-height: 1.6;
}

a { color: #60a5fa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #93bbfc; text-decoration: none; }

/* --- Nav --- */
nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
nav .logo .nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #334155;
}
nav .logo span { color: #60a5fa; }
nav .links { display: flex; gap: 1.5rem; align-items: center; }
nav .links a {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s;
}
nav .links a:hover { color: #e2e8f0; }

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #1e293b;
  border-radius: 6px;
  overflow: hidden;
}
.lang-toggle button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: transparent;
  color: #475569;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: #1e293b;
  color: #e2e8f0;
}
.lang-toggle button:hover:not(.active) {
  color: #94a3b8;
}

/* --- Hero --- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}
.hero-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 2px solid #1e293b;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #60a5fa;
  margin-bottom: 1rem;
}
.hero .bio {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* --- Social Row --- */
.social-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-row a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.3rem 0.7rem;
  border: 1px solid #1e293b;
  border-radius: 6px;
  transition: all 0.2s;
}
.social-row a:hover {
  color: #e2e8f0;
  border-color: #334155;
  background: #1e293b;
}

/* --- Sections --- */
section {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
section + section {
  border-top: 1px solid #1e293b;
}
section h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-bottom: 1.25rem;
}

/* --- Talk Items --- */
.talk-item {
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: #1e293b;
  border-radius: 8px;
  border-left: 2px solid #334155;
  transition: border-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.talk-item:hover { border-left-color: #60a5fa; }
.talk-title { font-weight: 500; font-size: 0.9rem; color: #e2e8f0; }
.talk-event { font-size: 0.78rem; color: #64748b; margin-top: 0.15rem; }
.talk-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #475569;
  white-space: nowrap;
}
.talk-links a {
  font-size: 0.75rem;
  margin-left: 0.75rem;
  opacity: 0.7;
}
.talk-links a:hover { opacity: 1; }
.see-all {
  display: inline-block;
  font-size: 0.8rem;
  color: #60a5fa;
  margin-top: 0.75rem;
  opacity: 0.7;
}
.see-all:hover { opacity: 1; }

/* --- Project Grid --- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.project-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #1e293b;
  transition: all 0.2s;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.project-card:hover { border-color: #334155; }
.project-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.project-card .name { font-weight: 600; font-size: 0.92rem; color: #f1f5f9; }
.project-card .arrow { color: #475569; font-size: 0.9rem; transition: color 0.2s; }
.project-card:hover .arrow { color: #60a5fa; }
.project-card .desc { font-size: 0.82rem; color: #94a3b8; line-height: 1.5; margin-bottom: 0.75rem; }
.project-card .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #475569;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.project-card .meta span {
  background: #0f172a;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* --- Content Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}
.content-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #1e293b;
  transition: border-color 0.2s;
}
.content-card:hover { border-color: #334155; }
.content-card .icon { font-size: 1.2rem; margin-bottom: 0.5rem; }
.content-card h3 { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; margin-bottom: 0.3rem; }
.content-card .lang-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #475569;
  background: #0f172a;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.content-card p { font-size: 0.8rem; color: #94a3b8; line-height: 1.5; margin-bottom: 0.75rem; }
.content-card .link-row { display: flex; flex-direction: column; gap: 0.2rem; }
.content-card .link-row a { font-size: 0.78rem; }

/* --- Talk Detail Page --- */
.talk-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
}
.talk-detail .talk-header {
  margin-bottom: 2rem;
}
.talk-detail .talk-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.talk-detail .talk-header .event-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.talk-detail .talk-header .description {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 640px;
}
.talk-detail .resource-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
}
.talk-detail .resource-section h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-bottom: 1rem;
}
.talk-detail .resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.talk-detail .resource-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-radius: 8px;
  border: 1px solid #1e293b;
  transition: border-color 0.2s;
}
.talk-detail .resource-item:hover { border-color: #334155; }
.talk-detail .resource-item .icon { font-size: 1rem; }
.talk-detail .resource-item .label { font-size: 0.88rem; color: #e2e8f0; font-weight: 500; }
.talk-detail .resource-item .url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #475569;
  margin-top: 0.1rem;
}

/* --- Coming Soon --- */
.coming-soon {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}
.coming-soon .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.coming-soon h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}
.coming-soon .event-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.coming-soon .description {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.coming-soon .placeholder-links {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 1rem;
}
.coming-soon .placeholder-links span {
  opacity: 0.4;
}

/* --- Footer --- */
footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #334155;
  border-top: 1px solid #1e293b;
}

/* --- Back link --- */
.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.back-link:hover { color: #e2e8f0; }

/* --- Timeline for speaking page --- */
.talks-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.talk-timeline-item {
  display: flex;
  gap: 1rem;
}
.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #475569;
  min-width: 50px;
  padding-top: 0.9rem;
  text-align: right;
}
.timeline-content { flex: 1; }
.timeline-content .talk-item a.talk-link {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.15rem;
}
.timeline-content .talk-item a.talk-link:hover { color: #60a5fa; }

/* --- Responsive --- */
@media (max-width: 700px) {
  nav { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  section { padding: 2rem 1.25rem; }
  .project-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .talk-timeline-item { flex-direction: column; gap: 0.25rem; }
  .timeline-year { text-align: left; padding-top: 0; }
  .talk-detail .talk-header h1 { font-size: 1.3rem; }
  .coming-soon { padding: 3rem 1.25rem; }
  .coming-soon h1 { font-size: 1.4rem; }
}

/* --- Page Intro --- */
.page-intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 1rem;
}
.page-intro .lang-toggle { margin-bottom: 0.75rem; }
.page-intro p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 600px;
}

/* --- YouTube Embed --- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1rem 0 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
