/* ==========================================================================
   Z-Hub — katalog karekod sayfası (mobil öncelikli, bağımsız stil)
   ========================================================================== */
:root {
  --navy: #0f294a;
  --navy-dark: #07192f;
  --blue: #0284c7;
  --red: #9f1d22;
  --green: #128c4b;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 14px;
}

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

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

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 60%),
    #f4f7fb;
  -webkit-font-smoothing: antialiased;
}

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

.hub {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}

.hub-header {
  display: flex;
  justify-content: center;
  padding: 18px 0 26px;
}

.hub-logo img {
  display: block;
  width: 220px;
  height: auto;
}

.hub-main {
  flex: 1;
}

.hub-intro {
  text-align: center;
  margin-bottom: 22px;
}

.hub-intro h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.hub-intro p {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Butonlar */
.hub-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  box-shadow: 0 6px 16px -8px rgba(15, 41, 74, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hub-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hub-link:active {
  transform: translateY(0);
}

.hub-link--primary {
  background: var(--blue);
  box-shadow: 0 6px 16px -8px rgba(2, 132, 199, 0.7);
}

.hub-link--red {
  background: var(--red);
  box-shadow: 0 6px 16px -8px rgba(159, 29, 34, 0.7);
}

.hub-link--whatsapp {
  background: var(--green);
  box-shadow: 0 6px 16px -8px rgba(18, 140, 75, 0.7);
}

.hub-link-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.hub-link-icon svg {
  width: 20px;
  height: 20px;
}

.hub-link-label {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.hub-link-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* Kılavuz listesi */
.hub-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

.hub-back svg {
  width: 16px;
  height: 16px;
}

.hub-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hub-file:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.hub-file-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--red);
  background: rgba(159, 29, 34, 0.08);
}

.hub-file-icon svg {
  width: 22px;
  height: 22px;
}

.hub-file-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hub-file-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
}

.hub-file-text small {
  font-size: 0.8rem;
  color: var(--muted);
}

.hub-file-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(2, 132, 199, 0.1);
}

.hub-file-action svg {
  width: 18px;
  height: 18px;
}

.hub-help {
  margin-top: 22px;
}

.hub-help .hub-link-label {
  font-size: 0.9rem;
}

.hub-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Alt bilgi */
.hub-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 32px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hub-footer a {
  font-weight: 700;
  color: var(--navy);
}
