/* ==========================================================================
   Minimal & Chill Portfolio Stylesheet - Demetrios Gavalas
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Light theme - warm, clean, paper-like minimalism */
  --bg: #ffffff;
  --text: #171717;
  --text-muted: #737373;
  --text-faint: #a3a3a3;
  --border: #f0f0f0;
  --border-strong: #e5e5e5;
  --link: #171717;
  --link-hover: #2563eb;
  --link-underline: #d4d4d4;
  --tag-bg: #f5f5f5;
  --tag-text: #525252;
}

[data-theme="dark"] {
  /* Dark theme - calm, soft obsidian / charcoal */
  --bg: #121214;
  --text: #ededed;
  --text-muted: #8e8e93;
  --text-faint: #52525b;
  --border: #222226;
  --border-strong: #2c2c31;
  --link: #ededed;
  --link-hover: #60a5fa;
  --link-underline: #3f3f46;
  --tag-bg: #1c1c20;
  --tag-text: #a1a1aa;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 4rem 1.5rem 6rem;
}

.container {
  max-width: 660px;
  margin: 0 auto;
}

/* Links */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.ext-arrow {
  display: inline-block;
  font-size: 0.85em;
  margin-left: 0.15rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
}

a:hover .ext-arrow {
  color: var(--link-hover);
}

/* Header */
.header {
  margin-bottom: 3.5rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--text);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-links a {
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 1px dotted var(--link-underline);
}

.contact-links a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.contact-sep {
  color: var(--text-faint);
}

/* Copy notification */
.copy-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px dotted var(--link-underline);
  padding: 0;
}

.copy-btn:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.copy-notice {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #10b981;
  display: none;
  margin-left: 0.25rem;
}

.copy-notice.active {
  display: inline;
}

/* Sections */
section {
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

/* Experience & Projects List */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.25rem;
}

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.entry-title a {
  font-weight: 600;
}

.entry-link-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--link-underline);
}

.entry-link-chip:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.entry-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.entry-bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.entry-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.entry-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.entry-tech {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Education */
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.edu-courses {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.edu-courses strong {
  color: var(--text);
  font-weight: 500;
}

/* Skills Key-Value */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.skill-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-items {
  color: var(--text);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* Print Clean */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    font-size: 10pt;
  }
  .theme-toggle, .copy-notice {
    display: none !important;
  }
  .section-label::after {
    background-color: #ccc !important;
  }
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}

/* Mobile */
@media (max-width: 560px) {
  body {
    padding: 2.5rem 1.25rem 4rem;
  }

  .header-top {
    flex-direction: row;
  }

  .entry-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .entry-meta {
    white-space: normal;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
