/* =========================================================
   ROOT & RESET
========================================================= */
:root{
  /* Daha canlı ve derin ana renkler */
  --blue:#4f46e5;    /* Vivid Indigo */
  --green:#10b981;   /* Emerald Green */
  --danger:#f43f5e;  /* Rose Red */

  --bg:#f8fafc;      /* Çok hafif maviye çalan temiz zemin */
  --soft:#f1f5f9;
  --border:#e2e8f0;

  --text:#0f172a;
  --muted:#64748b;

  --radius:16px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  border:1px solid var(--border);
  background:#ffffff;
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary{
  background: linear-gradient(135deg, #6366f1, var(--blue));
  border: none;
  color:#fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn.primary:hover{
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.35);
}

.btn.green{
  background: linear-gradient(135deg, #34d399, var(--green));
  border: none;
  color:#fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn.danger{
  background: linear-gradient(135deg, #fb7185, var(--danger));
  border: none;
  color:#fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar{
  height:64px;
  position:sticky;
  top:0;
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{
  font-weight:900;
  font-size: 20px;
  background: linear-gradient(to right, var(--blue), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   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); background: #fff; }
.col.right{ border-left:1px solid var(--border); background: #fff; }

/* =========================================================
   CARDS & TEXT
========================================================= */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  margin-bottom:12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.title{
  margin:0 0 6px;
  font-weight:800;
  color: var(--text);
}

.small{
  font-size:14px;
  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: #fff;
  cursor:pointer;
  transition: all 0.2s ease;
}

.cat:hover{
  border-color: var(--blue);
  background: var(--soft);
  transform: translateX(4px);
}

.pill{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;

  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--blue);
  font-weight: 700;
}

/* =========================================================
   MODAL
========================================================= */
.backdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;

  padding:16px;
  background:rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index:10;
}

.backdrop.open{ display:flex; }

.modal{
  width:min(980px, 95vw);
  background:#fff;

  border-radius:24px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow:hidden;

  box-shadow:0 30px 60px rgba(0,0,0,0.25);
}

.modal-h{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  background: var(--soft);
  border-bottom: 1px solid var(--border);
}

.modal-h h2{
  margin:0;
  font-size:18px;
  font-weight: 800;
}

.x{
  background: #e2e8f0;
  border:none;
  font-size:20px;
  cursor:pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.x:hover{ background: #cbd5e1; }

.modal-b{
  padding:20px;
  max-height:75vh;
  overflow-y:auto;
}

/* =========================================================
   WORD CARD (ENGLISH)
========================================================= */
.word-card{
  max-width:720px;
  margin:0 auto;
  padding:24px;

  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* HEADER */
.word-header{
  text-align:center;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom: 2px dashed var(--border);
}

.word-header .word-en{
  font-size:40px;
  font-weight:900;
  letter-spacing:-1px;
  color: var(--blue);
}

.word-header .word-tr{
  margin-top:6px;
  font-size:20px;
  font-weight: 600;
  color: var(--text);
}

.word-header .word-desc{
  margin-top:8px;
  font-size:15px;
  color:var(--muted);
}

/* IMAGE */
.word-card .word-image{
  width:260px;
  height:260px;
  object-fit:cover;
  display:block;
  margin:20px auto;
  border-radius:20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* EXAMPLES */
.word-example{
  margin-top:16px;
  padding: 12px;
  background: var(--soft);
  border-radius: 12px;
}

.word-example .en{
  font-weight:800;
  color: var(--blue);
}

.word-example .tr{
  margin-top:4px;
  color: #475569;
}

.word-example .exp{
  margin-top:8px;
  font-size:13px;
  font-style: italic;
  color:var(--muted);
}

/* =========================================================
   POOL
========================================================= */
.pool-list{
  display:flex;
  flex-direction:column;
}

.pool-item{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:16px;

  align-items:center;
  padding:14px 18px;
  margin-bottom:8px;
  border-radius:16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.pool-item:nth-child(odd){ background:#ffffff; border-color: var(--border); }
.pool-item:nth-child(even){ background:var(--soft); }

.pool-item:hover{
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background: #fff;
  border-color: var(--blue);
}

.pool-word b{
  font-size:18px;
  font-weight:800;
  color: var(--text);
}

.pool-word .small{
  font-size:13px;
  color:var(--muted);
}

.pool-actions{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pool-actions .btn{
  font-size:12px;
  padding:6px 12px;
  border-radius:8px;
}

/* =========================================================
   PROFILE
========================================================= */
.profile-panel{
  margin-top:10px;
}

.profile-tabs{
  display:flex;
  gap:8px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.profile-tabs button{
  padding:10px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:700;
  color: var(--muted);
  transition: all 0.2s;
}

.profile-tabs button.active{
  background: var(--blue);
  color:#fff;
  border-color: var(--blue);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.ptab{ display:none; }
.ptab.active{ display:block; }

/* DASHBOARD */
.dash-row{
  display:flex;
  gap:16px;
  margin-bottom:16px;
}

.dash-box{
  flex:1;
  background: #fff;
  border: 1px solid var(--border);
  padding:16px;
  border-radius:16px;
  text-align:center;
  font-weight:800;
  color: var(--blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.progress-bar{
  height:12px;
  background: var(--soft);
  border-radius:999px;
  overflow:hidden;
  margin-top:12px;
}

.progress-fill{
  height:100%;
  background: linear-gradient(to right, #34d399, var(--green));
  width:0%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* TOPBAR LINKS */
.topbar a{
  text-decoration:none !important;
}

.admin-btn{
  background: #059669 !important;
  color:#fff !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.logout-btn{
  background: var(--danger) !important;
  color:#fff !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.2);
}

/* Right panel preview - disable clicks */
#doneVerb,
#doneNoun,
#doneAdj {
  pointer-events: none;
}