/* ===========================
   Alap beállítások, színek
   =========================== */

:root {
  --bg-body: #020617;
  --bg-elevated: #020617;
  --bg-elevated-soft: #020617;
  --bg-hero: radial-gradient(circle at top, #020617, #020617 55%, #000 100%);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.2);
  --accent-strong: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --shadow-small: 0 8px 20px rgba(15, 23, 42, 0.7);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Görgetősáv – kicsi, diszkrét */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #111827;
  border-radius: 4px;
}

/* ===========================
   Layouthoz általános elemek
   =========================== */

.am-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.am-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

main.am-main {
  flex: 1;
}

/* Szöveg, linkek */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: #f9fafb;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ===========================
   NAVBAR
   =========================== */

.am-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.3);
}

.am-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

/* Logo */

.am-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, #4ade80, #0ea5e9);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.am-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #f9fafb;
}

/* Menü középen */

.am-nav-center {
  display: flex;
  align-items: center;
  gap: 24px;
}

.am-nav-link {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}

.am-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
  transition: width 0.18s ease;
}

.am-nav-link:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

.am-nav-link:hover::after,
.am-nav-link--active::after {
  width: 100%;
}

.am-nav-link--active {
  color: #f9fafb;
}

/* Jobb oldal – gombok */

.am-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #020617;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: #e5e7eb;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.am-pill:hover {
  border-color: #4b5563;
  transform: translateY(-1px);
  box-shadow: var(--shadow-small);
}

.am-pill--primary {
  background: #0f172a;
}

.am-pill--icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

/* Mobil menü – most csak annyi, hogy középső menü elrejthető */

@media (max-width: 768px) {
  .am-nav-center {
    display: none;
  }
}

/* ===========================
   HERO (fő rész)
   =========================== */

.am-hero {
  position: relative;
  padding: 70px 0 80px;
  background: radial-gradient(circle at top, #020617, #000 70%);
  overflow: hidden;
}

/* „csillagos ég” */

.am-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(2px 2px at 20% 20%, rgba(148, 163, 184, 0.8), transparent),
    radial-gradient(2px 2px at 70% 40%, rgba(148, 163, 184, 0.8), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(148, 163, 184, 0.6), transparent),
    radial-gradient(1px 1px at 80% 70%, rgba(148, 163, 184, 0.5), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.am-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

/* felső badge */

.am-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5f5;
  font-size: 12px;
  margin-bottom: 22px;
}

/* cím + szöveg */

.am-hero-title {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.am-hero-title span {
  color: var(--accent-strong);
}

.am-hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* keresősáv */

.am-hero-search {
  max-width: 560px;
  margin: 0 auto 28px;
  background: #020617;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  padding: 4px 4px 4px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-hero-search-icon {
  font-size: 14px;
}

.am-hero-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.am-hero-input::placeholder {
  color: #6b7280;
}

.am-hero-btn-search {
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14px;
  background: var(--accent);
  color: #f9fafb;
  cursor: pointer;
  transition: filter 0.18s, transform 0.15s, box-shadow 0.15s;
}

.am-hero-btn-search:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-small);
}

/* imádott nagy kék gombok */

.am-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* általános gombok */

.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.am-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.am-btn--primary {
  background: var(--accent);
  color: #f9fafb;
}

.am-btn--secondary {
  background: #0f172a;
  border-color: var(--border-subtle);
  color: #e5e7eb;
}

.am-btn--ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

/* mobil hero spacing */

@media (max-width: 640px) {
  .am-hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ===========================
   „About us” + feature kártyák
   =========================== */

.am-section {
  padding: 40px 0 60px;
  background: var(--bg-body);
}

.am-section--border-top {
  border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.am-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
}

.am-about-text p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.am-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.am-card {
  border-radius: 18px;
  background: #020617;
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.7);
}

.am-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.am-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* mobil: alatt egymás alatt legyenek */

@media (max-width: 900px) {
  .am-about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .am-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   Termék lista / grid
   =========================== */

.am-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.am-product-card {
  background: #020617;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.am-product-title {
  font-size: 14px;
  font-weight: 600;
}

.am-product-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.am-product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-strong);
}

.am-product-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.am-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5f5;
}

/* reszponzív rács */

@media (max-width: 900px) {
  .am-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .am-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   Táblázatok – pl. rendelés lista
   =========================== */

.am-table-wrapper {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #020617;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.7);
}

.am-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.am-table thead {
  background: #020617;
}

.am-table th,
.am-table td {
  padding: 10px 14px;
  text-align: left;
}

.am-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  border-bottom: 1px solid #111827;
}

.am-table tbody tr:nth-child(odd) {
  background: #020617;
}

.am-table tbody tr:nth-child(even) {
  background: #020617;
}

.am-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* ===========================
   Form elemek
   =========================== */

.am-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .am-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.am-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.am-label {
  font-size: 13px;
  color: var(--text-muted);
}

.am-input,
.am-select,
.am-textarea {
  border-radius: 12px;
  background: #020617;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.am-input::placeholder,
.am-textarea::placeholder {
  color: #6b7280;
}

.am-input:focus,
.am-select:focus,
.am-textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.am-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===========================
   Alerts / státusz dobozok
   =========================== */

.am-alert {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.am-alert--success {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #bbf7d0;
}

.am-alert--danger {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.55);
  color: #fecaca;
}

/* ===========================
   Lábléc
   =========================== */

.am-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  padding: 18px 0 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.am-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Extra spacing a fő tartalom körül, amit a blokkokban használsz */

.am-section-page {
  padding: 30px 0 50px;
}