/* /public_html/assets/pb19-ui.css */
/* PB19 UI atoms — SINGLE SOURCE OF TRUTH */

@charset "UTF-8";

/* ✅ FONT IMPORT MUST BE AT TOP */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap');

:root{
  /* ✅ Global font (all pages) */
  --pb19-font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  /* Unified control typography */
  --pb19-ui-control-fs: 14px;
  --pb19-ui-control-fw: 800;
  --pb19-ui-control-ls: 0.2px;


  --pb19-text:#eaf2ff;
  --pb19-muted: rgba(255,255,255,.72);
  --pb19-dim: rgba(255,255,255,.55);

  --pb19-line: rgba(255,255,255,.12);
  --pb19-line2: rgba(255,255,255,.18);

  --pb19-danger: #ff5a6b;
  --pb19-primary: #57a4ff;

  --pb19-fs-h1: 20px;
  --pb19-fs-body: 14px;
  --pb19-fs-foot: 12px;
  --pb19-fs-pill: var(--pb19-ui-control-fs);

  --pb19-pill-h: 44px;   /* ✅ topbar ile hizalı (hamburger 44) */
  --pb19-btn-h: 40px;

  --pb19-inp-pad-y: 12px;
  --pb19-inp-pad-x: 12px;

  --pb19-radius-sm: 16px;

  /* Blackhole sizing */
  --pb19-bh: 34px;
  --pb19-bh-gap: 12px;
}

@media (min-width: 1100px){
  :root{
    --pb19-fs-h1: 21px;
    --pb19-fs-body: 15px;
  }
}

html, body{
  font-family: var(--pb19-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;

  /* Mobile landscape text autosize fix */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ✅ FORM CONTROLS INHERIT TYPOGRAPHY */
button, input, select, textarea{
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}


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

body{
  -webkit-user-select:none;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select,
.pb19-input, .pb19-textarea,
pre, code, .pb19-pre{
  -webkit-user-select:text;
  user-select:text;
}

button, a{ -webkit-user-select:none; user-select:none; }
img{ user-select:none; -webkit-user-drag:none; }

/* ✅ MONO (SHA/JSON) — monospace kalsın */
pre, code, .pb19-pre, .pb19-mono, .portal-mono, .admin-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ===== Text ===== */
.pb19-h1{
  font-size: var(--pb19-fs-h1);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0;

  /* default davranış: tek satır + kısalt */
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.pb19-p{
  font-size: var(--pb19-fs-body);
  line-height: 1.65;
  color: var(--pb19-muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.pb19-muted{ color: var(--pb19-muted); }
.pb19-dim{ color: var(--pb19-dim); }
.pb19-center{ text-align:center; }

.pb19-card.pb19-center .pb19-h1,
.pb19-card.pb19-center .pb19-p{
  max-width: 56ch;
  margin-inline:auto;
}

/* ===== Pills ===== */
.pb19-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  height: var(--pb19-pill-h);
  min-height: 44px;          /* ✅ tap-target */
  min-width: 52px;
  padding: 0 16px;
  border-radius: 999px;

  background: rgba(255,255,255,.04);
  border: 1px solid var(--pb19-line);
  color: var(--pb19-text);

  cursor: pointer;
  white-space:nowrap;
  text-decoration:none;
  touch-action: manipulation;

  font-size: var(--pb19-ui-control-fs);
  line-height: 1;
}
.pb19-pill:hover{
  filter: brightness(1.08);
  border-color: var(--pb19-line2);
}
.pb19-pill.is-active{
  background: rgba(87,164,255,.12);
  border-color: rgba(87,164,255,.45);
  box-shadow: 0 0 0 2px rgba(87,164,255,.10) inset;
  cursor: default;
  text-decoration:none;
}

/* Home: lang button hitbox + layer */
.pb19-home #langBtn{
  position:relative;
  z-index: 6000;         /* ✅ her şeyin üstünde */
}
.pb19-home #langLabel{ pointer-events:none; } /* ✅ tık her yerden butona gitsin */

/* ===== Buttons ===== */
/* ✅ PB19 CONTROL TYPOGRAPHY STANDARD */
.pb19-btn, .pb19-pill, .pb19-fab-btn, .portal-pill, .portal-wbtn, .file-btn{
  font-size: var(--pb19-ui-control-fs);
  font-weight: var(--pb19-ui-control-fw);
  letter-spacing: var(--pb19-ui-control-ls);
}

.pb19-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  height: var(--pb19-btn-h);
  padding: 0 16px;
  border-radius: var(--pb19-radius-sm);

  border: 1px solid var(--pb19-line);
  background: rgba(255,255,255,.04);
  color: var(--pb19-text);

  cursor:pointer;
  font-weight: var(--pb19-ui-control-fw);
  font-size: var(--pb19-ui-control-fs);
  line-height: 1;

  white-space:nowrap;
  touch-action: manipulation;
}
.pb19-btn:hover{
  filter: brightness(1.08);
  border-color: var(--pb19-line2);
  text-decoration:none;
}
.pb19-btn.primary{
  background: rgba(87,164,255,.12);
  border-color: rgba(87,164,255,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.28), 0 0 0 2px rgba(87,164,255,.10) inset;
}
.pb19-btn.danger{
  background: rgba(255,90,107,.12);
  border-color: rgba(255,90,107,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.28), 0 0 0 2px rgba(255,90,107,.10) inset;
}
.pb19-btn[disabled],
.pb19-pill[disabled]{
  opacity:.45;
  cursor: default;
  pointer-events:none;
}

/* ===== Form ===== */
.pb19-input,
.pb19-textarea{
  width:100%;
  border-radius: var(--pb19-radius-sm);
  border: 1px solid var(--pb19-line);
  background: rgba(0,0,0,.18);
  color: var(--pb19-text);

  padding: var(--pb19-inp-pad-y) var(--pb19-inp-pad-x);
  outline:none;

  font-size: 16px;
  line-height: 1.25;
  -webkit-text-size-adjust: 100%;
}
.pb19-textarea{
  resize:none;
  overflow:hidden;
}
.pb19-input:focus,
.pb19-textarea:focus{
  border-color: rgba(87,164,255,.55);
  box-shadow: 0 0 0 2px rgba(87,164,255,.12);
}

/* ===== Hamburger (pb19-fab.js ile topbar’a taşınıyor) ===== */
.pb19-fab{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  z-index: 6500; /* ✅ topbar üstü */
}
.pb19-fab-btn{
  width: 44px;
  height: 44px;
  border-radius: var(--pb19-radius-sm);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,10,12,0.55);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  touch-action: manipulation;
}
.pb19-fab-panel{
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 180px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(9,14,24,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  display:none;
  z-index: 7000;
}
.pb19-fab-panel a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  white-space:nowrap;
}
.pb19-fab-panel a:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  text-decoration:none;
}
.pb19-fab-panel a[aria-current="page"]{
  opacity:.72;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.pb19-fab-panel.open{ display:block; }

/* SECRET "BLACKHOLE" LINK (home logo / contact title triggers) */
.pb19-blackhole{
  position:absolute;
  left: calc(100% + var(--pb19-bh-gap));
  top: 50%;
  transform: translateY(-50%); /* ✅ sabit transform, zıplama yok */
  width: var(--pb19-bh);
  height: var(--pb19-bh);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), rgba(0,0,0,.55) 55%, rgba(0,0,0,.92));
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  display:block;
  text-decoration:none;
  z-index: 3000;
  transition: opacity .15s ease, filter .15s ease;
}
.pb19-blackhole::before,
.pb19-blackhole::after{
  pointer-events:none;
}
.pb19-blackhole.is-on{
  opacity:1;
  pointer-events:auto;
}
.pb19-blackhole.is-on:hover{ filter: brightness(1.08); }
.pb19-blackhole::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:999px;
  background:
    conic-gradient(from 180deg,
      rgba(86,164,255,.35),
      rgba(0,255,180,.18),
      rgba(86,164,255,.35));
  filter: blur(9px);
  opacity:.65;
  animation: pb19_spin 2.8s linear infinite;
}
.pb19-blackhole::after{
  content:"";
  position:absolute;
  inset:6px;
  border-radius:999px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.16), rgba(0,0,0,.92) 70%);
  opacity:.90;
}
@keyframes pb19_spin{ from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

@media (max-width:420px){
  :root{ --pb19-bh: 28px; --pb19-bh-gap: 10px; }
  .pb19-blackhole::after{ inset:5px; }
}

/* =========================================================
   HOME: tek satır başlık + otomatik küçülme (tablet/landscape fix)
   ========================================================= */
.pb19-home .pb19-br{
  display:inline-block;
  width: .38em;
  height: 0;
}

.pb19-home .home-title{
  text-overflow: clip !important;
  white-space: nowrap !important;
  overflow: hidden !important;

  /* vw değil vmin: landscape’te büyüme yapmaz */
  font-size: clamp(15px, 3.4vmin, 20px);
  line-height: 1.15;
}
.pb19-home .home-title.is-tight{
  font-size: clamp(14px, 3.0vmin, 18px);
  letter-spacing: -0.15px;
}
.pb19-home .home-title.is-tight2{
  font-size: clamp(13px, 2.7vmin, 16px);
  letter-spacing: -0.20px;
}

.pb19-home .home-desc{
  font-size: clamp(12px, 2.2vmin, 14px);
  line-height: 1.55;
}

/* Home portrait: biraz sıkı ama tek satır kalsın */
@media (max-width: 900px) and (orientation:portrait){
  .pb19-home{
    --pb19-fs-pill: 12px;
    --pb19-btn-h: 19px;
  }
}
/* ================================
   PB19 ADMIN — PHONE LANDSCAPE FIX (FINAL)
   - body class şart değil
   - radius doğru değişkenle küçülür
   - buton yazıları sığar
   ================================ */

@media (orientation: landscape) and (max-height: 520px){

  /* global küçük ekran: tombiklik + padding azalt */
  :root{
    --pb19-radius-sm: 12px;   /* asıl kullanılan radius bu */
    --pb19-btn-h: 36px;
    --pb19-pill-h: 40px;
    --pb19-fs-pill: 12px;
    --pb19-inp-pad-y: 10px;
    --pb19-inp-pad-x: 10px;
  }

  /* 2 kutu yan yana (eşit) */
  .admin-split{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  /* kutular daha kompakt + az yuvarlak */
  .admin-box{
    padding: 12px !important;
    border-radius: 14px !important;
  }

  /* Token satırı: input taşmasın */
  .row-token{
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
  }
  .row-token .pb19-input{ min-width: 0 !important; }

  /* Üstteki 3’lü satır (Dosya Seç / Üret / —) daha sıkı */
  .row3{
    gap: 10px !important;
  }
  .row3 > *{ min-width: 0 !important; }

  /* Buton yazıları sığsın: küçült + ellipsis */
  .pb19-btn,
  .file-btn{
    font-size: 12px !important;
    padding: 0 10px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Aksiyonlar: 3 + 3 net grid */
  .actions{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .actions .pb19-btn{ width: 100% !important; }

  /* Sağ kutu: sonuç yukarıda, butonlar aşağıda */
  .admin-bottom{
    display: flex !important;
    flex-direction: column !important;
  }
  .result-wrap{
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  /* JSON PREVIEW — force visible when show-json */
body.pb19-admin #jsonPreview{
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

 body.pb19-admin.show-json #jsonPreview{
   display: block !important;
 }
 
}
 
 @media (max-width: 520px){
   :root{
     --pb19-ui-control-fs: 13px;
   }
 }


@media (max-width: 380px){
  :root{
    --pb19-ui-control-fs: 12px;
  }
}

