/* Minimal modern UI (dark glass) */
:root{
  --bg1:#1a1440;
  --bg2:#0b2a32;
  --card: rgba(20, 24, 35, .55);
  --card2: rgba(20, 24, 35, .35);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.60);
  --btn1:#6b33ff;
  --btn2:#3d7cff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 700px at 15% 20%, rgba(124,58,237,.45), transparent 55%),
    radial-gradient(900px 700px at 85% 30%, rgba(16,185,129,.25), transparent 55%),
    radial-gradient(700px 600px at 40% 90%, rgba(59,130,246,.20), transparent 60%),
    linear-gradient(120deg, var(--bg1), var(--bg2));
}

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

.wrap{
  width: min(980px, 92vw);
  margin: 36px auto 60px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 16px 18px;
  border:1px solid var(--border);
  background: rgba(12, 14, 20, .45);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 650;
  letter-spacing:.2px;
}

.pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.pill{
  font-size:12px;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

.btn{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn-primary{
  width:100%;
  border:none;
  background: linear-gradient(90deg, var(--btn1), var(--btn2));
  padding: 12px 14px;
  border-radius: 14px;
  color:white;
  font-weight: 700;
  cursor:pointer;
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-ghost{
  width:100%;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.card h2{
  margin:0 0 6px;
  font-size: 22px;
}
.card p{
  margin:0 0 14px;
  color: var(--muted);
  line-height:1.45;
}

.field{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 12px;
  border-radius: 16px;
}
.field-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.field-title{
  font-weight:700;
}
.field-sub{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.badge{
  font-size: 12px;
  color: var(--muted);
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  padding: 4px 10px;
  border-radius: 999px;
}

input[type="text"], input[type="password"], input[type="file"]{
  width:100%;
  color: var(--text);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
}
input::placeholder{ color: rgba(255,255,255,.45); }

.actions{ margin-top: 12px; }
.footer{
  text-align:center;
  color: rgba(255,255,255,.55);
  margin-top: 22px;
  font-size: 13px;
}
.login-card { width: 480px !important; padding: 50px !important; }

.card {
    max-width: 600px !important;
    padding: 35px !important;
}


.card {
    margin-bottom: 40px !important;
}


.history-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.history-btn:hover {
    background: rgba(255,255,255,0.1);
}


.card {
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}


/* Upload kartlarını eşitle */
.upload-card {
    width: 460px !important;
    padding: 30px !important;
    margin: 20px auto !important;
}

/* İç başlık alanı eşit spacing */
.upload-card h2 {
    margin-bottom: 15px;
}


/* Footer satır arası iyileştirme */
.footer-text {
    margin-top: 20px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-text p {
    margin: 4px 0;
}

/* Upload sayfasında video ve fotoğraf kutularını yan yana yap */
.upload-container{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:24px;
    flex-wrap:wrap;
}

/* kart genişliği */
.upload-card{
    width:420px;
}


/* ===== Results layout (process.php) ===== */
.results-wrap{
  width: min(1100px, calc(100% - 40px));
  margin: 40px auto;
}

.results-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 14px;
}

.results-actions a{
  text-decoration:none;
  color: rgba(255,255,255,.9);
  font-weight:600;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.results-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items:start;
}

@media (max-width: 900px){
  .results-grid{ grid-template-columns: 1fr; }
}

.result-card{
  background: rgba(10,15,30,.55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

.json-box{
  max-height: 520px;
  overflow:auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.badge{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}

.kpi-row{ display:grid; grid-template-columns: 1fr; gap:10px; margin-top:12px; }
.kpi .label{ font-size: 12px; opacity:.85; }
.kpi .value{ font-size: 20px; font-weight: 800; margin-top:2px; }
.kpi .bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.06);
}
.kpi .bar span{
  display:block;
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(120,80,255,.95), rgba(80,140,255,.95));
}

.mini-timeline{
  display:flex;
  gap: 3px;
  align-items:flex-end;
  height: 54px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  overflow:hidden;
  margin-top: 8px;
}

.tbar{
  width: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
}

.tbar.on{
  background: linear-gradient(180deg, rgba(255,120,120,.95), rgba(255,80,200,.7));
}

.login-card{
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.login-badge{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:#c7d2fe;
  background: rgba(99,102,241,.14);
  border:1px solid rgba(99,102,241,.28);
}

.login-label{
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 6px;
}

.login-input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color:#fff;
  outline:none;
  box-sizing:border-box;
}

.login-input:focus{
  border-color: rgba(120,80,255,.8);
  box-shadow: 0 0 0 4px rgba(120,80,255,.12);
}

.login-btn{
  width:100%;
  padding:14px;
  border-radius:14px;
  font-weight:700;
  margin-top:8px;
}

.login-alert{
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 80, 120, .12);
  border: 1px solid rgba(255, 100, 140, .28);
  color: #ffd5df;
  font-size: 14px;
}

.password-wrap{
  position: relative;
}

.password-wrap .login-input{
  padding-right: 86px;
}

.show-pass-btn{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn:disabled,
.login-btn.is-loading{
  opacity: .85;
  cursor: not-allowed;
  transform: none;
  filter: saturate(.9);
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  margin: -6px auto 14px;
  max-width: 560px;
  width: 100%;
}

.lang-switcher select{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #fff;
  outline: none;
  cursor: pointer;
}

.lang-switcher select option{
  color: #000;
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  width:100%;
  max-width:560px;
  margin:-6px auto 14px;
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  width:100%;
  max-width:560px;
  margin:-6px auto 14px;
}

.lang-switcher{
  position: relative !important;
  width: 560px !important;
  max-width: 560px !important;
  margin: -6px auto 14px auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.login-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.login-topbar .login-badge{
  margin-bottom:0;
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  margin:0;
  width:auto;
  max-width:none;
  position:static !important;
}

.lang-switcher select{
  min-width:78px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  outline:none;
  cursor:pointer;
}

.lang-switcher select option{
  color:#000;
}

.login-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.login-topbar .login-badge{
  margin-bottom:0;
  white-space:nowrap;
  font-size:11px;
  padding:6px 10px;
}

.login-productbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px;
}

.product-left{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.product-title{
  font-size:18px;
  font-weight:700;
  color:#fff;
  line-height:1.2;
}

.product-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.mini-pill{
  font-size:12px;
  padding:6px 10px;
}

.login-topbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.login-topbar .login-badge{
  margin-bottom:0;
  white-space:nowrap;
  font-size:11px;
  padding:6px 10px;
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  margin:0;
  width:auto;
  max-width:none;
  position:static !important;
  flex-shrink:0;
}

.lang-switcher select{
  min-width:78px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  outline:none;
  cursor:pointer;
}

.lang-switcher select option{
  color:#000;
}

.login-productbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.product-left{
  min-width:0;
  flex:1;
}

.product-title{
  font-size:26px;
  font-weight:800;
  color:#fff;
  line-height:1.15;
  margin-bottom:12px;
  white-space:nowrap;
}

.product-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.mini-pill{
  font-size:12px;
  padding:6px 10px;
}

.lang-switcher{
  display:flex;
  justify-content:flex-end;
  margin:0;
  width:auto;
  max-width:none;
  position:static !important;
  flex-shrink:0;
}

.lang-switcher select{
  min-width:78px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  outline:none;
  cursor:pointer;
}

.lang-switcher select option{
  color:#000;
}

.product-pills{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  align-items:center !important;
}

.mini-pill{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
}

/* Hover efekti - kartlar */
.upload-card, .card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.upload-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(120,80,255,.3);
  border-color: rgba(120,80,255,.4);
}

/* Hover efekti v2 - !important ile */
.upload-card:hover, .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(120,80,255,.3) !important;
  border-color: rgba(120,80,255,.4) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

/* Login mobil uyumluluk */
@media (max-width: 600px) {
  .login-card {
    width: 100% !important;
    padding: 24px 16px !important;
    margin: 0 !important;
  }
  .product-title {
    font-size: 18px !important;
  }
  .login-productbar {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .lang-switcher {
    justify-content: flex-start !important;
  }
  .wrap {
    width: 95vw !important;
    margin: 20px auto !important;
  }
}

/* ===== Login mobile fix ===== */
.login-card{
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  margin: 0 auto !important;
}

@media (max-width: 768px){
  .wrap{
    width: min(100%, calc(100vw - 24px)) !important;
    margin: 18px auto 28px !important;
  }

  .grid{
    gap: 14px !important;
    margin-top: 12px !important;
  }

  .card{
    max-width: 100% !important;
    padding: 20px !important;
  }

  .login-card{
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }

  .login-productbar{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .product-left{
    width: 100% !important;
  }

  .product-title{
    font-size: 20px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin-bottom: 10px !important;
  }

  .product-pills{
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .mini-pill{
    white-space: nowrap !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .lang-switcher{
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .lang-switcher select{
    width: 100% !important;
    min-width: 0 !important;
  }

  .login-card h2{
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .login-card p{
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .login-label{
    font-size: 13px !important;
  }

  .login-input{
    padding: 13px 14px !important;
    font-size: 16px !important;
  }

  .password-wrap .login-input{
    padding-right: 78px !important;
  }

  .show-pass-btn{
    right: 10px !important;
    font-size: 12px !important;
  }

  .login-btn{
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 420px){
  .wrap{
    width: min(100%, calc(100vw - 16px)) !important;
    margin: 12px auto 22px !important;
  }

  .login-card{
    padding: 18px 14px !important;
  }

  .product-title{
    font-size: 18px !important;
  }

  .mini-pill{
    font-size: 10px !important;
    padding: 5px 8px !important;
  }

  .login-card h2{
    font-size: 24px !important;
  }

  .login-input{
    font-size: 16px !important;
  }
}

/* ===== Desktop language switcher fix ===== */
@media (min-width: 769px){
  .login-productbar{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 18px !important;
  }

  .product-left{
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .product-title{
    white-space: normal !important;
    margin-bottom: 12px !important;
  }

  .product-pills{
    flex-wrap: wrap !important;
  }

  .lang-switcher{
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    align-self: flex-start !important;
    justify-content: flex-end !important;
  }

  .lang-switcher select{
    width: 82px !important;
    min-width: 82px !important;
    height: 40px !important;
    padding: 8px 12px !important;
  }
}

/* ===== Mobile language spacing tweak ===== */
@media (max-width: 768px){
  .login-productbar{
    margin-bottom: 8px !important;
  }

  .product-pills{
    margin-bottom: 14px !important;
  }

  .lang-switcher{
    margin-top: 4px !important;
    margin-bottom: 22px !important;
  }
}



/* ===== Flag language switcher ===== */
.flag-lang{
  position: relative;
  display: inline-block;
}

.flag-lang-btn{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 92px;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight:700;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.flag-lang-btn:hover{
  background: rgba(255,255,255,.10);
}

.flag-emoji{
  font-size: 18px;
  line-height: 1;
}

.flag-lang-code{
  font-size: 15px;
  line-height: 1;
}

.flag-lang-caret{
  font-size: 12px;
  opacity: .8;
}

.flag-lang-menu{
  position:absolute;
  top: calc(100% + 10px);
  right:0;
  min-width: 200px;
  padding: 8px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(20,24,35,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  display:none;
  z-index: 999;
}

.flag-lang.open .flag-lang-menu{
  display:block;
}

.flag-lang-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  border:none;
  text-decoration:none;
  cursor:pointer;
  font: inherit;
  text-align:left;
}

.flag-lang-item:hover{
  background: rgba(255,255,255,.08);
  text-decoration:none;
}

.flag-lang-item.active{
  background: rgba(255,255,255,.10);
}

.flag-lang-label{
  font-weight:700;
}

.login-productbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 24px;
}

.product-left{
  min-width:0;
  flex:1;
}

@media (max-width: 640px){
  .login-card{
    width: min(100%, 94vw) !important;
    padding: 26px !important;
  }

  .login-productbar{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
  }

  .flag-lang{
    align-self:flex-end;
  }

  .flag-lang-btn{
    min-width: 84px;
    padding: 10px 12px;
  }

  .flag-lang-menu{
    right:0;
    left:auto;
    min-width: 180px;
    max-width: min(88vw, 240px);
  }
}

