/* MLR Frontend Stilleri - v3.2.3 (Image Contain ve Hook Uyumu) */

/* --- 1. Düğme Kapsayıcısı ve Stilleri --- */
.mlr-button-wrapper { margin: 15px 0; clear: both; }
.mlr-button { border: none; padding: 0; cursor: pointer; background-size: cover; background-position: center; background-repeat: no-repeat; transition: all 0.3s ease; overflow: hidden; }

/* Resim düğmesi için özel stiller */
.mlr-button-image { 
    background-color: transparent !important; 
    background: var(--mlr-img-normal) no-repeat center center; 
    background-size: contain; /* <-- KIRPILMAYI ENGELLEYEN AYAR */
    box-shadow: none !important; 
    text-shadow: none !important; 
    border: none !important; 
    padding: 0 !important; 
}
.mlr-button-image:hover { 
    background-color: transparent !important; 
    background: var(--mlr-img-hover, var(--mlr-img-normal)) no-repeat center center; 
    background-size: contain; 
    box-shadow: none !important; 
    border: none !important; 
}

/* MODIFIED: Removed hardcoded 'color: white;' */
.mlr-button-text { display: flex; align-items: center; justify-content: center; font-weight: bold; text-decoration: none; }
.mlr-button-text:hover { background-color: var(--mlr-hover-bg-color) !important; }
.mlr-button-text.mlr-movement-enabled:hover { transform: translateY(-2px); }
.mlr-button-text.mlr-shadow-enabled:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- 2. Modal Temel Yapı (Aynı) --- */
#mlr-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: 99998; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mlr-modal-container { position: relative; max-width: 95vw; max-height: 95vh; }
.mlr-modal-content { background-color: #fff; border-radius: 8px; overflow: hidden; position: relative; display: flex; flex-direction: column; width: 90vw; height: 90vh; }
.mlr-close-btn { 
    position: absolute; 
    top: 5px; 
    right: 5px; 
    font-size: 30px; 
    font-weight: bold; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    z-index: 99999; 
    padding: 0; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 5px; 
    transition: opacity 0.2s ease-in-out; 
    color: var(--mlr-close-btn-color, #000000);
}
.mlr-close-btn:hover { opacity: 0.7; }


/* --- Başlık Gösterim Alanı --- */
.mlr-current-tab-title {
    padding: 10px 20px 10px 20px;
    background: #fff; 
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 3;
}

/* --- Başlık Dönüşümü --- */
#mlr-modal-overlay.mlr-title-transform-none .mlr-current-tab-title {
    text-transform: none;
}
#mlr-modal-overlay.mlr-title-transform-uppercase .mlr-current-tab-title {
    text-transform: uppercase;
}
#mlr-modal-overlay.mlr-title-transform-capitalize .mlr-current-tab-title {
    text-transform: capitalize;
}


/* --- SEKME NAVİGASYONU (Aynı) --- */
.mlr-tab-navigation {
    display: flex; 
    flex-wrap: nowrap;
    overflow-x: auto; 
    background: transparent; 
    border-bottom: 1px solid #eee; 
    padding: 0 10px; 
    box-sizing: border-box;
    position: relative;
    z-index: 2; 
}

.mlr-tab-item {
    cursor: pointer;
    padding: 8px 10px; 
    margin-right: 5px;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease; 
    min-width: 40px; 
    border-radius: 0; 
    position: relative; 
    color: #555; 
    overflow: hidden; 
}
.mlr-tab-item:hover { background: #f0f0f0; }
.mlr-tab-item.active {
    background: transparent; 
    border: none;
    box-shadow: none;
    color: var(--mlr-active-tab-color);
}
.mlr-tab-item::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 3px; 
    background-color: var(--mlr-active-tab-color); 
    z-index: 3; 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.mlr-tab-item.active::after { transform: scaleX(1); }


/* --- İKON BOYUTU (Aynı) --- */
.mlr-tab-icon {
    width: 30px; 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mlr-tab-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* --- iFrame ve Editör İçeriği --- */

.mlr-content-wrappers {
    flex-grow: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.mlr-iframe-wrapper,
.mlr-editor-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#mlr-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.mlr-loader {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); display: flex; align-items: center; justify-content: center; z-index: 100;
}
.mlr-loader::after {
    content: ''; width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; animation: mlr-spin 1s linear infinite;
}
@keyframes mlr-spin {
    0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }
}

.mlr-editor-content-wrapper {
    z-index: 10;
}
.mlr-editor-content-inner {
    padding: 20px;
    height: 100%;
    overflow-y: auto; 
    box-sizing: border-box; 
    background: #fff;
    color: #333;
}
.mlr-editor-content-inner img {
    max-width: 100%;
    height: auto;
}
.mlr-editor-content-inner p:first-child {
    margin-top: 0;
}
.mlr-editor-content-inner p:last-child {
    margin-bottom: 0;
}


/* Body scroll'u engelle (Aynı) */
body.mlr-modal-open { overflow: hidden; }