/* Tamir Bul Plugin — tamir-bul.css */
:root {
  --tb-renk:       #185FA5;
  --tb-renk-dark:  #0C447C;
  --tb-renk-light: #E6F1FB;
  --tb-teal:       #0F6E56;
  --tb-teal-light: #E1F5EE;
  --tb-amber:      #BA7517;
  --tb-amber-light:#FAEEDA;
  --tb-red:        #A32D2D;
  --tb-red-light:  #FCEBEB;
  --tb-gray-100:   #F5F5F3;
  --tb-gray-200:   #E8E7E2;
  --tb-gray-400:   #9E9D97;
  --tb-gray-600:   #5F5E5A;
  --tb-white:      #FFFFFF;
  --tb-radius:     12px;
  --tb-shadow:     0 2px 12px rgba(0,0,0,.08);
}

/* ── Wrapper ─────────────────────────────────────────── */
.tb-wrap { max-width: 720px; margin: 0 auto; padding: 0 1rem; font-family: inherit; }

/* ── Notice ──────────────────────────────────────────── */
.tb-notice {
  display: flex; align-items: center; gap: 10px;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 1.25rem;
}
.tb-notice.warning { background: var(--tb-amber-light); color: var(--tb-amber); border: 1px solid #F5D89A; }
.tb-notice.success { background: var(--tb-teal-light);  color: var(--tb-teal);  border: 1px solid #8FD9C0; }

/* ── Card ────────────────────────────────────────────── */
.tb-card {
  background: var(--tb-white);
  border-radius: var(--tb-radius);
  border: 1px solid var(--tb-gray-200);
  box-shadow: var(--tb-shadow);
  padding: 1.5rem;
  margin-bottom: 1.1rem;
}
.tb-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--tb-gray-400);
  margin-bottom: .75rem;
}

/* ── Upload Zone ─────────────────────────────────────── */
.tb-upload-zone {
  border: 2px dashed var(--tb-gray-200);
  border-radius: var(--tb-radius);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: var(--tb-gray-100);
  transition: border-color .2s, background .2s;
  user-select: none;
  -webkit-user-select: none;
}
.tb-upload-zone:hover,
.tb-upload-zone.dragover {
  border-color: var(--tb-renk);
  background: var(--tb-renk-light, #E6F1FB);
}
.tb-upload-zone input[type="file"] {
  display: none;
}
.tb-upload-icon { font-size: 40px; display: block; margin-bottom: .75rem; }
.tb-upload-zone h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; }
.tb-upload-zone p  { font-size: 13px; color: var(--tb-gray-400); margin: 0; }

/* ── Preview ─────────────────────────────────────────── */
.tb-preview-wrap { position: relative; border-radius: var(--tb-radius); overflow: hidden; margin-bottom: 1rem; }
.tb-preview-wrap img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.tb-remove-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--tb-gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--tb-gray-600);
  transition: color .15s;
}
.tb-remove-btn:hover { color: var(--tb-red); }

/* ── Buttons ─────────────────────────────────────────── */
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.tb-btn:active { transform: scale(.98); }
.tb-btn-primary { background: var(--tb-renk); color: #fff; width: 100%; }
.tb-btn-primary:hover { background: var(--tb-renk-dark); }
.tb-btn-primary:disabled { background: var(--tb-gray-200); color: var(--tb-gray-400); cursor: not-allowed; transform: none; }
.tb-btn-ghost {
  background: transparent; color: var(--tb-gray-600);
  border: 1px solid var(--tb-gray-200);
  font-size: 13px; padding: 8px 14px;
}
.tb-btn-ghost:hover { background: var(--tb-gray-100); }

/* ── Spinner ─────────────────────────────────────────── */
.tb-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 1.1rem 1.25rem;
  background: var(--tb-renk-light, #E6F1FB);
  border-radius: 8px;
  font-size: 14px;
  color: var(--tb-renk-dark, #0C447C);
  margin-bottom: 1rem;
}
.tb-spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(24,95,165,.18);
  border-top-color: var(--tb-renk);
  border-radius: 50%;
  animation: tb-spin .75s linear infinite;
  flex-shrink: 0;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* ── Result Grid ─────────────────────────────────────── */
.tb-result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.tb-stat {
  background: var(--tb-gray-100);
  border-radius: 8px;
  padding: .9rem 1rem;
}
.tb-stat .tb-stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--tb-gray-400); margin-bottom: 5px;
}
.tb-stat .tb-stat-value { font-size: 15px; font-weight: 600; }

/* ── Badges ──────────────────────────────────────────── */
.tb-badge {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 99px; margin: 2px;
}
.tb-badge-blue   { background: var(--tb-renk-light, #E6F1FB);  color: var(--tb-renk-dark, #0C447C); }
.tb-badge-teal   { background: var(--tb-teal-light);  color: var(--tb-teal); }
.tb-badge-amber  { background: var(--tb-amber-light); color: var(--tb-amber); }
.tb-badge-red    { background: var(--tb-red-light);   color: var(--tb-red); }

/* ── Tip List ────────────────────────────────────────── */
.tb-tip-list { padding-left: 1.2rem; font-size: 14px; line-height: 1.8; color: var(--tb-gray-600); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .tb-result-grid { grid-template-columns: 1fr; }
  .tb-card { padding: 1.1rem; }
}
