/* =====================================================
   ELİFBA DERSLERİ – ANA CSS (FINAL)
   ===================================================== */

.elifba-wrap{
  max-width:1140px;
  margin:0 auto;
  padding:0;
  line-height:1.5;
}

/* Kart */
.elifba-card{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  overflow:hidden;
}

/* =====================================================
   HEADER (RENK: #96401e)
   ===================================================== */

.elifba-head{
  padding:14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  background:#96401e;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.elifba-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

/* =====================================================
   HAMBURGER
   ===================================================== */

.elifba-hamburger{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
  cursor:pointer;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.elifba-hamburger:hover{ filter:brightness(1.08); }

.elifba-hamburger::before{
  content:"";
  position:absolute;
  width:18px;
  height:2px;
  background:#fff;
  border-radius:999px;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}
.elifba-hamburger::after{
  content:"";
  position:absolute;
  width:18px;
  height:2px;
  background:#fff;
  border-radius:999px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 -6px 0 #fff, 0 6px 0 #fff;
}
.elifba-hamburger span{ display:none !important; }

/* =====================================================
   BAŞLIK
   ===================================================== */

.elifba-titles{
  min-width:0;
}
.elifba-titles h2{
  margin:0;
  font-size:20px;
  font-weight:bold;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.elifba-meta{
  margin-top:4px;
  font-size:14px;
  color:rgba(255,255,255,.85);
}

/* =====================================================
   NAV BUTONLARI (DESKTOP)
   ===================================================== */

.elifba-nav{
  display:grid;
  grid-template-columns:auto auto auto;   /* ✅ her zaman 3 buton */
  gap:10px;
  align-self:center;
  justify-content:flex-end;
}

.elifba-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 8px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.30);
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:14px;
  white-space:nowrap;
  user-select:none;
}
.elifba-btn:hover{ filter:brightness(1.10); }

.elifba-btn.primary{
  background:#fff;
  color:#96401e;
  border-color:#fff;
  font-weight:700;
}

/* =====================================================
   GÖRSEL
   ===================================================== */

.elifba-figure{ margin:0; }
.elifba-figure img{
  display:block;
  width:100%;
  height:auto;
  background:#f3f3f3;
}

/* =====================================================
   LIGHTBOX / DERS MENÜSÜ
   ===================================================== */

.elifba-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  z-index:9999;
}
.elifba-overlay[aria-hidden="false"]{ display:block; }

.elifba-sheet{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(980px,100%);
  background:#fff;
  border-radius:18px 18px 0 0;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  max-height:78vh;
  overflow:auto;
}

.elifba-sheetHead{
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(0,0,0,.12);
}
.elifba-sheetHead strong{ font-size:16px; }

.elifba-closeBtn{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  cursor:pointer;
}
.elifba-closeBtn:hover{ filter:brightness(.95); }

.elifba-sheetBody{ padding:14px; }

/* Ders grid */
.elifba-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
@media (min-width:520px){
  .elifba-grid{ grid-template-columns:repeat(5,1fr); }
}
@media (min-width:860px){
  .elifba-grid{ grid-template-columns:repeat(7,1fr); }
}

.elifba-lessonBtn{
  padding:12px 10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  cursor:pointer;
  font-size:14px;
}
.elifba-lessonBtn:hover{ filter:brightness(.95); }
.elifba-lessonBtn[aria-current="true"]{
  font-weight:700;
  outline:2px solid #96401e;
}

/* =====================================================
   ALT İPUCU
   ===================================================== */

.elifba-hint{
  margin-top:12px;
  font-size:14px;
  opacity:.85;
  text-align:center;
}
.elifba-hint code{
  background:rgba(0,0,0,.06);
  padding:2px 6px;
  border-radius:8px;
}

/* =====================================================
   RESPONSIVE – TABLET
   ===================================================== */

@media (max-width: 768px){
  .elifba-hint{ display:none; }
  
  .elifba-sheet{ bottom:45px; }
  
  .elifba-btn { font-size:16px;}
  
}

/* =====================================================
   RESPONSIVE – MOBİL (≤576px)
   ===================================================== */

@media (max-width: 576px){

  .elifba-head{
    flex-direction:column;
    align-items:stretch;
  }

  .elifba-left{
    width:100%;
  }

  /* NAV alt satıra iner ama 3 buton tek satır */
  .elifba-nav{
    width:100%;
    margin-top:8px;
    grid-template-columns:1fr 1fr 1fr;
    justify-content:stretch;
    gap:8px;
  }

  .elifba-btn{
    padding:10px 6px;
    font-size:16px;
    border-radius:10px;
  }
}
