/* ========================================
   Vojtěch Pröschl — Dark Minimal Portfolio
   ======================================== */

:root {
  --bg: #0a0a0b;
  --bg-raised: #141416;
  --bg-hover: #1c1c1f;
  --border: #2a2a2e;
  --text: #e4e4e7;
  --text-muted: #8b8b92;
  --accent: #c8a2ff;
  --accent-dim: #a07ad4;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --max-w: 1100px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

img { max-width: 100%; height: auto; display: block; }

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.logo-initials {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--accent-dim);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ---- HERO ---- */
.hero {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-note {
  max-width: 680px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- PROJECTS SECTION ---- */
.projects-section {
  padding: 2rem 1.5rem 4rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-inner h2 {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Tag filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-btn {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.tag-btn:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

.tag-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}

.tag-clear {
  color: var(--text-muted);
  border-style: dashed;
}

.tag-clear:hover {
  color: var(--text);
}

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  color: var(--text);
}

.card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .card-thumb img {
  transform: scale(1.03);
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

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

.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(200, 162, 255, 0.1);
  color: var(--accent-dim);
}

/* ---- PROJECT SINGLE ---- */
.project-single {
  padding: 2rem 1.5rem 4rem;
}

.project-inner {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--text); }

.project-single h1 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-local {
  padding-bottom: 0;
  height: auto;
}

.video-local video {
  width: 100%;
  border-radius: var(--radius);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-hero-img {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-links a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.project-links a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.project-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.project-content p { margin-bottom: 1rem; }
.project-content h2 { color: var(--text); margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.project-content h3 { color: var(--text); margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.project-content a { color: var(--accent); }
.project-content a:hover { text-decoration: underline; }
.project-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-hover);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.project-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ---- PAGE SINGLE (About, etc) ---- */
.page-single {
  padding: 2rem 1.5rem 4rem;
}

.page-inner {
  max-width: 700px;
  margin: 0 auto;
}

.page-single h1 {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.page-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-content p { margin-bottom: 1rem; }
.page-content h2 { color: var(--text); margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.page-content a { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }
.page-content ul, .page-content ol { margin: 0 0 1rem 1.5rem; }
.page-content li { margin-bottom: 0.35rem; }

/* ---- COURSE LANDING ---- */
.course-landing {
  padding: 3rem 1.5rem 4rem;
}

.course-inner {
  max-width: 800px;
  margin: 0 auto;
}

.course-landing h1 {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.course-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.course-vol {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.course-vol.upcoming {
  border-style: dashed;
}

.vol-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.vol-header h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.vol-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vol-badge.free {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.vol-badge.paid {
  background: rgba(200, 162, 255, 0.15);
  color: var(--accent);
}

.course-vol p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.vol-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vol-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.ep-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.ep-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  color: var(--text);
}

.ep-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.ep-label {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

.follow-btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  transition: all 0.15s;
}

.follow-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.course-extra {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 56px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  text-align: left;
}

.footer-email {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.footer-copy,
.footer-email,
.footer-social a {
  white-space: nowrap;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.footer-email,
.footer-social a {
  color: var(--text-muted);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; font-size: 0.8rem; }
  .course-vol { padding: 1.25rem; }
  .site-footer {
    padding: 0 0.75rem;
  }

  .footer-inner {
    font-size: 0.5rem;
  }

  .footer-social {
    gap: 0.25rem;
  }
}
