/* Hub: domi29 stílus, új elrendezés */

:root {
  --bg: #060608;
  --surface: rgba(12, 12, 16, 0.97);
  --surface-hover: rgba(20, 20, 28, 0.97);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #f0f0f4;
  --text-secondary: #8b8b9e;
  --text-muted: #52526a;
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f97316;
  --purple: #a855f7;
  --red: #ef4444;
  --yellow: #eab308;
  --dot-red: #ff5f57;
  --dot-yellow: #ffbd2e;
  --dot-green: #28c840;
  --font-mono: "Space Mono", monospace;
  --font-sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #ffffff1a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff3;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg);
}

header[aria-label="Fő navigáció"] {
  overflow: visible;
}

/* Háttér, link oldallal megegyező */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 45% at 15% 20%,
      rgba(59, 130, 246, 0.12),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 85% 75%,
      rgba(34, 197, 94, 0.07),
      transparent 70%
    );
}

.site-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-home:hover .site-home__sub {
  color: var(--text-primary);
}

.site-home:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-home__logo {
  flex-shrink: 0;
  border-radius: 8px;
}

.site-home__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-home__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.site-home__sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Header */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.hub-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 2rem);
}

.hub-header__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.hub-header__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Page */
.hub-page {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem)
    clamp(5.5rem, 12vh, 7rem);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.hub-page.is-ready {
  opacity: 1;
  transform: translateY(0);
}

/* Unified panel */
.hub-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.hub-panel__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.hub-panel__dots {
  display: flex;
  gap: 7px;
}

.hub-panel__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hub-panel__dots span:nth-child(1) {
  background: var(--dot-red);
}
.hub-panel__dots span:nth-child(2) {
  background: var(--dot-yellow);
}
.hub-panel__dots span:nth-child(3) {
  background: var(--dot-green);
}

.hub-panel__path {
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.6vw, 0.78rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0;
}

/* Intro column */
.hub-intro {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  font-family: var(--font-mono);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hub-intro__cmd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  margin-bottom: 1.25rem;
}

.hub-intro__cmd--foot {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1.5rem;
}

.hub-intro__prompt {
  color: var(--green);
  font-weight: 700;
}

.hub-intro__typed {
  color: var(--text-primary);
}

.hub-intro__title {
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hub-intro__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hub-intro__text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 34ch;
}

.hub-cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--text-primary);
  vertical-align: middle;
  animation: hub-blink 1s step-end infinite;
}

@keyframes hub-blink {
  50% {
    opacity: 0;
  }
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.badge--teacher {
  color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  background: color-mix(in srgb, var(--orange) 7%, transparent);
}

.badge--desk {
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* Select column */
.hub-select {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(6, 6, 8, 0.35);
}

.hub-select__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.hub-select__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  font-weight: 400;
}

.hub-select__path {
  color: var(--green);
  font-weight: 700;
}

.hub-select__count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.hub-select__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.hub-select__hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 0.25rem;
}

.hub-select__hint kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  font-family: inherit;
  font-size: 0.6rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Pick rows */
.pick {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem 1rem 1rem 0;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 16, 0.85);
  overflow: hidden;
  outline: none;
  transition:
    border-color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.pick:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pick:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pick .spotlight-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  border-radius: inherit;
}

.pick:hover .spotlight-card__glow,
.pick:focus-visible .spotlight-card__glow {
  opacity: 0.65;
}

.pick__stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pick-accent);
  opacity: 0.85;
}

.pick--orange {
  --pick-accent: var(--orange);
}

.pick--blue {
  --pick-accent: var(--blue);
}

.pick--purple {
  --pick-accent: var(--purple);
}

.pick--featured {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(
    135deg,
    rgba(88, 28, 135, 0.22) 0%,
    rgba(12, 12, 16, 0.92) 42%
  );
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.15),
    0 12px 32px rgba(88, 28, 135, 0.25);
  animation: pick-beta-glow 3s ease-in-out infinite;
}

.pick--featured:hover {
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 16px 40px rgba(88, 28, 135, 0.4);
}

.pick__beta-ribbon {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f5f3ff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid rgba(233, 213, 255, 0.45);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
  animation: pick-beta-ribbon-pulse 2.2s ease-in-out infinite;
}

.pick__beta-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.1rem 0 0;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #e9d5ff;
  background: rgba(88, 28, 135, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 6px;
}

.pick__beta-notice__icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #fbbf24;
}

.pick__ver-tag--beta {
  max-width: none;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: #f5f3ff;
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(124, 58, 237, 0.35);
  animation: pick-beta-tag-pulse 2.4s ease-in-out infinite;
}

@keyframes pick-beta-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(168, 85, 247, 0.15),
      0 12px 32px rgba(88, 28, 135, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(192, 132, 252, 0.35),
      0 14px 36px rgba(124, 58, 237, 0.35);
  }
}

@keyframes pick-beta-ribbon-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

@keyframes pick-beta-tag-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(168, 85, 247, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
  }
}

.pick__ver {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding-left: 0.75rem;
  text-align: center;
}

.pick__ver-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pick-accent);
}

.pick__ver-tag {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pick__ver-tag--legacy,
.pick__ver-tag--recommended,
.pick__ver-tag--beta {
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  max-width: 4.5rem;
  text-align: center;
}

.pick__ver-tag--legacy {
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
}

.pick__ver-tag--recommended {
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.pick__ver-tag--beta {
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
}

.pick__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.15rem 0;
  min-width: 0;
}

.pick__desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pick__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin-top: 0.15rem;
}

.pick__features li {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pick__go {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding-right: 0.5rem;
  color: var(--pick-accent);
}

.pick__go-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  opacity: 0.7;
}

.pick__go-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.pick:hover .pick__go-arrow {
  transform: translateX(3px);
}

/* Footer */
.hub-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(0.85rem, 2vw, 1.25rem) 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.4vw, 0.72rem);
  letter-spacing: 1px;
}

.hub-footer__key {
  color: var(--text-secondary);
}

.hub-footer strong {
  color: var(--green);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 800px) {
  .hub-panel__body {
    grid-template-columns: 1fr;
  }

  .hub-intro {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hub-intro__cmd--foot {
    display: none;
  }

  .pick {
    grid-template-columns: auto 1fr;
  }

  .pick__go {
    display: none;
  }
}

@media (max-width: 520px) {
  .hub-header__meta {
    display: none;
  }

  .pick__ver {
    min-width: 3.5rem;
  }

  .pick__features {
    display: none;
  }

  .pick--featured .pick__body {
    padding-right: 2.75rem;
  }

  .pick__beta-ribbon {
    top: 8px;
    right: 8px;
    font-size: 0.52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hub-page,
  .pick,
  .pick__go-arrow {
    transition: none;
  }

  .hub-page {
    opacity: 1;
    transform: none;
  }

  .hub-cursor {
    animation: none;
  }

  .pick:hover {
    transform: none;
  }

  .pick--featured,
  .pick__beta-ribbon,
  .pick__ver-tag--beta {
    animation: none;
  }
}
