

/* =========================================================
   THEME.CSS – vizuálna identita (DARK THEME)
   Tu DEFINUJEME FARBY a ZÁKLADNÝ LOOK
   ========================================================= */

/* ---------- COLOR SYSTEM ---------- */
:root {
  /* Backgrounds */
  --bg-main: #0b0f14;
  --bg-alt: #101620;
  --bg-card: #141b26;
  --bg-card-hover: #182131;

  /* Text */
  --text-main: #e6eaf0;
  --text-muted: #a5adbb;
  --text-soft: #7f8898;

  /* Accent */
  --accent: #4fd1c5;          /* tyrkys – tech / trust */
  --accent-strong: #38b2ac;
  --accent-soft: rgba(79, 209, 197, 0.15);

  /* Borders */
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Status */
  --success: #22c55e;
  --warning: #facc15;
  --danger: #ef4444;

  /* Radius + shadow (SaaS / glass) */
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-soft: 0 10px 34px rgba(0,0,0,0.38);
  --shadow-card: 0 14px 46px rgba(0,0,0,0.46);

  /* Glass surfaces */
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-strong: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.10);
}

/* ---------- GLOBAL ---------- */
body {
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(79, 209, 197, 0.14), transparent 55%),
    radial-gradient(760px 520px at 82% 12%, rgba(56, 178, 172, 0.10), transparent 60%),
    radial-gradient(900px 520px at 50% 110%, rgba(79, 209, 197, 0.06), transparent 60%),
    var(--bg-main);
  color: var(--text-main);
}

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

a:hover {
  color: var(--accent);
}

/* ---------- SECTIONS ---------- */
.section {
  background: transparent;
}

.section-alt {
  background: var(--bg-alt);
}

/* ---------- TYPO HELPERS ---------- */
.muted {
  color: var(--text-muted);
  opacity: 1;
}

.micro {
  color: var(--text-soft);
}

/* ---------- CARDS / PANELS ---------- */
.card,
.panel,
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card:hover,
.panel:hover,
.price-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

/* ---------- APP (INTERNAL SYSTEM) SURFACES ---------- */
.app-card {
  background: linear-gradient(180deg, var(--glass-bg), rgba(255,255,255,0.03));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.app-card:hover {
  border-color: var(--glass-border);
  box-shadow: var(--shadow-card);
}



.app-topbar,
.app-header {
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

/* ---------- GRID VARIANTS ---------- */
.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- BADGES / PILLS ---------- */
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- CHECKLIST ---------- */
.checklist {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.checklist li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-main);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ---------- BRAND ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 700;
}

/* ---------- NAV ---------- */
.site-nav {
  display: none;
  gap: var(--space-5);
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text-main);
}

/* Desktop nav */
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.hero-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- DEVICE MOCK ---------- */
.device-frame {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 16px;
  border: 1px solid var(--border-soft);
}

.device-top {
  height: 14px;
  width: 120px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--border-soft);
}

.device-screen {
  background: var(--bg-main);
  border-radius: 18px;
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.shot {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--border-soft);
}

.shot-title {
  font-weight: 600;
}

.shot-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* =========================================================
   RESPONSIVE – THEME (MOBILE + TABLET)
   Only visual scaling (colors unchanged)
   ========================================================= */

/* ---------- TABLET (<= 1024px) ---------- */
@media (max-width: 1024px) {
  .header-inner {
    height: 64px;
  }

  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .hero-stats {
    gap: var(--space-5);
  }
}

/* ---------- MOBILE / SMALL TABLET (<= 900px) ---------- */
@media (max-width: 900px) {
  /* Header becomes compact */
  .header-inner {
    height: 60px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 0.9rem;
  }

  /* Nav hidden by default on mobile (kept for JS toggle if needed) */
  .site-nav {
    display: none;
  }

  .hero-grid {
    gap: var(--space-7);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* ---------- MOBILE (<= 768px) ---------- */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .device-frame {
    border-radius: 22px;
  }
}

/* ---------- SMALL MOBILE (<= 480px) ---------- */
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .hero-stats {
    gap: var(--space-3);
  }

  .stat-num {
    font-size: 1.1rem;
  }
}

/*
====================================================
RESPONSIVE – THEME (MOBILE + TABLET)
Only visual scaling (colors unchanged)
====================================================
*/




/* -------- MOBILE (<= 640px) -------- */
@media (max-width: 640px) {
  .container { padding-left: 14px; padding-right: 14px; }

  h1 { font-size: 22px; line-height: 1.15; }
  h2 { font-size: 18px; line-height: 1.2; }

  .app-card { padding: var(--space-4); }

  /* Buttons compact */
  .btn { padding: 9px 11px; border-radius: 12px; font-size: 14px; }
  .btn.btn-sm, .btn.btn-ghost.btn-sm { padding: 8px 10px; border-radius: 12px; font-size: 13px; }

  /* Filter/action buttons inside mobile filter blocks */
  .filters .btn,
  .filter-row .btn,
  .toolbar .btn,
  .table-toolbar .btn {
    padding: 8px 10px;
    min-height: 40px;
    font-size: 13px;
  }

  /* Toolbars/filters: stack */
  .filters, .filter-row, .toolbar, .table-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filters input, .filters select,
  .filter-row input, .filter-row select,
  .toolbar input, .toolbar select,
  .table-toolbar input, .table-toolbar select {
    height: 40px;
  }

  /* Tables: compact + Actions narrow */
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 10px; }

  .table th:last-child,
  .table td:last-child {
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    text-align: right;
    white-space: nowrap;
  }

  /* If actions are multiple icons inside last cell */
  .table td:last-child {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
  }

  .table td:last-child .icon-btn,
  .table td:last-child button,
  .table td:last-child a {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  /* Actions: hide text label on mobile, keep icon-only */
  .table .btn-text { display: none; }

  /* Badges smaller */
  .badge { font-size: 12px; padding: 6px 10px; border-radius: 999px; }
}

/* Extra small phones */
@media (max-width: 420px) {
  .table th, .table td { padding: 9px 8px; }

  .table th:last-child,
  .table td:last-child {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
  }

  .table td:last-child .icon-btn,
  .table td:last-child button,
  .table td:last-child a {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
}
