/* ============================================================
   ColdBoot Portál — portal.coldboot.hu
   A coldboot.hu közös stíluslapjából (css/styles.css) átemelt
   komponensek + portál-specifikus kiegészítések.
   ============================================================ */

/* === RESET / BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', system-ui, sans-serif;
  background: #0A1726;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  animation: pg-in 0.55s ease both;
}
@keyframes pg-in { from { opacity: 0; } to { opacity: 1; } }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #22D3EE; opacity: .78;
}

.wm { display: inline-flex; align-items: baseline; }
.wm-c { font-family: 'Sora', sans-serif; font-weight: 500; color: #22D3EE; letter-spacing: -0.022em; line-height: 1; }
.wm-b { font-family: 'Sora', sans-serif; font-weight: 700; color: #fff;    letter-spacing: -0.022em; line-height: 1; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center;
  padding: 0 48px;
  background: rgba(10,23,38,.9);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 28px; margin-left: 44px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.46); transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-mode {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px; padding: 4px 10px;
}
.nav-mode.internal { color: #22D3EE; border-color: rgba(34,211,238,.3); }

/* === HERO === */
.pg-hero {
  position: relative; overflow: hidden;
  background: #08172B;
  background-image: radial-gradient(circle, rgba(34,211,238,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 64px 48px 52px;
}
.pg-hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.pg-hero h1 {
  margin-top: 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700; letter-spacing: -0.026em; line-height: 1.12;
  color: #fff; max-width: 580px;
}
.pg-hero-sub {
  margin-top: 12px; font-size: 15px; line-height: 1.72;
  color: rgba(255,255,255,.4); max-width: 520px;
}

/* === SZEKCIÓK === */
.section { padding: 56px 0; }
.sec-hdr { margin-bottom: 28px; }
.sec-hdr .eyebrow { margin-bottom: 10px; }
.sec-hdr h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; letter-spacing: -0.018em; color: #fff;
}

/* === SZOLGÁLTATÁS-KÁRTYÁK === */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  position: relative; overflow: hidden;
  background: #0F1E30;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color .22s, box-shadow .22s;
}
.svc-card:hover {
  border-color: rgba(34,211,238,.22);
  box-shadow: 0 0 36px -8px rgba(34,211,238,.13);
}
.svc-icon {
  width: 44px; height: 44px;
  background: rgba(34,211,238,.07);
  border: 1px solid rgba(34,211,238,.12);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.svc-icon svg { width: 22px; height: 22px; stroke: #22D3EE; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.014em; color: #fff; margin-bottom: 10px; }
.svc-zone {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 400;
  letter-spacing: .04em; color: rgba(34,211,238,.55);
  margin-left: 7px; white-space: nowrap;
}

/* link-sor: domain + IP */
.svc-links { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.svc-links a {
  display: inline-flex; align-items: center; gap: 7px;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: rgba(255,255,255,.55);
  transition: color .18s;
}
.svc-links a:hover { color: #22D3EE; }
.svc-links a::before {
  content: '→'; color: rgba(34,211,238,.5); font-size: 11px;
}
.svc-links .lnk-ip { color: rgba(255,255,255,.34); }

/* lenyitható leírás */
.svc-card details { margin-top: auto; }
.svc-card summary {
  list-style: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .18s;
}
.svc-card summary::-webkit-details-marker { display: none; }
.svc-card summary::after { content: '▾'; font-size: 9px; transition: transform .2s; }
.svc-card details[open] summary::after { transform: rotate(180deg); }
.svc-card summary:hover { color: rgba(34,211,238,.7); }
.svc-card details p {
  margin-top: 10px;
  font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.66;
}

/* címkék */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .04em;
  color: rgba(34,211,238,.55);
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.1);
  border-radius: 5px; padding: 3px 8px;
}
.tag.internal-only {
  color: #fb923c;
  background: rgba(251,146,60,.07);
  border-color: rgba(251,146,60,.18);
}

/* scan-load vonal (live styles.css mintára) */
.svc-card .scanbar {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.85), transparent);
  box-shadow: 0 0 12px rgba(34,211,238,.65);
  opacity: 0; pointer-events: none; z-index: 4;
}
.svc-card.boot .scanbar { animation: scanload .6s ease var(--d, 0s) forwards; }
@keyframes scanload { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* === FOOTER === */
footer {
  background: #08172B;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 32px 48px;
}
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap;
}
.foot-inner span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,.2);
}
.foot-inner a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,.42); transition: color .2s ease;
}
.foot-inner a:hover { color: #22D3EE; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .pg-hero { padding: 48px 20px 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  footer { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .svc-card.boot .scanbar { animation: none; }
}
