/* =========================================
   1. Reset és Változók
   ========================================= */
:root {
  --bg-dark: #080808;
  --term-bg: rgba(13, 13, 13, 0.95);

  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-orange: #ffa500;
  --accent-orange-dim: #cc8b00;

  --text-main: #ffffff;
  --text-dim: #888888;

  --font-mono: "Space Mono", monospace;
  --font-sans: "Inter", sans-serif;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   2. Layout & Organikus Háttér
   ========================================= */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  filter: blur(80px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: move-blobs 20s infinite alternate var(--ease-smooth);
}

.b1 {
  width: clamp(200px, 40vw, 400px);
  height: clamp(200px, 40vw, 400px);
  background: var(--accent-green);
  top: -10%;
  left: -10%;
}

.b2 {
  width: clamp(250px, 50vw, 500px);
  height: clamp(250px, 50vw, 500px);
  background: var(--accent-blue);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes move-blobs {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(10vw, 5vh) scale(1.15);
  }
}

/* =========================================
   3. Komponensek: Terminál
   ========================================= */
.terminal {
  width: 95vw;
  max-width: 750px; /* Megnövelve a rács miatt */
  background: var(--term-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.controls {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  font-family: var(--font-mono);
  min-height: 380px;
}

.line {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.prompt {
  color: var(--accent-green);
}

.dev-name {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  background: linear-gradient(to right, #ffffff, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* =========================================
   4. Navigáció: Grid Elrendezés
   ========================================= */
.links {
  display: grid;
  grid-template-columns: 1fr; /* Mobilon egymás alatt */
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 650px) {
  .links {
    grid-template-columns: repeat(2, 1fr); /* Tablet/Desktopon 2 oszlop */
    column-gap: 2rem;
    row-gap: 1.5rem;
  }
}

.link-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Link stílusok */
.link-item,
.link-item-u,
.link-item-s,
.link-item-o {
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s var(--ease-smooth);
  width: fit-content;
}

/* Nagyobb szöveg a generátoroknak */
.main-link a {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Kisebb szöveg az alsó linkeknek */
.sub-link a {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  opacity: 0.8;
}

.link-item {
  color: var(--accent-blue);
}
.link-item-u {
  color: var(--accent-orange);
}
.link-item-s {
  color: var(--accent-green);
}
.link-item-o {
  color: var(--accent-orange-dim);
}

.link-item:hover,
.link-item-u:hover,
.link-item-s:hover,
.link-item-o:hover {
  color: #fff;
  opacity: 1;
  filter: drop-shadow(0 0 8px currentColor);
}

/* BÉTA Badge */
.badge {
  position: absolute;
  top: -10px;
  right: 54px;
  background: var(--accent-blue);
  color: white;
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* =========================================
   5. Animációk & Stats
   ========================================= */
.cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.system-stats {
  position: fixed;
  bottom: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .badge,
  .hidden {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
