/* site/assets/css/bookmarks.css */

/* =========================
   1) Oturumsuz Uyarı (Gate) Modal
========================= */
.bm-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30000;
}

.bm-gate__dialog {
    width: min(720px, calc(100vw - 24px));
    background: #fff;
    border-radius: 12px;
    padding: 28px 22px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.bm-gate__close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #222;
}

.bm-gate__ic {
    font-size: 38px;
    margin-bottom: 10px;
}

.bm-gate__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111;
}

.bm-gate__primary {
    border: 1px solid #727272;
    background: #bb0404;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.bm-gate__note {
    margin-top: 14px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* =========================
   2) Header ikon butonu
   (Hesabım butonuyla aynı ton)
========================= */
.bm-btn {
    border: 1px solid #bbb8b8;
    background: #efdfbc;
    height: 28px;
    width: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555554;
    /* ikon rengi */
}

.bm-btn__icon {
    display: block;
    width: 16px;
    height: 16px;
}

/* =========================
   3) Yer İşaretleri Modal (Sekmeli)
========================= */
.bm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 26000;
}

.bm-modal.is-open {
    display: block;
}

.bm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.bm-modal__panel {
    position: relative;
    width: min(980px, calc(100% - 32px));
    height: min(82vh, 720px);
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.bm-modal__head {
    padding: 18px 22px 8px;
}

.bm-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.bm-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 38px;
    cursor: pointer;
    color: #9e0c0c;
    border-radius: 10px;
}

.bm-modal__close:hover {
    background: rgba(0, 0, 0, .06);
}

/* Tabs */
.bm-tabs {
    display: flex;
    gap: 8px;
    padding: 0 18px 8px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    /* ileride Sayfa Verileri sığsın */
}

.bm-tab {
    border: 1px solid #727272;
    background: #efdfbc;
    /* Hesabım tonu */
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: #222;
}

.bm-tab.is-active {
    background: #f7deaa;
    /* hafif fark */
    border-color: #5f5f5f;
    /* tam siyah değil */
}

.bm-panes {
    height: calc(100% - 112px);
    overflow: auto;
    padding: 16px 22px;
}

.bm-pane {
    display: none;
}

.bm-pane.is-active {
    display: block;
}

.bm-empty {
    padding: 22px;
    border: 1px dashed #d9d9d9;
    border-radius: 12px;
    color: #666;
    text-align: center;
}

/* =========================
   4) Mobil sıkılaştırma
========================= */
@media (max-width: 768px) {
    .bm-btn {
        height: 26px;
        width: 30px;
        border-radius: 8px;
    }

    .bm-btn__icon {
        width: 16px;
        height: 16px;
    }

    .bm-modal__panel {
        width: calc(100% - 18px);
        height: 84vh;
        margin: 6vh auto 0;
        border-radius: 12px;
    }

    .bm-modal__head {
        padding: 14px 14px 6px;
    }

    .bm-modal__title {
        font-size: 18px;
    }

    .bm-tabs {
        padding: 0 10px 7px;
        gap: 6px;
    }

    .bm-tab {
        padding: 4px 7px;
        border-radius: 10px;
        font-size: 12px;
        /* sekmeler küçülsün */
        font-weight: 700;
    }

    .bm-panes {
        padding: 12px 14px;
        height: calc(100% - 106px);
    }
}

/* [bookmarks] Toast */
.ahad-toast {
    position: fixed;
    left: 50%;
    top: 16px;
    transform: translateX(-50%) translateY(-8px);
    z-index: 50000;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 0, 0, .14);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.ahad-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   Liste / 3 nokta menü
========================= */
.bm-list {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bm-item {
    padding: 14px 14px 12px;
    border-bottom: 1px solid #efefef;
    background: #fff;
    position: relative;
}

.bm-item:nth-child(even) {
    background: #fafafa;
}

.bm-item:last-child {
    border-bottom: 0;
}

.bm-item__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.bm-item__title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    line-height: 1.25;
}

.bm-item__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.bm-item__date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.bm-item__menuBtn {
    width: 34px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    background: #f6f6f6;
    cursor: pointer;
    font-size: 18px;
    line-height: 28px;
    color: #222;
    padding: 0;
}

.bm-item__menuBtn:hover {
    background: #f0f0f0;
}

.bm-menu {
    position: absolute;
    top: 42px;
    right: 14px;
    min-width: 190px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
    padding: 6px;
    display: none;
    z-index: 10;
}

.bm-item.is-menu-open .bm-menu {
    display: block;
}

.bm-menu__item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #111;
}

.bm-menu__item:hover {
    background: #f6f6f6;
}

.bm-item__tr {
    font-size: 13px;
    color: #333;
    line-height: 1.35;
    margin-bottom: 8px;
}

.bm-item__ar {
    font-size: 22px;
    color: #444;
    line-height: 1.90;
    font-family: 'ShaikhHamdullahBasicVolt', serif;
    direction: rtl;
    text-align: right;
}

/* Mobil: butonlar biraz küçülsün */
@media (max-width: 520px) {
    .bm-btn {
        width: 30px;
        height: 28px;
    }

    .bm-item__menuBtn {
        width: 30px;
        height: 28px;
        font-size: 17px;
    }

    .bm-tab {
        padding: 7px 10px;
        font-size: 13px;
        border-color: #cfcfcf;
    }

    .bm-tab.is-active {
        border-color: #555;
    }

    .bm-modal__panel {
        height: min(86vh, 720px);
    }
}

/* Gate modal sınıfları (JS ile uyum) */
.bm-gate .bm-gate__modal {
    width: min(720px, calc(100vw - 24px));
    background: #fff;
    border-radius: 10px;
    padding: 28px 22px;
    position: relative;
    text-align: center;
}

.bm-gate__close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bm-gate__ic {
    font-size: 38px;
    margin-bottom: 10px;
}

.bm-gate__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.bm-gate__primary {
    border: 0;
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.bm-gate__note {
    margin-top: 14px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* =========================
   Kısa Yazı listesi ek stiller
========================= */
.bm-item__meta {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bm-item__metaPart {
    display: inline-block;
}

.bm-item__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-item--kisa .bm-item__ar {
    display: none;
}

/* =========================
   Notlar sekmesi (Yer İşaretleri)
   ========================= */

.bm-note-gate{
  padding:16px;
  border:1px dashed rgba(0,0,0,.25);
  border-radius:10px;
  background:#fff;
}
.bm-note-gate__title{font-weight:700;margin-bottom:6px;}
.bm-note-gate__desc{opacity:.85;font-size:14px;line-height:1.4;}

.bm-note-add{
  margin:6px 0 14px;
  padding:12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  background:#fff;
}
.bm-note-add__head{font-weight:700;margin-bottom:8px;}
.bm-note-add__ta{
  width:100%;
  min-height:84px;
  resize:vertical;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  outline:0;
  font:14px/1.45 Verdana, Arial, sans-serif;
}
.bm-note-add__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
  gap:10px;
}
.bm-note-add__count{font-size:12px;opacity:.75;}
.bm-note-add__btn{
  padding:8px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.25);
  background:#f2e2bf;
  cursor:pointer;
  font-weight:700;
}

.bm-note__text{
  padding:10px 0 2px;
  white-space:normal;
  line-height:1.5;
  font-size:14px;
}
.bm-note__edit{padding:8px 0 2px;}
.bm-note__ta{
  width:100%;
  min-height:90px;
  resize:vertical;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  outline:0;
  font:14px/1.45 Verdana, Arial, sans-serif;
}
.bm-note__editbar{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:8px;
}
.bm-note__btn{
  padding:8px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.25);
  background:#f2e2bf;
  cursor:pointer;
  font-weight:700;
}
.bm-note__btn--ghost{
  background:#fff;
}
