/* ============================================================
   Pavel Kalaš — sdílené styly (čisté CSS)
   ============================================================ */

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

html,
body {
  width: 100%;
  min-height: 100vh;
  background: #050505;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Shader pozadí */
#shader-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#shader-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.shader-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ---------- Profil ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.avatar-ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff22, #ffffff08);
  position: relative;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #ffffff15, #ffffff40, #ffffff15);
  z-index: -1;
  animation: ring-spin 8s linear infinite;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

.name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #999999;
  font-weight: 400;
}

.bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cccccc;
  max-width: 340px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #bbbbbb;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e88;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Odkazy ---------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.link:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: rgba(15, 15, 15, 0.75);
}

.link:hover::before {
  opacity: 1;
}

.link:active {
  transform: translateY(0);
}

.link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.link:hover .link-icon {
  opacity: 1;
}

.link-text {
  flex: 1;
}

.link-arrow {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.link:hover .link-arrow {
  opacity: 0.5;
  transform: translateX(0);
}

/* Zvýrazněný odkaz (Projekty) */
.link--accent {
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e6f7ff;
}

.link--accent:hover {
  background: rgba(8, 145, 178, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.link--accent .link-icon {
  color: #38bdf8;
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #555555;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ============================================================
   Stránka projektů — statické šedé pozadí pro pohodlné čtení
   ============================================================ */
.page-projects {
  align-items: flex-start;
  background: #1c1d22;
}

.page-projects .container {
  max-width: 760px;
  align-items: stretch;
  text-align: left;
  gap: 24px;
}

/* Navigační odkazy (Domů / Zpět) */
.home-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfcfd4;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.home-link:hover,
.back-link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.back-link:hover {
  transform: translateX(-2px);
}

.home-link svg,
.back-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- Seznam projektů (karty) ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-list-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px;
  border-radius: 16px;
  background: #25262c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.project-list-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: #2b2d34;
  transform: translateY(-2px);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.card-short {
  font-size: 0.85rem;
  color: #a8a8b0;
  line-height: 1.5;
}

.card-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6b7280;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.project-list-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #38bdf8;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-subtitle {
  font-size: 0.9rem;
  color: #999999;
  line-height: 1.6;
}

/* ---------- Karta projektu ---------- */
.project-card {
  border-radius: 18px;
  background: #25262c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.project-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-weight: 500;
}

.project-tagline {
  font-size: 0.9rem;
  color: #bbbbbb;
  line-height: 1.6;
}

.project-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777777;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.project-text {
  font-size: 0.875rem;
  color: #cccccc;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.78rem;
  color: #999999;
  line-height: 1.5;
}

/* Seznam příkazů */
.cmd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #d0d0d0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-list li code {
  color: #7dd3fc;
}

.cmd-list li span {
  color: #888888;
}

/* Číslovaný seznam použití */
.usage-list {
  list-style: none;
  counter-reset: usage;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-list li {
  counter-increment: usage;
  position: relative;
  padding: 10px 14px 10px 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: #d0d0d0;
  line-height: 1.5;
}

.usage-list li::before {
  content: counter(usage);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bbbbbb;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: #38bdf8;
  color: #04141c;
}

.btn--primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .container {
    padding: 40px 16px 56px;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .name {
    font-size: 1.2rem;
  }

  .project-card {
    padding: 20px;
  }
}
