/* ==========================================================
   Tarihte Bugün Widget'ı
========================================================== */
.mjhb-widget{
    background:linear-gradient(135deg,rgba(3,134,254,.06),rgba(93,178,255,.1));
    border:1px solid rgba(3,134,254,.18);
    border-radius:var(--radius);
    padding:22px 26px;
    margin-bottom:30px;
}

.mjhb-title{
    font-size:17px;
    font-weight:700;
    color:var(--primary);
    margin-bottom:14px;
}

.mjhb-body{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.mjhb-empty{
    color:var(--text-light);
    font-size:14px;
}

.mjhb-item{
    display:flex;
    align-items:baseline;
    gap:10px;
    text-align:left;
    background:0 0;
    border:none;
    padding:8px 10px;
    border-radius:8px;
    cursor:pointer;
    font:inherit;
    color:var(--text);
    transition:background .2s;
}

.mjhb-item:hover{
    background:rgba(3,134,254,.08);
}

.mjhb-year{
    flex:none;
    font-weight:700;
    color:var(--primary);
    font-size:13px;
    background:#fff;
    border:1px solid rgba(3,134,254,.25);
    border-radius:999px;
    padding:2px 10px;
}

.mjhb-item-title{
    font-size:14.5px;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* Tarihte Bugün sayfasına git */
.mjhb-goto-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:16px;
    padding:8px 14px;
    border:1px solid rgba(3,134,254,.2);
    border-radius:8px;
    background:rgba(3,134,254,.06);
    color:var(--primary);
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    transition:.2s;
}

.mjhb-goto-btn:hover{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}


/* ==========================================================
   Tarihte Bugün Detay Modalı
========================================================== */
.mjhb-modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(20,26,33,.6);
    z-index:1000;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.mjhb-modal-overlay.is-open{
    display:flex;
}

.mjhb-modal{
    position:relative;
   /* background:var(--card); */
    border-radius:var(--radius);
    box-shadow:var(--shadow-hover);
    width:100%;
    max-width:960px;
    max-height:90vh;
    overflow-y:auto;
    animation:mjhb-modal-pop .2s ease;
    background: #e8e8e8;
    border-radius: 10px;
}

@keyframes mjhb-modal-pop{
    from{
        opacity:0;
        transform:translateY(10px) scale(.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.mjhb-modal-close{
    position:absolute;
    top:16px;
    right:16px;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:var(--background);
    color:var(--text);
    font-size:16px;
    cursor:pointer;
    z-index:2;
    transition:.2s;
}

.mjhb-modal-close:hover{
    background:var(--primary);
    color:#fff;
}

.mjhb-modal-body{
    padding:36px;
}

.mjhb-modal-meta{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
}

.mjhb-modal-date{
    display:inline-block;
    background:rgba(3,134,254,.1);
    color:var(--primary);
    font-weight:700;
    font-size:13px;
    padding:4px 11px;
    border-radius:999px;
}

.mjhb-modal-source{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--background);
    color:var(--text);
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.mjhb-modal-source:hover{
    background:var(--primary);
    color:#fff;
}

.mjhb-modal-title{
    font-size:26px;
    line-height:1.35;
    margin-bottom:24px;
}

.mjhb-gallery{
    margin-bottom:24px;
}

.mjhb-gallery-main{
    position:relative;
    background:var(--background);
    border-radius:12px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:200px;
    max-height:460px;
}

.mjhb-gallery-main img{
    width:100%;
    max-height:460px;
    object-fit:contain;
    display:block;
}

.mjhb-gallery-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.9);
    color:var(--text);
    font-size:20px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:var(--shadow);
    transition:.2s;
}

.mjhb-gallery-nav:hover{
    background:var(--primary);
    color:#fff;
}

.mjhb-gallery-prev{
    left:12px;
}

.mjhb-gallery-next{
    right:12px;
}

.mjhb-gallery-thumbs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}

.mjhb-gallery-thumbs img{
    width:64px;
    height:64px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    border:2px solid transparent;
    transition:.2s;
    opacity:.75;
}

.mjhb-gallery-thumbs img:hover{
    opacity:1;
}

.mjhb-gallery-thumbs img.active{
    border-color:var(--primary);
    opacity:1;
}

.mjhb-youtube{
    margin-bottom:24px;
}

.mjhb-youtube .youtube-frame-wrapper{
    position:relative;
    width:100%;
    padding-top:56.25%;
    border-radius:12px;
    overflow:hidden;
    background:#000;
}

.mjhb-youtube iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:none;
}

.mjhb-description{
    color:#3a424c;
    font-size:15.5px;
    line-height:1.8;
    white-space:pre-wrap;
    margin-bottom:4px;
}

@media(max-width:768px){
    .mjhb-modal-overlay{
        padding:0;
    }

    .mjhb-modal{
        max-width:100%;
        max-height:100%;
        height:100%;
        border-radius:0;
    }

    .mjhb-modal-body{
        padding:24px 18px 32px;
    }

    .mjhb-modal-title{
        font-size:21px;
    }

    .mjhb-gallery-main{
        max-height:280px;
    }

    .mjhb-gallery-main img{
        max-height:280px;
    }
}