@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===================================================================
   MineKnight - Stone Panel + Modal Styles
   =================================================================== */

/* Stone-textured info card */
.stone-panel {
    position: relative;
    background-image:
        linear-gradient(rgba(15, 15, 18, 0.78), rgba(15, 15, 18, 0.92)),
        url('stone-bg.jpg');
    background-size: cover, 240px auto;
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    border: 1px solid rgba(242, 202, 80, 0.22);
    border-radius: 1.5rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.45);
}
.stone-panel-light {
    /* Daha hafif karartma - ust ana panel */
    background-image:
        linear-gradient(rgba(15, 15, 18, 0.58), rgba(15, 15, 18, 0.78)),
        url('stone-bg.jpg');
}
.stone-panel-strong {
    /* Cok kararma - okuma yogun yerler */
    background-image:
        linear-gradient(rgba(10, 10, 12, 0.88), rgba(10, 10, 12, 0.96)),
        url('stone-bg.jpg');
}

/* MC head avatar in navbar */
.nav-mc-head {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    border-radius: 6px;
    border: 2px solid rgba(242, 202, 80, 0.6);
    box-shadow: 0 0 12px rgba(242, 202, 80, 0.4);
}

/* Scroll asagiya inildikce ust menudeki logo gizlenir */
header nav a[href="index.html"] img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top center;
}
body.scrolled-down header nav a[href="index.html"] img {
    opacity: 0;
    transform: scale(0.5) translateY(-20px);
    pointer-events: none;
}

/* =============== MODAL SYSTEM =============== */
.mk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 4vh 1rem;
}
.mk-modal-backdrop.open {
    display: flex;
    animation: mkModalFadeIn 0.2s ease;
}
@keyframes mkModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mk-modal {
    position: relative;
    background-image:
        linear-gradient(rgba(15, 15, 18, 0.94), rgba(15, 15, 18, 0.98)),
        url('stone-bg.jpg');
    background-size: cover, 320px auto;
    background-repeat: no-repeat, repeat;
    border: 1px solid rgba(242, 202, 80, 0.45);
    border-radius: 1.5rem;
    box-shadow:
        0 0 40px rgba(242, 202, 80, 0.25),
        0 24px 72px rgba(0, 0, 0, 0.75);
    width: 100%;
    max-width: 720px;
    animation: mkModalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mkModalPop {
    from { transform: scale(0.92) translateY(-12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.mk-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #d4d4d8;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}
.mk-modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fff;
    transform: rotate(90deg);
}

/* Klan derece eşya ikonu (sıralamada) */
.clan-grade-icon {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
/* Max derece (6) icin altın yıldız parıltısı */
.clan-grade-icon.grade-max {
    background: radial-gradient(circle, rgba(242,202,80,0.35) 0%, rgba(0,0,0,0.4) 70%);
    border: 1.5px solid rgba(242,202,80,0.8);
    box-shadow:
        0 0 14px rgba(242,202,80,0.6),
        inset 0 0 8px rgba(242,202,80,0.25);
    animation: gradeMaxPulse 2.5s ease-in-out infinite;
}
@keyframes gradeMaxPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(242,202,80,0.6), inset 0 0 8px rgba(242,202,80,0.25); }
    50% { box-shadow: 0 0 22px rgba(242,202,80,0.9), inset 0 0 12px rgba(242,202,80,0.4); }
}

/* Tıklanabilir leaderboard row */
.lb-row-clickable {
    cursor: pointer;
    transition: all 0.15s ease;
}
.lb-row-clickable:hover {
    background: rgba(242, 202, 80, 0.08) !important;
    transform: translateX(2px);
}

/* Building progress bar */
.bld-bar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    overflow: hidden;
    height: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.bld-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f2ca50 0%, #facc15 100%);
    box-shadow: 0 0 8px rgba(242, 202, 80, 0.6);
    transition: width 0.4s ease;
}
.bld-bar-fill.maxed {
    background: linear-gradient(90deg, #10b981 0%, #22d3ee 100%);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

/* Modal scrollable inner */
.mk-modal-body {
    padding: 1.5rem;
    max-height: calc(92vh - 2rem);
    overflow-y: auto;
}
.mk-modal-body::-webkit-scrollbar { width: 6px; }
.mk-modal-body::-webkit-scrollbar-thumb {
    background: rgba(242, 202, 80, 0.3);
    border-radius: 3px;
}

/* === FORUM XENFORO TARZI + Hover/Modal okunabilir fontlar === */
/* Forum meta yazilari (XenForo gibi modern, okunaklı) */
.forum-meta {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-feature-settings: "ss01";
}
.forum-row {
    transition: background-color 0.15s ease;
}

/* === HOVER TOOLTIP + MODAL fontlari (eshya tooltip + esya detay modal + oyuncu modal) === */
/* Anvil hover tooltip - okunabilir sans-serif */
#item-upgrade-tooltip,
#item-upgrade-tooltip * {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* Modal icerikleri (.mk-modal) - okunabilir sans-serif */
.mk-modal,
.mk-modal *:not(.font-minecraft):not(code):not(.tabular-nums) {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
/* Tabular nums monospace kalsin (sayilar duzgun hizalansin) */
.mk-modal .tabular-nums { font-family: 'JetBrains Mono', monospace !important; }
/* Baslıklar minecraft kalsin */
.mk-modal .font-minecraft { font-family: 'Minecraftia', monospace !important; }
