/* =========================================================================
 * iEDITOR EKLENTİSİ - ÖN YÜZ STİLLERİ (Harici Dosya)
 * ========================================================================= */

/* * NOT: Bu dosya, [giris] ve [haberyolla] kısa kodlarındaki 
 * stillerin BİRLEŞTİRİLMİŞ ve optimize edilmiş halidir. 
 */

/* =========================================================================
 * 1. PAYLAŞIMLI FORM STİLLERİ (Global Tema Uyumu)
 * ========================================================================= */

/* --- 1.1. Form Satırları --- */
.ieditor-form .form-row,
.ieditor-haber-form .form-row {
    margin-bottom: 20px; /* Biraz daha ferah */
}

.ieditor-form .form-row label,
.ieditor-haber-form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text); /* Tema değişkeni */
    font-size: 0.95em;
}

/* --- 1.2. Input, Select ve Textarea --- */
/* Not: style.css'deki global input stilleri temel özellikleri sağlar. 
   Burada sadece eklentiye özgü (varsa) ince ayarları yapıyoruz. */

.ieditor-haber-form .form-row textarea {
    min-height: 150px;
    resize: vertical;
}

/* File Input (Dosya Yükleme) Özelleştirme */
.ieditor-form input[type="file"],
.ieditor-haber-form input[type="file"] {
    padding: 10px;
    background: var(--color-header-bg);
    border: 1px dashed var(--color-border);
    cursor: pointer;
    width: 100%;
}

/* --- 1.3. Butonlar --- */
/* style.css global buton stillerini miras alır. 
   Sadece genişlik ayarı yapıyoruz. */

.ieditor-form .form-submit input,
.ieditor-haber-form .form-submit input {
    width: 100%; /* Tam genişlik butonlar */
    padding: 14px;
    font-size: 1.1em;
}

/* =========================================================================
 * 2. PAYLAŞIMLI (GENEL) İLERLEME ÇUBUĞU (Progress Bar) STİLLERİ
 * (Hem [giris] hem [haberyolla] tarafından kullanılır)
 * ========================================================================= */
.ieditor-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    /* [haberyolla] stilinden 'border' eklentisi */
    border: 1px solid var(--color-border); 
}

.ieditor-progress-bar-inner {
    height: 100%;
    background: #E6B905;
    transition: width 0.5s ease;
    border-radius: 6px;
}

/* Meta (XP: ... Kalan: ...) stilleri,
   hem .ieditor-gamification-box hem de .ieditor-profile-progress-container 
   altındaki .progress-meta için geçerli olacak şekilde birleştirildi.
*/
.ieditor-gamification-box .progress-meta,
.ieditor-profile-progress-container .progress-meta {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}
/* [giris] stilinden 'color' eklentisi */
.ieditor-profile-progress-container .progress-meta {
     color: var(--color-text);
}

.ieditor-gamification-box .progress-meta strong,
.ieditor-profile-progress-container .progress-meta strong {
    color: #E6B905;
}

/* =========================================================================
 * 3. SADECE [haberyolla] STİLLERİ
 * ========================================================================= */

.ieditor-gamification-box {
    background: var(--color-header-bg);
    border: 1px solid var(--color-border);
    border-left: 5px solid #E6B905;
    border-radius: 5px;
    padding: 15px 20px;
    margin: 20px auto;
    /* width: 100%; (Taşma düzeltmesi olarak kaldırılmıştı) */
    box-sizing: border-box;
    color: var(--color-text);
    font-size: 1.05em;
    line-height: 1.6;
}

.ieditor-gamification-box strong {
    color: #E6B905;
    font-size: 1.1em;
}

.ieditor-haber-form {
    /* width: 100%; (Taşma düzeltmesi olarak kaldırılmıştı) */
    margin: 20px auto;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-header-bg);
    box-sizing: border-box; /* (Taşma düzeltmesi olarak eklenmişti) */
}


/* =========================================================================
 * 4. SADECE [giris] (PROFİL VE GİRİŞ FORMU) STİLLERİ
 * ========================================================================= */

/* --- 4.1. Ana Sekme Konteyneri --- */
.ieditor-tab-container {
    width: 100%;
    margin: 20px auto;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 5px;
    overflow: hidden;
    background: var(--color-bg, #fff);

    /* === DÜZELTME: Taşma sorununu çözer === */
    box-sizing: border-box;
}

.ieditor-tab-container h2.profile-title {
    font-size: 20px;
    padding: 0 20px;
    margin-top: 20px;
    color: var(--color-text, #121212);
}

/* --- 4.2. Sekme Navigasyonu (İkonlu) --- */
.ieditor-tab-nav {
    display: flex;
    background-color: var(--color-header-bg, #f9f9f9);
    border-bottom: 1px solid var(--color-border, #ddd);
}

.ieditor-tab-nav button,
.ieditor-tab-nav a {
    flex: 1;
    padding: 15px 5px; /* Mobilde tıklama alanı rahat olsun */
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--color-text, #555);
    opacity: 0.7;
    transition: all 0.2s ease;
    
    /* İçerik Hizalama (İkon + Yazı) */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* İkon ile yazı arası boşluk */
}

.ieditor-tab-nav button svg,
.ieditor-tab-nav a svg {
    flex-shrink: 0; /* İkon asla küçülmesin */
    width: 20px;
    height: 20px;
}

/* Hover ve Aktif Durumlar (Gündüz Modu) */
.ieditor-tab-nav button:hover,
.ieditor-tab-nav a:hover {
    background: var(--color-border, #eee);
    opacity: 1;
    color: var(--color-text); /* Hover'da yazı rengini koru */
}

.ieditor-tab-nav button.active,
.ieditor-tab-nav a.active {
    opacity: 1;
    border-bottom-color: #E6B905; /* Aktif sekme alt çizgi rengi (Gold) */
    background-color: rgba(0,0,0,0.05); /* Hafif gri vurgu */
    color: var(--color-text);
    font-weight: 700;
}

/* --- GECE MODU (DARK MODE) DÜZELTMELERİ --- */

/* 1. Normal Hover (Seçili Olmayan) */
html[data-theme="dark"] .ieditor-tab-nav button:hover,
html[data-theme="dark"] .ieditor-tab-nav a:hover {
    background: rgba(255,255,255,0.1); /* Hafif beyaz zemin */
    color: #fff; /* Beyaz yazı */
}

/* 2. Aktif Sekme (Seçili Olan) */
html[data-theme="dark"] .ieditor-tab-nav button.active,
html[data-theme="dark"] .ieditor-tab-nav a.active {
    background: rgba(255,255,255,0.15); /* Biraz daha belirgin zemin */
    color: #fff !important; /* Yazı ve İkon kesinlikle BEYAZ */
    border-bottom-color: #E6B905;
}

/* 3. KRİTİK DÜZELTME: Aktif Sekmenin Üzerine Gelince (Active + Hover) */
html[data-theme="dark"] .ieditor-tab-nav button.active:hover,
html[data-theme="dark"] .ieditor-tab-nav a.active:hover {
    background: rgba(255,255,255,0.25); /* Hover'da daha parlak zemin */
    color: #fff !important; /* Yazı hala beyaz kalsın (Siyah olmasın) */
}

/* Çıkış Butonu Özel Rengi (Hafif Kırmızı) */
.ieditor-tab-nav a.logout:hover {
    background-color: rgba(214, 54, 56, 0.1);
    color: #d63638;
}

/* === MOBİL UYUM (Sadece İkonlar) === */
@media (max-width: 768px) {
    .ieditor-tab-nav button span,
    .ieditor-tab-nav a span {
        display: none; /* Yazıları GİZLE */
    }
    
    .ieditor-tab-nav button,
    .ieditor-tab-nav a {
        padding: 15px 0; /* Yatay padding'i sıfırla, ikonları ortala */
        font-size: 0; /* Güvenlik için fontu sıfırla */
    }
    
    .ieditor-tab-nav button svg,
    .ieditor-tab-nav a svg {
        width: 24px; /* Mobilde ikonları biraz büyüt */
        height: 24px;
    }
}

/* --- 4.3. Sekme İçeriği --- */
.ieditor-tab-content {
    padding: 20px;
}

.ieditor-tab-pane {
    display: none;
}

.ieditor-tab-pane.active {
    display: block;
}

/* [giris] formunu (login/reg/lost) ortala */
.ieditor-tab-content .ieditor-form {
    margin: 0 auto;
}

/* --- 4.4. Profil Sekmesi (Avatar) --- */
.ieditor-form .avatar-preview {
    position: relative;
    display: inline-block;
    width: 120px; /* 80px'den 120px'e çıkarıldı (+%50) */
    height: 120px; /* 80px'den 120px'e çıkarıldı (+%50) */
    margin-bottom: 15px; /* Alt boşluk biraz artırıldı */
    border-radius: 5px; /* (Çerçeve seçilince bu 50% oluyor, sorun yok) */
    overflow: hidden;
    /* İkonları/Resmi ortalamak için */
    text-align: center; 
}

/* --- 4.5. Profil Sekmesi (Haberlerim Tablosu) --- */
.user-posts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.user-posts-table thead {
    border-bottom: 2px solid var(--color-border);
}

.user-posts-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 700;
    color: var(--color-text);
    opacity: 0.8;
}

.user-posts-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.user-posts-table tbody tr:last-child {
    border-bottom: none;
}

.user-posts-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.user-posts-table .post-title a {
    font-weight: 700;
    color: var(--color-link, #E6B905);
    text-decoration: none;
}

.user-posts-table .post-title a:hover {
    text-decoration: underline;
}

.user-posts-table .post-puan {
    color: #E6B905;
    font-weight: 700;
}

.user-posts-table .post-okunma {
    font-weight: 700;
    opacity: 0.8;
}

.user-posts-table .post-status {
    font-size: 0.9em;
    color: #fff;
    background: #777;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    text-align: center;
}

.user-posts-table .post-status.status-publish {
    background: #46b450;
}

.user-posts-table .post-status.status-pending {
    background: #E6B905;
    color: #000;
}

.user-posts-table .post-status.status-draft {
    background: #aaa;
}

.user-posts-table .delete-link a {
    color: #d63638;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.user-posts-table .delete-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- 4.6. Profil Sekmesi (Haberlerim Mobil) --- */
@media (max-width: 768px) {
    .user-posts-table {
        font-size: 1em;
    }
    .user-posts-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    .user-posts-table tr {
        display: block;
        border-bottom-width: 2px;
        margin-bottom: 15px;
        background: var(--color-header-bg);
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid var(--color-border);
    }
    .user-posts-table td {
        display: block;
        padding: 10px;
        padding-left: 50%;
        position: relative;
        text-align: right;
        border: none;
        border-bottom: 1px dashed var(--color-border);
    }
    .user-posts-table tr td:last-child {
        border-bottom: none;
    }
    .user-posts-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--color-text);
        opacity: 0.9;
    }
}

/* --- 4.7. Profil Sekmesi (Progress Bar Konteyneri) --- */
.ieditor-profile-progress-container {
    margin: 15px 0 20px 0;
}

.ieditor-profile-progress-container .progress-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.ieditor-profile-progress-container .progress-title .level-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
    border-radius: 50%;
    background: #E6B905;
    color: #000;
    margin-right: 5px;
    position: relative;
    top: -1px;
}

.ieditor-profile-progress-container .progress-title .level-badge-0 {
    background: #aaa;
    color: #fff;
}
/* (.progress-bar ve .progress-meta stilleri Bölüm 2'ye taşındı) */


/* --- 4.8. Giriş Yap Sekmesi (Login Form) --- */
.ieditor-form .remember-me {
    margin-bottom: 15px;
}

.ieditor-form .form-info {
    font-size: 12px;
    color: #777;
}

/* Google Login Butonu Düzeltmeleri */
.ieditor-tab-pane#login .ieditor-social-login-container {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ieditor-tab-pane#login .ieditor-social-login-container .nsl-container-buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px;
}

.ieditor-tab-pane#login .ieditor-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--color-text, #777);
    font-size: 0.9em;
    opacity: 0.7;
}
/* =========================================================================
 * 5. ARAMA SAYFASI [aramayap] KISA KODU STİLLERİ
 * (Eski Modal stillerinden uyarlandı)
 * ========================================================================= */

.ieditor-arama-sayfasi-form {
    padding: 25px;
    background: var(--color-header-bg, #f9f9f9);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 5px;
    box-sizing: border-box;
}

.ieditor-arama-sayfasi-form .arama-sayfasi-title {
    color: var(--color-text-heading, #121212);
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left;
    font-size: 1.8em;
}

.ieditor-arama-field {
    margin-bottom: 18px;
}
.ieditor-arama-field label {
    display: block;
    font-size: 1em;
    font-weight: 700;
    color: var(--color-text, #121212);
    margin-bottom: 8px;
}

/* Tüm input/select alanları için ortak stil */
.ieditor-arama-field input[type="text"],
.ieditor-arama-field input[type="date"],
.ieditor-arama-field select { 
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-bg, #fff) !important; 
    color: var(--color-text, #121212) !important;
    border: 1px solid var(--color-border, #ddd) !important;
    padding: 12px;
    border-radius: 4px;
    font-size: 1.05em;
    transition: border-color 0.2s ease;
}

/* Ok simgeleri (Genel form stillerinden kopyalandı) */
.ieditor-arama-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23121212'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right: 35px;
}
html[data-theme="dark"] .ieditor-arama-field select {
    background-color: var(--color-header-bg, #1e1e1e);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f0f0f0'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

.ieditor-arama-field input[type="text"]:focus,
.ieditor-arama-field input[type="date"]:focus,
.ieditor-arama-field select:focus {
    border-color: var(--color-text, #121212) !important;
}

.ieditor-arama-field .arama-input-large {
    font-size: 1.2em;
    padding: 14px;
}

.ieditor-arama-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ieditor-arama-buttons {
    margin-top: 25px;
}

.ieditor-arama-btn.primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--color-text, #121212);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-size: 1.1em;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: var(--color-text, #121212);
    color: var(--color-bg, #fff);
}
.ieditor-arama-btn.primary:hover {
    background: var(--color-bg, #fff);
    color: var(--color-text, #121212);
}

@media (max-width: 480px) {
    .ieditor-arama-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================================
 * 6. GİRİŞ GEREKLİ UYARI KUTUSU (DÜZELTİLDİ: GECE MODU & HOVER)
 * ========================================================================= */

.ieditor-login-required-message {
    width: 100%;
    max-width: 100%;
    margin: 25px auto;
    padding: 40px 30px;
    /* Kutunun kendisi tema renklerine uyumlu olsun */
    background: var(--color-header-bg, #f9f9f9);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ieditor-login-required-message p {
    margin: 0 0 20px 0;
    font-size: 1.15em;
    line-height: 1.6;
    font-weight: 500;
    color: var(--color-text, #121212);
    opacity: 0.9;
}

/* BUTON DÜZELTMESİ */
/* Bu buton her zaman (gece/gündüz) GOLD zemin üzerine SİYAH yazı olacak */
.ieditor-login-required-message a.ieditor-modern-button {
    display: inline-block;
    background-color: #E6B905 !important; /* Kesinlikle Altın */
    color: #000000 !important;             /* Kesinlikle Siyah */
    border: 2px solid #E6B905 !important;
    
    padding: 14px 35px; /* Daha büyük ve tıklanabilir */
    cursor: pointer;
    border-radius: 50px; /* Modern oval yapı */
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1em;
    
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(230, 185, 5, 0.4); /* Hafif altın gölge */
}

/* HOVER (ÜZERİNE GELİNCE) */
/* Sarı yazı yerine BEYAZ yazı, SİYAH zemin yapıyoruz (Daha şık) */
.ieditor-login-required-message a.ieditor-modern-button:hover {
    background-color: #121212 !important; /* Siyah Zemin */
    color: #ffffff !important;             /* Beyaz Yazı */
    border-color: #121212 !important;      /* Siyah Çerçeve */
    
    transform: translateY(-3px);           /* Hafif yukarı kalkma */
    box-shadow: 0 6px 20px rgba(0,0,0,0.3); /* Gölgeyi koyulaştır */
    text-decoration: none;
}
/* =========================================================================
 * 7. AJAX PUANLAMA STİLLERİ (YENİ)
 * ========================================================================= */

/* Ana Puanlama Konteyneri */
.ieditor-rating-form {
  margin-top: 20px;
  padding: 15px 20px; /* Sağa sola 20px (daha geniş) */
  border: 1px solid var(--color-border, #ddd);
  border-radius: 5px;
  background: var(--color-header-bg, #f9f9f9);
  color: var(--color-text, #121212);
  transition: opacity 0.3s ease;
}

/* Yıldızların olduğu sarmalayıcı */
.ieditor-rating-stars-ajax {
  display: inline-block;
  /* Yıldızların sağdan sola (RTL) dizilmesini sağlar */
  direction: rtl;
  padding-bottom: 5px; /* Alt boşluk */
}

.ieditor-rating-stars-ajax input[type='radio'] {
  display: none; /* Radio butonları gizle */
}

/* Yıldız Etiketleri */
.ieditor-rating-stars-ajax label {
  font-size: 28px; /* Biraz daha büyük */
  color: #ccc;
  cursor: pointer;
  padding: 0 1px; /* Yıldızlar arası boşluk */
  transition: color 0.2s ease;
  float: right; /* RTL (Sağdan Sola) sıralama için */
}

/* Hover (Üzerine Gelme) Efekti */
.ieditor-rating-stars-ajax label:hover,
.ieditor-rating-stars-ajax label:hover ~ label {
  color: #e6b905;
}

/* Seçili (Checked) Efekti */
.ieditor-rating-stars-ajax input[type='radio']:checked ~ label {
  color: #e6b905;
}

/* AJAX Yüklenme Durumu */
.ieditor-rating-form.loading {
  opacity: 0.6;
  cursor: wait;
}
.ieditor-rating-form.loading .ieditor-rating-stars-ajax label {
  cursor: wait;
}

/* AJAX Sonuç/Hata Mesajı Alanı */
#ieditor-rating-results {
  display: none; /* Başlangıçta gizli (slideDown ile açılır) */
  font-size: 0.95em;
  font-weight: 700;
  padding: 8px 12px;
  margin: -15px -20px 15px -20px; /* Kenarlara yasla */
  background: var(--color-border, #eee);
  border-bottom: 1px solid var(--color-border, #ddd);
  color: var(--color-text, #121212);
}

#ieditor-rating-results strong {
  color: #e6b905; /* Vurgu rengi */
}

/* Hata Mesajı */
#ieditor-rating-results.error {
  background: #d63638; /* Kırmızı */
  color: #fff;
  border-color: #b22;
}
/* =========================================================================
 * 8. YAPAY ZEKA ANALİZ KUTUSU STİLLERİ (YENİ)
 * ========================================================================= */
.ieditor-ai-box {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #121212; /* Teknoloji vurgusu */
}

.ieditor-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ieditor-ai-title {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-text, #121212);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ieditor-ai-badge {
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    background: #ccc;
    transition: background 0.3s ease;
}

.ieditor-ai-score-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ieditor-ai-score-bar {
    flex-grow: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.ieditor-ai-score-bar-inner {
    height: 100%;
    width: 0%;
    background: #ccc;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.ieditor-ai-score-text {
    font-weight: 700;
    font-size: 1.2em;
    min-width: 80px;
    text-align: right;
}

.ieditor-ai-feedback {
    background: var(--color-header-bg, #f9f9f9);
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

.ieditor-ai-feedback ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ieditor-ai-feedback li {
    margin-bottom: 5px;
    color: var(--color-text, #555);
}
.ieditor-ai-feedback li:last-child { margin-bottom: 0; }

/* Haber Detay - Okuma Süresi Etiketi */
.ieditor-reading-meta {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9em;
    color: #777;
    background: var(--color-header-bg, #eee);
    padding: 2px 8px;
    border-radius: 4px;
}
/* =========================================================================
 * 9. ROZET KOLEKSİYONU VE PROFİL ÇERÇEVELERİ (V4 ELITE)
 * ========================================================================= */

/* --- 9.1. Profil Çerçeveleri (Efektler) --- */

/* Avatar kutusu temel ayar (KARE GÖRÜNÜM) */
.avatar-preview {
    position: relative;
    padding: 4px; /* Çerçeve kalınlığı kadar boşluk */
    border-radius: 5px; /* Resimle uyumlu hafif köşe */
    display: inline-block;
    box-sizing: border-box;
    /* Resmin taşmasını önlemek için */
    overflow: visible; 
}
/* İçindeki resim de tam otursun */
.avatar-preview img.avatar {
    border-radius: 3px !important; /* Çerçeveden biraz daha keskin */
    display: block;
}

/* Çerçeve Stilleri */
.avatar-preview.frame-bronze {
    border: 3px solid #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.avatar-preview.frame-silver {
    border: 3px solid #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
}

.avatar-preview.frame-gold {
    border: 4px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: pulse-gold 2s infinite;
}

.avatar-preview.frame-neon {
    border: 4px solid #0ff;
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff; /* Neon parlama */
    animation: pulse-neon 1.5s infinite alternate;
}

/* Animasyonlar */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.9); }
    100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
}
@keyframes pulse-neon {
    from { border-color: #0ff; box-shadow: 0 0 10px #0ff; }
    to { border-color: #f0f; box-shadow: 0 0 20px #f0f; }
}


/* --- 9.2. Rozet Izgarası (Badge Grid) --- */
.ieditor-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Responsive */
    gap: 15px;
    margin-top: 15px;
}

.ieditor-badge-item {
    background: var(--color-header-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.ieditor-badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.badge-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    /* Arka plan rengi PHP'den geliyor */
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-title {
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.2;
}

.badge-desc {
    font-size: 0.8em;
    opacity: 0.7;
    line-height: 1.3;
}
/* =========================================================================
 * 10. MAĞAZA VE EFEKT STİLLERİ (V4 ELITE - BÖLÜM B)
 * ========================================================================= */

/* --- 10.1. Mağaza Arayüzü --- */
.ieditor-shop-wrapper {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    width: 100%; /* Tam Genişlik */
    margin: 20px auto;
    box-sizing: border-box; /* Padding taşmasını önler */
}

.ieditor-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 15px;
}

.shop-title h2 { margin: 0; font-size: 1.8em; color: var(--color-text-heading); }
.shop-title p { margin: 5px 0 0; opacity: 0.7; }

.shop-balance {
    background: var(--color-header-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #E6B905;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}
.shop-balance .balance-amount { font-weight: 800; color: var(--color-text); }

/* Sekmeler */
.ieditor-shop-tabs { margin-bottom: 20px; display: flex; gap: 10px; }
.shop-tab-btn {
    background: var(--color-header-bg); border: 1px solid var(--color-border);
    padding: 10px 20px; cursor: pointer; border-radius: 5px; font-weight: 600;
    color: var(--color-text);
}
.shop-tab-btn.active { background: #E6B905; color: #000; border-color: #E6B905; }
.shop-tab-content { display: none; }
.shop-tab-content.active { display: block; }

/* Ürün Grid */
.ieditor-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ieditor-product-card {
    background: var(--color-header-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px; padding: 20px; text-align: center;
    transition: transform 0.2s;
    display: flex; flex-direction: column; height: 100%;
}
.ieditor-product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.product-icon { font-size: 2.5em; margin-bottom: 10px; }
.product-title { font-size: 1.1em; font-weight: 700; margin: 0 0 10px; color: var(--color-text); }
.product-desc { font-size: 0.9em; opacity: 0.8; flex-grow: 1; margin-bottom: 15px; }
.product-price { font-size: 1.2em; color: #E6B905; font-weight: 700; margin-bottom: 15px; }

.ieditor-buy-btn {
    background: var(--color-text); color: var(--color-bg);
    border: none; padding: 10px; width: 100%; border-radius: 5px;
    font-weight: 700; cursor: pointer; transition: opacity 0.2s;
}
.ieditor-buy-btn:hover { opacity: 0.9; }
.ieditor-buy-btn.purchased { background: #46b450; }

/* Envanter Listesi */
.ieditor-inventory-list { list-style: none; padding: 0; margin: 0; }
.inventory-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; border-bottom: 1px solid var(--color-border);
}
.inv-icon { font-size: 1.5em; }
.inv-info { display: flex; flex-direction: column; }
.inv-timer { font-size: 0.85em; color: #46b450; font-weight: 600; }

/* Mesaj Alanı */
#ieditor-shop-message { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; }
.shop-msg { padding: 15px 25px; border-radius: 5px; color: #fff; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.shop-msg.success { background: #46b450; }

/* --- 10.2. Satın Alınan Efektler (Visuals) --- */

/* 1. Vitrin Dopingi (Boosted Post) */
.ieditor-boosted-post {
    border: 2px solid #E6B905 !important; /* Altın çerçeve */
    position: relative;
}
.ieditor-boosted-post::before {
    content: '⚡ VİTRİN';
    position: absolute; top: 0; right: 0;
    background: #E6B905; color: #000;
    font-size: 10px; font-weight: 800;
    padding: 3px 8px;
    border-bottom-left-radius: 5px;
    z-index: 5;
}

/* 2. Renkli İsimler (GÜÇLENDİRİLMİŞ SEÇİCİLER) */

/* A. Haber Kartları ([haberler] Listesi) */
/* span.author-name elemanının kendisine sınıf eklendiği için bitişik yazıyoruz */
span.author-name.ieditor-name-red,
span.author-name.ieditor-name-red a { 
    color: #e74c3c !important; 
    font-weight: 800 !important; 
}

span.author-name.ieditor-name-blue,
span.author-name.ieditor-name-blue a { 
    color: #3498db !important; 
    font-weight: 800 !important; 
}

/* B. Yorumlar (Comments) */
.comment-author.ieditor-name-red .fn,
.comment-author.ieditor-name-red .fn a { 
    color: #e74c3c !important; 
}

.comment-author.ieditor-name-blue .fn,
.comment-author.ieditor-name-blue .fn a { 
    color: #3498db !important; 
}

/* C. Haber Detay (Single Post - Eğer eklendiyse) */
.entry-header .post-meta .ieditor-name-red,
.entry-header .post-meta .ieditor-name-red a {
    color: #e74c3c !important;
}
.entry-header .post-meta .ieditor-name-blue,
.entry-header .post-meta .ieditor-name-blue a {
    color: #3498db !important;
}

/* 3. Titreyen Başlık */
.ieditor-effect-shake h3 a,
.ieditor-effect-shake h2.post-title a {
    display: inline-block;
    animation: text-shake 3s infinite;
}
@keyframes text-shake {
    0%, 100% { transform: translateX(0); }
    90% { transform: translateX(0); }
    92% { transform: translateX(-2px); }
    94% { transform: translateX(2px); }
    96% { transform: translateX(-2px); }
    98% { transform: translateX(2px); }
}

/* 4. Altın Parlama */
.ieditor-effect-glow {
    animation: box-glow 2s infinite alternate;
}
@keyframes box-glow {
    from { box-shadow: 0 0 5px rgba(230, 185, 5, 0.2); }
    to { box-shadow: 0 0 20px rgba(230, 185, 5, 0.6); border-color: #E6B905 !important; }
}
/* =========================================================================
 * 11. MAĞAZA MOBİL VE TAŞMA DÜZELTMELERİ (FIX PACK)
 * ========================================================================= */

/* 1. Konteyner Taşma Koruması (Genel) */
.ieditor-shop-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important; /* Padding'in dışarı taşmasını engeller */
    overflow: hidden; /* İçerik taşarsa gizle */
}

/* 2. MOBİL UYUM (768px ve altı) */
@media (max-width: 768px) {

    /* Header Düzeni: Başlık ve Bakiyeyi Alt Alta Al */
    .ieditor-shop-header {
        flex-direction: column; /* Yan yana değil, alt alta */
        align-items: flex-start; /* Sola hizala */
        gap: 15px; /* Aralarına boşluk */
    }

    /* Bakiye Alanı Düzeltmesi */
    .shop-balance {
        width: 100%; /* Tam genişlik */
        box-sizing: border-box;
        display: flex;
        flex-direction: row; /* İçerik YAN YANA kalsın (Dikey sorunu çözer) */
        justify-content: space-between; /* Yazıyı sola, parayı sağa it */
        align-items: center;
        padding: 12px 15px;
        white-space: nowrap; /* Metnin kırılmasını engelle */
    }

    /* Yazı Boyutlarını Mobilde Dengele */
    .shop-balance .balance-label {
        font-size: 1em;
    }
    .shop-balance .balance-amount {
        font-size: 1.2em;
    }

    /* Ürün Izgarası (Grid) Düzeltmesi */
    .ieditor-shop-grid {
        /* Mobilde tek sütun yap ki taşmasın */
        grid-template-columns: 1fr !important; 
        gap: 15px;
    }

    /* Sekme Butonları */
    .ieditor-shop-tabs {
        flex-direction: column; /* Butonları alt alta diz */
        width: 100%;
    }
    .shop-tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* 3. MASAÜSTÜ GRID DÜZELTMESİ (Çok Geniş Ekranlar İçin) */
@media (min-width: 769px) {
    .ieditor-shop-grid {
        /* Min 220px genişlik vererek sığdığı kadar yan yana koy */
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
/* =========================================================================
 * 33. ETKİNLİK SİSTEMİ VE KARTLARI
 * ========================================================================= */

/* Liste Yapısı */
.ieditor-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Etkinlik Kartı */
.ieditor-event-card {
    display: flex;
    align-items: center;
    background: var(--color-header-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ieditor-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Tarih Kutusu */
.event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #E6B905;
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}
.event-date-box .day { font-size: 1.4em; font-weight: 800; line-height: 1; }
.event-date-box .month { font-size: 0.8em; text-transform: uppercase; font-weight: 700; }

/* Bilgi Alanı */
.event-info { flex-grow: 1; padding-right: 15px; }
.event-type { font-size: 0.85em; color: var(--color-text); opacity: 0.7; font-weight: 600; }
.event-title { margin: 5px 0; font-size: 1.2em; color: var(--color-text-heading); }
.event-organizer { display: flex; align-items: center; gap: 8px; font-size: 0.9em; color: var(--color-text); }
.event-organizer img { border-radius: 50%; border: 1px solid var(--color-border); }

/* Katılma Aksiyonu */
.event-action { text-align: center; min-width: 120px; flex-shrink: 0; }
.ieditor-join-event-btn {
    background: transparent; color: var(--color-text);
    border: 2px solid var(--color-text);
    padding: 8px 15px; border-radius: 20px;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    width: 100%;
}
.ieditor-join-event-btn:hover { background: var(--color-text); color: var(--color-bg); }
.ieditor-join-event-btn.joined { background: #46b450; border-color: #46b450; color: #fff; }
.participant-count { font-size: 0.8em; margin-top: 5px; opacity: 0.8; }
.event-secret-link { margin-top: 10px; font-size: 0.9em; background: rgba(70, 180, 80, 0.1); padding: 5px; border-radius: 4px; color: #46b450; font-weight: bold; }

/* --- MOBİL UYUM --- */
@media (max-width: 600px) {
    .ieditor-event-card { flex-direction: column; text-align: center; }
    .event-date-box { margin: 0 0 15px 0; width: 100%; height: 40px; flex-direction: row; gap: 10px; }
    .event-info { padding: 0 0 15px 0; }
    .event-organizer { justify-content: center; }
    .event-action { width: 100%; }
}

/* --- YÜZEN ETKİNLİK BUTONU (ÇANIN ÜSTÜNDE) --- */
.ieditor-floating-calendar {
    position: fixed;
    bottom: 95px; /* Çan (25px) + Yükseklik (55px) + Boşluk (15px) */
    right: 25px;
    z-index: 99999;
}
.ieditor-floating-calendar > a {
    display: flex; align-items: center; justify-content: center;
    width: 55px; height: 55px;
    background-color: #E6B905; /* Farklı renk (Altın) */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ieditor-floating-calendar > a:hover { transform: scale(1.1); }
.ieditor-floating-calendar > a::before {
    content: ''; 
    display: block;
    width: 26px; 
    height: 26px;
    background-color: var(--color-text); /* Tema rengine (Siyah/Beyaz) uyumlu */
    
    /* Modern Takvim İkonu Maskesi */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5v-5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5v-5z'/%3E%3C/svg%3E");
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
/* Yazdırmada gizle */
@media print { .ieditor-floating-calendar { display: none; } }
/* --- TAM GENİŞLİK AYARLARI (GÜNCELLENDİ) --- */
.ieditor-event-form-wrapper,
.ieditor-events-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- PASİF BUTON STİLİ (LEVEL 5 ALTI İÇİN) --- */
.ieditor-form input[type="submit"]:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #bbb !important;
    cursor: not-allowed !important;
}
/* Etkinlik Resmi Stili */
.ieditor-event-card .event-image img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .ieditor-event-card .event-image img {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* --- ETKİNLİK KARTLARI VE LİSTESİ TAM GENİŞLİK --- */
.ieditor-events-list,
.ieditor-event-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Etkinlik Kartı Mobilde Daha İyi Görünüm */
@media (max-width: 600px) {
    .ieditor-event-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-action {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
}
/* =========================================================================
 * 34. ETKİNLİK LİSTESİ TASARIM DÜZELTMELERİ (TAM GENİŞLİK & MOBİL FİX)
 * ========================================================================= */

/* 1. Liste Kapsayıcısı */
.ieditor-events-list {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box !important;
}

/* 2. Kart Yapısı (Masaüstü Varsayılan) */
.ieditor-event-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 20px !important;
    background: var(--color-header-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 8px;
    box-sizing: border-box !important;
}

/* Masaüstü Resim */
.ieditor-event-card .event-image {
    flex-shrink: 0;
    margin-right: 20px;
}
.ieditor-event-card .event-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Masaüstü İçerik */
.ieditor-event-card .event-main-content {
    flex-grow: 1 !important;
    min-width: 0;
    margin-right: 20px;
}

/* Masaüstü Buton Alanı */
.ieditor-event-card .event-action {
    flex-shrink: 0;
    width: 160px;
    text-align: center;
}

/* 3. MOBİL UYUM (Kritik Düzeltme - Her Şey Alt Alta) */
@media (max-width: 768px) {
    
    /* Kartı tamamen dikey blok yap */
    .ieditor-event-card {
        display: block !important; /* Flex yerine Block */
        text-align: center !important; /* Her şeyi ortala */
        padding: 20px 15px !important;
    }

    /* Resim: Tam genişlik ve ortada */
    .ieditor-event-card .event-image {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
    .ieditor-event-card .event-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important; /* Çok uzamasın */
        margin: 0 auto !important;
    }

    /* Ana İçerik Bloğu */
    .ieditor-event-card .event-main-content {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }

    /* Tarih ve Başlık Satırı -> Alt Alta Dönüşüm */
    .event-header-row {
        display: flex !important;
        flex-direction: column !important; /* Yan yana DEĞİL, alt alta */
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    /* Tarih Kutusu */
    .event-date-box {
        margin: 0 !important; /* Sağa boşluğu sıfırla */
    }

    /* Başlık Alanı */
    .event-title-area {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Buton ve Aksiyon Alanı */
    .ieditor-event-card .event-action {
        width: 100% !important;
        margin-top: 20px !important;
        border-top: 1px solid var(--color-border); /* Görsel ayrım */
        padding-top: 15px;
    }

    .ieditor-join-event-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1.1em !important;
    }

    /* İsim Listesi */
    .participant-names {
        text-align: center !important;
        margin-top: 10px !important;
    }
}
/* =========================================================================
 * 35. GÜNLÜK GÖREV SİSTEMİ (QUEST BOARD)
 * ========================================================================= */

.ieditor-quest-board {
    background: var(--color-header-bg, #f9f9f9);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid #9b59b6; /* Mor renk: Görev vurgusu */
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border, #ddd);
    padding-bottom: 10px;
}

.quest-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-text, #121212);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-timer {
    font-size: 0.85em;
    color: var(--color-text);
    opacity: 0.7;
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.quest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-item {
    display: flex;
    align-items: center;
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #ddd);
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.quest-item.completed {
    background: rgba(70, 180, 80, 0.1); /* Hafif yeşil */
    border-color: #46b450;
}

.quest-icon {
    font-size: 1.5em;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.quest-details {
    flex-grow: 1;
}

.quest-title {
    font-weight: 700;
    font-size: 0.95em;
    display: block;
    color: var(--color-text);
}

.quest-rewards {
    font-size: 0.8em;
    color: #E6B905; /* Altın rengi */
    font-weight: 600;
}

.quest-progress-area {
    text-align: right;
    min-width: 80px;
}

.quest-status-text {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--color-text);
}

.quest-item.completed .quest-status-text {
    color: #46b450;
}

/* İlerleme Çubuğu (Mini) */
.quest-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}
.quest-progress-fill {
    height: 100%;
    background: #9b59b6;
    transition: width 0.3s ease;
}
.quest-item.completed .quest-progress-fill {
    background: #46b450;
}
/* =========================================================================
 * 36. REAKSİYON SİSTEMİ (EMOJİLER)
 * ========================================================================= */

/* Ana Kapsayıcı (Yıldızlar ve Emojileri Yan Yana Alır) */
.ieditor-interaction-area {
    display: flex;
    flex-wrap: wrap; /* Mobilde alt alta geçsin */
    gap: 30px;
    align-items: flex-start; /* Üstten hizala */
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* Sol (Puan) ve Sağ (Reaksiyon) Kutuları */
.ieditor-rating-section, 
.ieditor-reaction-section {
    flex: 1;
    min-width: 280px; /* Çok daralırsa alt satıra geçsin */
}

.ieditor-section-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: var(--color-text);
}

/* Reaksiyon Butonları Grubu */
.ieditor-reaction-buttons {
    display: flex;
    gap: 8px;
}

/* Tekil Emoji Butonu */
.reaction-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px; /* Hap şeklinde */
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1.2em; /* Emojiyi büyüt */
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
}

/* Hover Efekti */
.reaction-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: var(--color-header-bg);
}

/* Seçili (Aktif) Durum */
.reaction-btn.active {
    background: #E6B905; /* Altın rengi */
    border-color: #E6B905;
    color: #000;
    transform: scale(1.05);
    font-weight: 700;
}

/* Sayı (Counter) */
.reaction-btn .count {
    font-size: 0.75em;
    font-weight: 600;
    opacity: 0.8;
    font-family: sans-serif;
}

/* Mobil Uyum */
@media (max-width: 600px) {
    .ieditor-interaction-area {
        flex-direction: column; /* Mobilde alt alta */
        gap: 20px;
    }
    .ieditor-rating-section, 
    .ieditor-reaction-section {
        width: 100%;
        border-bottom: 1px dashed var(--color-border);
        padding-bottom: 15px;
    }
    .ieditor-reaction-section {
        border-bottom: none;
    }
    /* Emojiler sığmazsa kaydırılabilir olsun */
    .ieditor-reaction-buttons {
        overflow-x: auto;
        padding-bottom: 5px;
    }
}
/* =========================================================================
 * 37. HABER İÇİ ANKET SİSTEMİ
 * ========================================================================= */

.ieditor-poll-wrapper {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 5px solid #E6B905; /* Altın çizgi */
}

.poll-question {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Oylama Seçenekleri (Butonlar) */
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option-btn {
    background-color: var(--color-header-bg) !important; /* Arkaplanı sabitle */
    border: 1px solid var(--color-border);
    padding: 12px 15px;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text) !important; /* Metin rengini temaya zorla */
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.poll-option-btn:hover {
    background-color: var(--color-border) !important; /* Hover rengini sabitle */
    border-color: var(--color-text);
    color: var(--color-text) !important;
}

/* Sonuç Çubukları (Oy verdikten sonra) */
.poll-result-bar {
    background: var(--color-header-bg);
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    height: 40px; /* Yükseklik */
    overflow: hidden;
}

.poll-result-fill {
    background: rgba(230, 185, 5, 0.2); /* Altın şeffaf */
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Kazanan şıkkı vurgula */
.poll-result-bar.winner .poll-result-fill {
    background: rgba(70, 180, 80, 0.3); /* Yeşil */
}

.poll-result-text {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    font-weight: 600;
    color: var(--color-text);
}

.poll-meta {
    margin-top: 15px;
    font-size: 0.85em;
    color: #777;
    text-align: right;
}
/* =========================================================================
 * 45. TOP EDİTÖRLER (HİKAYE MODU) - FLEXBOX İLE KESİN HİZALAMA
 * ========================================================================= */

.ieditor-stories-wrapper {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

/* Kaydırma Alanı */
.ieditor-stories-track {
    display: flex;
    gap: 12px;
    overflow-x: auto; 
    padding: 5px 5px 15px 5px; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.ieditor-stories-track::-webkit-scrollbar { display: none; }

/* Kart Yapısı */
.story-card {
    flex: 0 0 85px; /* Kart genişliği */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

.story-card:hover { transform: translateY(-3px); }

/* --- KRİTİK DÜZELTME: AVATAR ÇERÇEVESİ (FLEX İLE ORTALAMA) --- */
.story-avatar-wrap {
    position: relative;
    
    /* Dış Çerçeve Boyutu (Halka Dahil) */
    width: 68px; 
    height: 68px;
    
    /* Halka Ayarları */
    border: 2px solid #ccc; /* PHP ile renklenir */
    border-radius: 50%;
    
    /* İçerik Hizalama (Resmi tam ortaya çiviler) */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Halka ile Resim Arasındaki Beyaz Boşluk */
    padding: 3px; 
    background-color: var(--color-bg); 
    box-sizing: border-box; /* Padding boyuta dahil */
    
    margin-bottom: 6px;
}

/* Avatar Resmi */
.story-avatar-wrap img.clean-story-avatar {
    /* Resmi kapsayıcının (padding hariç) tamamına yay */
    width: 100%;
    height: 100%;
    
    /* Resmi yuvarlak yap */
    border-radius: 50%;
    
    /* Resmi bozmadan doldur */
    object-fit: cover;
    
    /* Alt boşlukları temizle */
    display: block;
    margin: 0;
    padding: 0;
}

/* Level Rozeti (Sağ Alt Köşe) */
.story-level {
    position: absolute;
    bottom: -2px; /* Konum ayarı */
    right: -2px;
    
    background: #E6B905;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    
    /* Rozet Boyutu */
    width: 20px;
    height: 20px;
    
    /* Yazıyı Ortala */
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 50%;
    border: 2px solid #fff; /* Beyaz kontür */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5;
}

/* İsim Alanı */
.story-info { width: 100%; margin-bottom: 3px; }

.story-name {
    display: block;
    font-size: 0.85em; /* Okunabilirlik için tık büyüdü */
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 2px;
    
    /* İsim Taşma Kontrolü (Max 2 satır) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.3em; /* Hizalama bozulmasın diye sabit yükseklik */
}

.story-xp {
    font-size: 0.75em;
    color: #888;
    display: block;
}

/* İstatistik Kutusu */
.story-stats {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 0.75em;
    color: var(--color-text);
    opacity: 0.8;
    background: var(--color-header-bg);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

/* Gece Modu Ayarları */
html[data-theme="dark"] .story-level { border-color: #333; }
html[data-theme="dark"] .story-avatar-wrap { background-color: #121212; }
/* =========================================================================
 * 40. TAKIM SOHBET (CHAT) MODÜLÜ - FINAL GRID SYSTEM
 * ========================================================================= */

/* 1. ANA KAPSAYICI (SABİT POZİSYON - MODAL) */
.team-chat-wrapper {
    position: fixed; /* Sayfanın neresinde olursan ol sabit */
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; /* Masaüstü genişlik */
    height: 600px; /* Masaüstü yükseklik */
    max-height: 90vh;
    background: var(--color-bg);
    z-index: 999999; /* En üst katman */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--color-border);
    
    /* GRID DÜZENİ (KESİN ÇÖZÜM) */
    display: grid;
    grid-template-rows: 60px 1fr 70px; /* Header - Mesajlar - Input */
    overflow: hidden;
}

/* 2. HEADER (SABİT) */
.chat-header {
    background: #E6B905;
    color: #000;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 800; font-size: 1.1em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Çıkış Butonu (Tam Daire) */
.chat-header .close-chat {
    width: 36px !important; height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.2);
    border: none; color: #000;
    font-size: 18px; font-weight: 900;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
}
.chat-header .close-chat:hover { background: rgba(255,255,255,0.4); }

/* 3. MESAJ ALANI (KAYDIRILABİLİR) */
.chat-messages {
    background: #f4f4f4;
    padding: 15px;
    overflow-y: auto; /* Sadece burası kayar */
    display: flex; flex-direction: column; gap: 12px;
    -webkit-overflow-scrolling: touch;
}
html[data-theme="dark"] .chat-messages { background: #1a1a1a; }

/* Mesaj Satırı */
.chat-message { display: flex; align-items: flex-end; gap: 10px; width: 100%; }

/* Avatar (Orantılı) */
.chat-avatar { 
    width: 36px !important; height: 36px !important; 
    min-width: 36px !important;
    border-radius: 50%; object-fit: cover; 
    border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Baloncuk (Orantılı) */
.msg-bubble {
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.95em; line-height: 1.4;
    max-width: 75%; /* Genişlik Sınırı */
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-message.msg-me { flex-direction: row-reverse; }
.msg-me .msg-bubble { 
    background: #E6B905; color: #000; 
    border-bottom-right-radius: 2px; text-align: left; 
}

.chat-message.msg-other { flex-direction: row; }
.msg-other .msg-bubble { 
    background: #fff; color: #333; 
    border-bottom-left-radius: 2px; 
}
html[data-theme="dark"] .msg-other .msg-bubble { 
    background: #2d2d2d; color: #fff; border: 1px solid #444; 
}

.msg-author { display: block; font-size: 0.75em; font-weight: 800; margin-bottom: 3px; opacity: 0.8; }
.msg-time { display: block; font-size: 0.65em; opacity: 0.6; text-align: right; margin-top: 4px; font-style: italic; }
.msg-text { margin: 0; }

/* 4. INPUT ALANI (SABİT ALT) */
.chat-input-area {
    background: var(--color-header-bg);
    border-top: 1px solid var(--color-border);
    padding: 0 15px;
    display: flex; align-items: center; gap: 10px;
    z-index: 2;
}

.chat-input-area input {
    flex: 1; height: 44px;
    border-radius: 22px; border: 1px solid var(--color-border);
    padding: 0 15px; font-size: 16px; outline: none;
    background: var(--color-bg); color: var(--color-text);
}
.chat-input-area input:focus { border-color: #E6B905; }

/* Gönder Butonu (Tam Daire) */
.chat-input-area button {
    width: 44px !important; height: 44px !important;
    min-width: 44px !important; /* Ezilme koruması */
    border-radius: 50% !important;
    background: #E6B905; color: #000; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.2em; padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 5. MOBİL UYUM (TAM EKRAN OVERLAY) */
@media (max-width: 768px) {
    .team-chat-wrapper {
        top: 0; left: 0; transform: none;
        width: 100%; height: 100%; max-height: none;
        height: 100dvh; /* Adres çubuğu fix */
        border-radius: 0;
        
        /* Mobilde Grid Satırlarını Ayarla */
        /* Header(Güvenli alan dahil) - Mesajlar - Input(Güvenli alan dahil) */
        grid-template-rows: min-content 1fr min-content;
    }
    
    .chat-header {
        padding-top: max(15px, env(safe-area-inset-top)); /* Çentik */
        height: 60px; box-sizing: content-box; /* Yüksekliğe padding ekle */
    }
    
    .chat-input-area {
        padding-bottom: max(15px, env(safe-area-inset-bottom)); /* Alt çizgi */
        height: 60px; box-sizing: content-box;
    }
}
/* =========================================================================
 * 50. DÜELLO (PVP) ARENA STİLLERİ (GÜNCELLENDİ: Responsive & Tema Uyumlu)
 * ========================================================================= */

.ieditor-duels-wrapper {
    width: 100%; /* Tam genişlik */
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ieditor-duel-card {
    /* DİNAMİK RENKLER: Temanın değişkenlerini kullanıyoruz */
    background: var(--color-header-bg); 
    color: var(--color-text);
    border: 1px solid var(--color-border);
    
    border-radius: 15px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ieditor-duel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.duel-header {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.02); /* Hafif koyuluk */
    border-bottom: 1px solid var(--color-border);
}

.duel-header h3 {
    margin: 0 0 10px 0;
    color: #E6B905; /* Altın rengi sabit kalsın */
    font-size: 1.8em;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

.duel-timer {
    font-family: monospace;
    font-size: 1.1em;
    background: var(--color-text); /* Zıt renk */
    color: var(--color-bg); /* Zıt renk */
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Savaşçılar Alanı */
.duel-fighters {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Mobilde hizalama sorunu için */
    padding: 30px;
    position: relative;
    gap: 20px;
}

.fighter {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0; /* Flex taşma koruması */
}

.fighter img.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--color-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

.fighter-a img.avatar { border-color: #e74c3c; } /* Kırmızı Takım */
.fighter-b img.avatar { border-color: #3498db; } /* Mavi Takım */

.fighter-name { 
    font-size: 1.2em; 
    font-weight: 800;
    color: var(--color-text-heading);
    line-height: 1.2;
}

.fighter-odds { 
    font-size: 0.95em; 
    opacity: 0.8; 
    color: var(--color-text);
    font-weight: 600;
    background: var(--color-bg);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* VS Ortası */
.duel-vs {
    width: 50px;
    height: 50px;
    background: #E6B905;
    color: #000; /* Her zaman siyah yazı */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3em;
    font-style: italic;
    z-index: 2;
    box-shadow: 0 0 15px rgba(230, 185, 5, 0.6);
    flex-shrink: 0; /* Küçülmesin */
    margin-top: 25px; /* Avatar hizasına getirmek için */
}

/* Butonlar */
.read-argument-btn {
    font-size: 0.9em;
    color: var(--color-link);
    text-decoration: underline;
    margin-bottom: 5px;
    font-weight: 600;
}

.ieditor-bet-btn {
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%; /* Mobilde tam genişlik */
    max-width: 200px;
    font-size: 0.9em;
}
.ieditor-bet-btn:hover { 
    transform: scale(1.05); 
    opacity: 0.9;
}

.btn-a { background: #e74c3c; color: #fff; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); }
.btn-b { background: #3498db; color: #fff; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }

/* Progress Bar */
.duel-bar-container {
    height: 24px;
    background: var(--color-border);
    display: flex;
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.duel-bar-fill { 
    height: 100%; 
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
}
.duel-bar-fill.a { background: #e74c3c; }
.duel-bar-fill.b { background: #3498db; }

.duel-total-pool {
    text-align: center;
    padding: 15px;
    background: rgba(230, 185, 5, 0.1); /* Şeffaf sarı */
    color: #E6B905;
    font-weight: 800;
    border-top: 1px solid var(--color-border);
}

/* GECE MODU DÜZELTMELERİ (Ekstra Garanti) */
html[data-theme="dark"] .ieditor-duel-card {
    background-color: #1e1e1e; /* Koyu gri */
    border-color: #333;
}
html[data-theme="dark"] .duel-header {
    background-color: rgba(255,255,255,0.05);
}

/* MOBİL UYUM (Responsive) */
@media (max-width: 768px) {
    .duel-fighters { 
        flex-direction: column; 
        align-items: center;
        gap: 30px; 
    }
    
    .fighter {
        width: 100%;
    }

    .duel-vs { 
        margin: 0; 
        width: 40px; height: 40px; font-size: 1em;
    }
    
    .ieditor-bet-btn { 
        width: 100%; 
        max-width: 100%; 
    }
    
    .duel-header h3 {
        font-size: 1.4em;
    }
}