/* MewaCloud arayüz cilası ve mobil uygulama katmanı */
:root {
  --ink-1: #f4f8ff;
  --ink-2: #c3d3ec;
  --radius-lg: 20px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(2, 10, 26, .9);
  --shadow-float: 0 30px 70px -30px rgba(2, 10, 26, .95);
  --bottom-nav-height: 0px;
}

body {
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(14, 165, 233, .1), transparent 70%),
    radial-gradient(900px 480px at 2% 4%, rgba(45, 212, 191, .07), transparent 70%),
    var(--navy);
  padding-bottom: var(--bottom-nav-height);
}

::selection { background: rgba(45, 212, 191, .3); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

h1, h2 { text-wrap: balance; }
.hero-lede, .page-hero p, .detail-lede { text-wrap: pretty; }

/* Üst bar: cam etkisi ve kaydırmada gölge */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(9, 23, 50, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow .25s, background .25s, border-color .25s;
}
.site-header.is-scrolled {
  background: rgba(8, 20, 44, .92);
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .95);
}
.main-nav > a:not(.button) { position: relative; font-weight: 600; }
.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--turquoise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav > a:not(.button):hover::after,
.main-nav > a.is-current::after { transform: scaleX(1); }
.main-nav > a.is-current { color: var(--white); }
.menu-toggle { transition: background .2s, border-color .2s; }
.menu-toggle:hover { border-color: rgba(45, 212, 191, .45); }

/* Butonlar */
.button {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #5ce6d2, #2dd4bf 48%, #14b8a6);
  box-shadow: 0 14px 30px -18px rgba(45, 212, 191, .9);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.button:hover { filter: brightness(1.05); box-shadow: 0 18px 36px -18px rgba(45, 212, 191, .95); }
.button:active { transform: translateY(1px) scale(.995); }
.button-outline, .button-quiet { box-shadow: none; background-image: none; }
.button-outline { backdrop-filter: blur(6px); }

/* Kartlar */
.role-card, .listing-card, .stat-card, .auth-card, .form-card,
.dashboard-item, .request-row, .detail-stats, .request-card {
  box-shadow: var(--shadow-card);
}
.listing-card { border-radius: var(--radius-lg); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.listing-card:hover { box-shadow: var(--shadow-float); }
.listing-card h3 a { transition: color .18s; }
.listing-card:hover h3 a { color: var(--turquoise); }
.role-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .55), transparent);
}
.role-card-merchant::before { background: linear-gradient(90deg, transparent, rgba(14, 165, 233, .55), transparent); }
.stat-card { border-radius: 16px; }
.stat-card strong { background: linear-gradient(135deg, #ffffff, #b9e9e2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-highlight strong { background: linear-gradient(135deg, #7df0de, #2dd4bf); -webkit-background-clip: text; background-clip: text; }

/* Hero */
.hero h1 span {
  background: linear-gradient(120deg, #5eead4, #2dd4bf 40%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-mark { animation: mewa-float 7s ease-in-out infinite; }
.floating-card { animation: mewa-float 9s ease-in-out infinite; }
.floating-card-bottom { animation-delay: -4s; }
@keyframes mewa-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Girişe göre yumuşak açılma */
html.js-reveal .reveal { opacity: 0; translate: 0 18px; transition: opacity .55s ease, translate .55s ease; }
html.js-reveal .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js-reveal .reveal { opacity: 1; translate: 0 0; }
  html { scroll-behavior: auto; }
}

/* Formlar */
input, select, textarea {
  border-radius: 12px;
  background: rgba(7, 19, 42, .85);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:hover, select:hover, textarea:hover { border-color: rgba(178, 203, 239, .38); }
.filter-panel { border-radius: 18px; box-shadow: var(--shadow-card); backdrop-filter: blur(10px); }
.feature-checkboxes label { cursor: pointer; transition: border-color .18s, color .18s, background .18s; }
.feature-checkboxes label:hover { border-color: rgba(45, 212, 191, .4); color: var(--white); }
.feature-checkboxes label:has(input:checked) {
  border-color: rgba(45, 212, 191, .55);
  background: rgba(45, 212, 191, .1);
  color: var(--white);
}

/* Rol seçimi: segment düğmeleri */
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-choice label {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 26, 54, .75);
  cursor: pointer;
  font-weight: 700;
  transition: border-color .18s, background .18s, transform .18s;
}
.role-choice label:hover { transform: translateY(-1px); border-color: rgba(45, 212, 191, .4); }
.role-choice label:has(input:checked) { border-color: var(--turquoise); background: rgba(45, 212, 191, .12); }
.role-choice input { position: absolute; opacity: 0; pointer-events: none; }
.role-choice small { color: var(--muted); font-size: .74rem; font-weight: 500; }

/* Flash mesajları */
.flash { box-shadow: var(--shadow-card); animation: mewa-flash-in .35s ease; }
@keyframes mewa-flash-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

/* Mobil alt menü (uygulama hissi) */
.tab-bar { display: none; }
.sticky-cta { display: none; }

/* Uygulamayı yükle çağrısı */
.install-banner {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .12), rgba(14, 165, 233, .08));
}
.install-banner.is-ready { display: flex; }
.install-banner img { width: 38px; height: 38px; border-radius: 10px; }
.install-banner div { flex: 1; min-width: 0; }
.install-banner strong { display: block; font-size: .92rem; }
.install-banner span { color: var(--muted); font-size: .78rem; }

@media (max-width: 650px) {
  :root { --bottom-nav-height: calc(64px + env(safe-area-inset-bottom, 0px)); }

  h1 { letter-spacing: -.03em; }
  .button { min-height: 50px; border-radius: 14px; }
  .button-small { min-height: 40px; }

  .tab-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(8, 20, 44, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .tab-bar a, .tab-bar button {
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 6px 2px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--muted);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .tab-bar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tab-bar .is-current { color: var(--turquoise); }
  .tab-bar form { margin: 0; display: grid; }

  .listing-card { min-height: unset; }
  .detail-stats { border-radius: 16px; }

  /* Mobilde talep formu için sabit eylem çubuğu */
  .sticky-cta {
    position: fixed;
    right: 0;
    bottom: var(--bottom-nav-height);
    left: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: rgba(10, 25, 52, .96);
    backdrop-filter: blur(14px);
  }
  .sticky-cta div { flex: 1; min-width: 0; font-size: .74rem; color: var(--muted); }
  .sticky-cta strong { display: block; color: var(--white); font-size: .95rem; }
  .sticky-cta .button { min-height: 46px; }
  .has-sticky-cta { padding-bottom: 76px; }
}

@media (display-mode: standalone) {
  .site-header { border-bottom-color: rgba(194, 215, 248, .1); }
}
