/* =========================================================
   ROOT & RESET
========================================================= */
:root{
  --blue:#2563eb;
  --green:#16a34a;

  --bg:#ffffff;
  --soft:#f1f5f9;
  --border:#e5e7eb;

  --text:#0f172a;
  --muted:#64748b;

  --radius:16px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  cursor:pointer;
}

.btn.primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}

.btn.green{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}

.btn.danger{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar{
  height:64px;
  position:sticky;
  top:0;
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 18px;
  background:#fff;
  border-bottom:1px solid var(--border);
}

.brand{
  font-weight:900;
  color:var(--blue);
}

/* =========================================================
   LAYOUT
========================================================= */
.layout{
  height:calc(100vh - 64px);
  display:grid;
  grid-template-columns:320px 1fr 320px;
}

@media(max-width:980px){
  .layout{ grid-template-columns:1fr; }
}

.col{
  padding:14px;
  overflow:auto;
}

.col.left{ border-right:1px solid var(--border); }
.col.right{ border-left:1px solid var(--border); }

/* =========================================================
   CARDS & TEXT
========================================================= */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  margin-bottom:12px;
}

.title{
  margin:0 0 6px;
  font-weight:800;
}

.small{
  font-size:15px;
  line-height:1.4;
  color:var(--muted);
}

/* =========================================================
   CATEGORY LIST
========================================================= */
.cat{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:10px 12px;
  margin-bottom:8px;

  border-radius:14px;
  border:1px solid var(--border);
  background:var(--soft);
  cursor:pointer;
}

.pill{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;

  background:#fff;
  border:1px solid var(--border);
  color:var(--muted);
}

/* =========================================================
   MODAL
========================================================= */
.backdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;

  padding:16px;
  background:rgba(15,23,42,.55);
  z-index:10;
}

.backdrop.open{ display:flex; }

.modal{
  width:min(980px,95vw);
  background:#fff;

  border-radius:20px;
  border:1px solid var(--border);
  overflow:hidden;

  box-shadow:0 24px 70px rgba(0,0,0,.35);
}

.modal-h{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px;
}

.modal-h h2{
  margin:0;
  font-size:16px;
}

.x{
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
}

.modal-b{
  padding:14px;
  max-height:70vh;
  overflow-y:auto;
}

/* =========================================================
   WORD CARD
========================================================= */
.word-card{
  max-width:720px;
  margin:0 auto;
  padding:20px;

  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
}

/* ---------- WORD HEADER (TEK SATIR – FINAL) ---------- */
/* ---------- WORD HEADER (TEK SATIR – RTL FIXED) ---------- */
.word-header{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:16px;

  direction:rtl;              /* İbranice yön */
  unicode-bidi:isolate;       /* RTL / LTR karışım fix */
  white-space:nowrap;         /* ASLA alt satıra düşme */

  margin-bottom:16px;
  padding-bottom:8px;
  border-bottom:1px dashed var(--border);
}

/* he + he_dagesh_tr → aynı satır ama dagesh biraz küçük */
.word-header .word-he{
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size:32px;
  font-weight:700;
  letter-spacing:-0.3px;
  line-height:1.05;
}

.word-header .word-dagesh{
  font-family: "Rubik", "Inter", Arial, Helvetica, sans-serif;
  font-size:20px;          /* daha küçük */
  font-weight:500;
  letter-spacing:0.5px;
  line-height:1.1;
  color:#ea580c;           /* koyu turuncu */
}


/* gec_sim_gel → küçük, soft tema rengi */
.word-header .word-tense{
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size:17px;
  font-weight:600;
  letter-spacing:0.2px;
  color:#475569;
  white-space:nowrap;
  direction:ltr;

  margin-right:auto;   /* 👈 SOLA ALIR (RTL FIX) */
}




/* image */
.word-card .word-image{
  width:260px;
  height:260px;
  object-fit:cover;
  display:block;
  margin:16px auto;
  border-radius:16px;
}

/* =========================================================
   POOL (HAVUZ)
========================================================= */
.pool-list{
  display:flex;
  flex-direction:column;
}

.pool-item{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:16px;

  align-items:center;
  padding:12px 14px;
  margin-bottom:6px;
  border-radius:14px;
}

.pool-item:nth-child(odd){ background:#f9fafb; }
.pool-item:nth-child(even){ background:#f1f5f9; }

.pool-word b{
  font-size:17px;
  font-weight:700;
}

.pool-word .small{
  font-size:13px;
  color:#475569;
}

.pool-actions{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pool-actions .btn{
  font-size:13px;
  padding:6px 10px;
  border-radius:10px;
}

.pool-actions .btn:not(.primary){
  background:#e5e7eb;
  color:#111827;
}

/* =========================================================
   PAGINATION
========================================================= */
.pool-pagination{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:20px;
}


/* ===== PROFIL PANEL ===== */

.profile-panel {
  margin-top: 10px;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.profile-tabs button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.profile-tabs button.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.ptab {
  display: none;
}

.ptab.active {
  display: block;
}

/* dashboard kutuları */
.dash-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-box {
  flex: 1;
  background: rgba(0,0,0,.04);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
}

.dash-box.wide {
  flex: 2;
}

/* ilerleme çubuğu */
.progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: #16a34a;
  width: 0%;
}

/* tema butonları */
.theme-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.theme-grid button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.logout-btn{
  background:#ef4444 !important;
  color:#fff !important;
  border-color:#ef4444 !important;
}
.logout-btn:hover{
  background:#dc2626 !important;
}

.topbar a{
  text-decoration: none !important;
}

/* Üst bar linkleri buton gibi dursun */
.topbar a.btn,
.topbar button.btn{
  text-decoration: none !important;
  color: inherit !important;
}

/* Hover'da da link gibi olmasın */
.topbar a.btn:hover{
  text-decoration: none !important;
  color: inherit !important;
}

.admin-btn{
  background:#065f46 !important;   /* koyu yeşil */
  color:#fff !important;
  border-color:#065f46 !important;
}
.admin-btn:hover{
  background:#064e3b !important;
}










