/* =================================================================
   İÇİNDEKİLER
   =================================================================
   1. TEMEL STİLLER (RESET, BODY, LİNKLER)
   2. ANA SAYFA YERLEŞİMİ (CSS GRID)
   3. ANA BİLEŞENLER (SIDEBAR, HEADER, CONTENT, FOOTER)
   4. GENEL FORM BİLEŞENLERİ
   5. SAYFAYA ÖZEL STİLLER
      - Anasayfa Görünüm Değiştirici ve Yazı Listesi
      - Tekil Yazı Sayfası (yazi.php)
      - Yazı Yazma Formu (yazi_yaz.php)
   6. MOBİL UYUMLULUK (RESPONSIVE)
   ================================================================= */

:root {  
    /* --- YENİ MOR TEMA --- */
    --ana-renk: #2600ff;          /* Ana Vurgu Rengi (Orta Mor) */
    --ikincil-renk: #2600ff;      /* İkincil Vurgu (Canlı Mor) */
    --link-rengi: #2600ff;          /* Link Rengi */
    --link-hover-rengi: #2600ff;  /* Link Hover (Koyu Mor) */
    
    --ana-renk-rgb: 155, 89, 182;   /* Ana Mor RGB */
    --ikincil-renk-rgb: 191, 85, 236; /* İkincil Mor RGB */
    
    /* --- MOR TEMA İÇİN YENİ SEMANTİK RENKLER --- */
    /* Kırmızı/yeşil/sarı yerine kullanacağımız mor tonları */
    --mor-basari: #2600ff;  /* Başarı için (Koyu Mor) */
    --mor-tehlike: #2600ff; /* Tehlike için (Pembe-Mor) */
    --mor-uyari: #2600ff;  /* Uyarı için (Orkide) */
    --mor-bilgi: #2600ff;   /* Bilgi için (Ana Mor) */
    
    /* --- KOYU TEMA (Bunlar harika, dokunmuyoruz) --- */
    --arkaplan-rengi: #202225;
    --sidebar-arkaplan: #110D26;
    --icerik-arkaplan: #3934645e;
    --kenarlik-rengi: #2f3136;
    --ana-yazi-rengi: #dcddde;
    --ikincil-yazi-rengi: #72767d;
    --baslik-rengi: #ffffff;
}
   /* =================================================================
   1. TEMEL STİLLER (RESET, BODY, LİNKLER)
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color:#110D26;
    color: #f2f2f2;
    font-size: 16px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =================================================================
   2. ANA SAYFA YERLEŞİMİ (CSS GRID)
   ================================================================= */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 70px 1fr auto;
    grid-template-areas:
        "sidebar header"
        "sidebar content"
        "sidebar footer";
    height: 100vh;
    overflow-x: hidden;
}

/* =================================================================
   3. ANA BİLEŞENLER (SIDEBAR, HEADER, CONTENT, FOOTER)
   ================================================================= */

/* --- Sidebar (Sol Menü) --- */
.app-sidebar {
    grid-area: sidebar;
    background-color:  #0B0A23;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #36393f;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.logo-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #7289da;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 0;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #a7a7a7;
    border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover {
    background-color: #110D26;
    color: #fff;
}

.sidebar-nav ul li a.active {
    background-color:  #241630;
    color: #fff;
    border-left-color: #7289da;
}

.sidebar-nav i {
    width: 25px;
    margin-right: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #36393f;
}

/* --- Header (Üst Bar) --- */
.app-header {
    grid-area: header;
    background-color: #0B0A23;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #36393f;
}

/* Arama çubuğunun ana kapsayıcısı */
.search-bar {
    position: relative; /* Butonu içine yerleştirebilmek için */
    display: flex;
    align-items: center;
}

/* Arama giriş kutusu */
.search-bar .form-control {
    height: 45px;
    border-radius: 25px; /* Yuvarlak kenarlar */
    border: 1px solid #444;
    background-color: #0080ff; /* Koyu tema için arkaplan */
    color: #fff;
    padding-left: 20px;
    
    /* Buton için sağda boşluk bırakıyoruz */
    padding-right: 50px; 
}

/* Arama giriş kutusu odaklandığında (tıklandığında) */
.search-bar .form-control:focus {
    background-color: #0B0A23;
    border-color: #007bff; /* Odaklanma rengi */
    box-shadow: none; /* Bootstrap'in varsayılan gölgesini kaldır */
}

/* Arama butonu */
.search-bar .search-button {
    position: absolute; /* Kapsayıcının içine yerleştir */
    right: 0;
    top: 0;
    height: 100%;
    
    /* Butonun kendi stillerini sıfırla */
    border: none; 
    background: transparent;
    padding: 0 18px;
    
    /* İkon rengi */
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

/* Butonun üzerine gelindiğinde ikon rengini değiştir */
.search-bar .search-button:hover {
    color: #fff;
}

/* Aktif Kullanıcı için Yeşil Çerçeve ve Işıma Efekti */
.user-profile-link.active .user-avatar {
    border: 2px solid var(--ana-renk); /* Mor çerçeve */
    box-shadow: 0 0 10px rgba(var(--ana-renk-rgb), 0.8); /* Mor ışıma */
}

/* Profil fotoğrafı olmayan kullanıcılar için placeholder stili */
.user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* user-avatar ile aynı boyutta olmalı */
    height: 40px; /* user-avatar ile aynı boyutta olmalı */
    border-radius: 50%;
    background-color: #4a5158;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-name {
    margin-right: 15px;
    font-weight: 500;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Ana İçerik Alanı --- */
.app-content {
    grid-area: content;
    overflow-y: auto;
    padding: 30px;
}

.content-wrapper {
    background-color:  #110D26;
    padding: 30px;
    border-radius: 8px;
}

/* --- Footer (Alt Bilgi) --- */
.app-footer {
    grid-area: footer;
    background-color: #0B0A23;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #a7a7a7;
    border-top: 1px solid #36393f;
}

/* =================================================================
   4. GENEL FORM BİLEŞENLERİ
   ================================================================= */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    background-color:#110D26 !important;
    color: #f2f2f2 !important;
    border: 1px solid #3e4247 !important;
    border-radius: 5px !important;
    padding: 10px 15px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    width: 100%;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--ana-renk) !important;
    box-shadow: 0 0 0 4px rgba(var(--ana-renk-rgb), 0.25) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #8e9297;
    opacity: 1;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background-color: #7289da;
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #5f73bc;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #4f545c;
    color: #f2f2f2;
}
.btn-secondary:hover {
    background-color: #686e78;
    color: #f2f2f2;
}

.btn-danger {
    background-color: #ed4245;
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #c93437;
    color: #ffffff;
}

/* =================================================================
   5. SAYFAYA ÖZEL STİLLER
   ================================================================= */

/* --- Anasayfa Görünüm Değiştirici ve Yazı Listesi --- */
.btn-icon {
    padding: 8px 12px;
    font-size: 1.1rem;
}

.blog-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.blog-grid-view .blog-post-summary {
    display: flex; /* Flexbox'ı grid içinde de kullanabiliriz */
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: 1px solid #36393f;
    background: #110D26;
    border-radius: 8px; /* Dış çerçeveye yuvarlaklık */
    overflow: hidden; /* İçerideki resmin köşelerini kesmek için */
}

.blog-grid-view .post-thumbnail {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 15px;
}

.blog-grid-view .post-content {
    padding: 0 20px 20px 20px;
    width: 100%; /* İçeriğin tam genişliği kaplaması için */
}

.blog-list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-list-view .blog-post-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    border: 1px solid #0055ff;
    border-radius: 8px;
}

.blog-list-view .post-thumbnail {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    margin-right: 25px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
  .post-content p {
    /* Metnin en fazla 3 satır yer kaplamasını sağlıyoruz */
    /* (font-size * line-height * satır sayısı) -> (16px * 1.6 * 3) = ~76px */
    max-height: 77px; 
    position: relative; /* ::after elementini konumlandırmak için gerekli */
    overflow: hidden; /* Taşmasını engelliyoruz */
    margin: 10px 0 15px;
    color: #a7a7a7;
}

/* Yazının sonuna "sis" efektini ekleyen katman */
.post-content p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Sisin ne kadar yüksek olacağı */
    /* Geçiş: Şeffaftan kartın arka plan rengine doğru */
 background: linear-gradient(to bottom, 
    rgba(17, 13, 38, 0) 40%, 
    rgba(17, 13, 38, 0.8) 80%, 
    rgba(17, 13, 38, 1) 100%
);
}
.post-meta {
    font-size: 0.8rem;
    color: #0037ff;
    margin-bottom: 10px;
}
.post-meta span {
    margin-right: 15px;
}

/* --- Tekil Yazı Sayfası (yazi.php) --- */
.single-post-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-full-content {
    
    font-size: 1.1rem;
    color: #e0e0e0;
max-height: 500px; /* İçeriğin yüksekliğini sınırlayın, ihtiyaca göre değiştirebilirsiniz */
    overflow-y: auto;  /* Dikey kaydırma çubuğu ekler */
    overflow-x: hidden; /* Yatay kaydırmayı engeller */
    word-wrap: break-word; /* Kelimelerin taşmasını engeller */
    white-space: normal;
}

.post-actions {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #36393f;
    border-bottom: 1px solid #36393f;
}

/* --- Yorumlar Bölümü (Nihai ve Düzeltilmiş Hali) --- */
.comments-section h3 {
    margin-bottom: 20px;
}

.comment-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background:#110D26;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #36393f;
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7289da;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    color: #e0e0e0;
    font-weight: 500;
}

.comment-date {
    color: #a7a7a7;
    font-size: 0.8rem;
}

/* YORUM TAŞMASINI ENGELLEYEN KESİN KURAL */
.comment-text {
    margin: 0;
    color: #f2f2f2;
    
    /* Bu kurallar, metnin her durumda kutu içinde kalmasını sağlar */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
}
/* --- Yazı Yazma Formu (yazi_yaz.php) --- */
.writing-form-container {
    padding: 30px;
    border-radius: 8px;
    background-color:  #14184A;
}

.writing-form .form-label {
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 8px;
}

#char-counter {
    font-size: 0.9rem;
    color: #a7a7a7;
    transition: color 0.3s ease;
}
#char-counter.warning {
    color: #ffc107;
}
#char-counter.error {
    color: #dc3545;
}

/* =================================================================
   6. MOBİL UYUMLULUK (RESPONSIVE)
   ================================================================= */
@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr auto;
        grid-template-areas:
            "header"
            "content"
            "footer";
    }

    .app-sidebar {
        display: none;
    }

    .app-header {
        padding: 0 15px;
    }

    .search-bar {
        width: 150px;
    }

    .user-name {
        display: none;
    }

    .app-content {
        padding: 15px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .blog-grid-view {
        grid-template-columns: 1fr;
    }

    .blog-grid-view .post-thumbnail {
        height: 180px;
    }

    .blog-list-view .blog-post-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-list-view .post-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}


/* --- Paylaşım Butonları Stilleri --- */
.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Butonlar arası boşluk */
}
/* =================================================================
   BUTON RENK VE STİL İYİLEŞTİRMELERİ
   ================================================================= */

/* Beğen Butonu (Outline) */
.btn-outline-danger {
    color: #ed4245;
    border-color: #ed4245;
}
.btn-outline-danger:hover {
    color: #fff;
    background-color: #ed4245;
    border-color: #ed4245;
}

/* Beğenildi Butonu (Dolu) */
.btn-danger, .btn-danger:hover {
    background-color: #ed4245;
    border-color: #ed4245;
    color: #fff;
}

/* Paylaş Butonu */
.btn-outline-info {
    color: #00b8d4;
    border-color: #00b8d4;
}
.btn-outline-info:hover {
    color: #fff;
    background-color: #00b8d4;
    border-color: #00b8d4;
}

/* Kopyalandı Butonu */
.btn-success, .btn-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* Yazıyı Bildir Butonu */
.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}
.btn-outline-warning:hover {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}







/* --- Sadece Metin İçin Rengarenk Animasyon --- */

/* Renk döngüsünü tanımlayan animasyon (Sadece renk değiştirir) */
@keyframes rainbow-text-flow {
    0%, 100% { color: #ff8b8b; }
    16%      { color: #ffc78b; }
    32%      { color: #fffb8b; }
    48%      { color: #b4ff8b; }
    64%      { color: #8bffdb; }
    80%      { color: #8b91ff; }
}

/* Animasyonu sadece .rainbow-text-anim sınıfına sahip span'e uygula */
.rainbow-text-anim {
    animation: rainbow-text-flow 6s linear infinite;
    font-weight: 500; /* Metni biraz daha belirgin yapabilir */
}

/* İkonun renginin sabit kalmasını sağla */
.sidebar-nav ul li a i {
    color: #a7a7a7; /* İkonların varsayılan rengi */
}


/* =================================================================
   SAYFALAMA (PAGINATION) - MODERN TASARIM
   ================================================================= */

/* Butonları saran ana kutu */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Bootstrap'in varsayılan ul etiketini sıfırlama */
.pagination {
    --bs-pagination-focus-box-shadow: none; /* Odaklanma gölgesini kaldır */
    display: flex;
    gap: 10px; /* Butonlar arasına boşluk koy */
}

/* Genel sayfa linkleri (butonlar) */

.page-link {
  font-family: var(--font-ana);
  font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, #8e2de2, #000000); /* Mor → Siyah */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Daire formu */
  width: 45px;
  height: 45px;
  border-radius: 50%;

  /* Ortalama */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Arka plan şeffaf */
  background-color: transparent;
  border: 1px solid rgba(142, 45, 226, 0.4); /* Mor kenarlık, hafif şeffaf */

  /* Yumuşak animasyon geçişleri */
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 0 8px rgba(142, 45, 226, 0.15);
}

/* Hover efekti */
.page-link:hover {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgb(141, 45, 226);
  border-color: #8e2de2;
}

/* Parlayan çizgi efekti */
.page-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(142, 45, 226, 0.4),
    transparent
  );
  transform: skewX(-25deg);
}

.page-link:hover::before {
  animation: parlayan-efekt 0.6s ease forwards;
}

@keyframes parlayan-efekt {
  from { left: -75%; }
  to { left: 125%; }
}

/* Basılınca hafif geri sekme */
.page-link:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(142, 45, 226, 0.25);
}




/* Tıklanılan, aktif olan sayfa */
.page-item.active .page-link {
    background-color: var(--vurgu-rengi);
    border-color: var(--vurgu-rengi);
    color: #fff;
    font-weight: 700;
}

/* Tıklanamayan (disabled) butonlar */
.page-item.disabled .page-link {
    background-color: transparent;
    color: #4f545c;
    border-color: transparent;
}

/* Önceki ve Sonraki butonlarının metinlerini gizleyip ikon gösterelim (isteğe bağlı) */
.page-link[href*="Önceki"],
.page-link[href*="Sonraki"] {
    font-size: 0; /* Metni gizle */
}
.page-link[href*="Önceki"]::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f053"; /* Sol ok ikonu */
    font-size: 1rem;
}
.page-link[href*="Sonraki"]::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054"; /* Sağ ok ikonu */
    font-size: 1rem;
}



/* --- Yazılar İçin Renk Geçişi (Gradient) Efekti --- */
.text-gradient-blue-red {
    /* 1. Arka planı istediğimiz renk geçişi yapıyoruz */
    background: linear-gradient(90deg, #3b91ff, #ff3b3b);

    /* 2. Arka planı sadece metnin kapladığı alana kırpıyoruz */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. Metnin kendi rengini şeffaf yapıyoruz ki arkadaki renk geçişi görünsün */
    color: transparent;

    /* Ekstra: Metnin daha belirgin görünmesi için */
    font-weight: 600;
}




/* =================================================================
   ADMİN PANELİ DASHBOARD STİLLERİ (YENİ)
   ================================================================= */
.dashboard-stat-card {
    background: var(--icerik-arkaplan); /* Arka plan rengi */
    border: 1px solid var(--kenarlik-rengi); /* İnce kenarlık */
    border-radius: 12px; /* Daha yuvarlak köşeler */
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease-in-out; /* Yumuşak geçişler */
    box-shadow: 0 4px 15px rgb(255, 255, 255); /* Hafif gölge */
    position: relative;
    overflow: hidden; /* Animasyonlar için */
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Üstte ince renkli çizgi */
    background: linear-gradient(90deg, var(--ana-renk), var(--ikincil-renk)); /* Tema renklerinde gradyan */
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%); /* Başlangıçta gizli */
}

.dashboard-stat-card:hover {
    transform: translateY(-8px); /* Hafif yukarı kayma */
    box-shadow: 0 12px 30px rgb(255, 0, 0); /* Gölge büyümesi */
    border-color: var(--ana-renk); /* Hover'da kenarlık rengi değişimi */
}

.dashboard-stat-card:hover::before {
    transform: translateY(0); /* Çizginin görünür olması */
}

.stat-card-icon {
    font-size: 2.2rem; /* İkon boyutu */
    margin-bottom: 15px;
    color: var(--ana-renk); /* Ana temaya uygun ikon rengi */
    line-height: 1; /* Satır yüksekliği */
    transition: color 0.3s ease-in-out;
}

.dashboard-stat-card:hover .stat-card-icon {
    color: var(--ikincil-renk); /* Hover'da ikon rengi değişimi */
}

.stat-card-info h3 {
    margin: 0;
    font-size: 2.8rem; /* Büyük sayı */
    font-weight: 700;
    color: var(--baslik-rengi); /* Başlık rengi */
    transition: color 0.3s ease-in-out;
}

.dashboard-stat-card:hover .stat-card-info h3 {
    color: #ffffff; /* Hover'da sayı rengi beyaz */
}

.stat-card-info p {
    margin: 0;
    color: var(--ikincil-yazi-rengi);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase; /* Metni büyük harf yap */
    letter-spacing: 0.5px; /* Harf aralığı */
    transition: color 0.3s ease-in-out;
}

.dashboard-stat-card:hover .stat-card-info p {
    color: var(--ana-renk); /* Hover'da açıklama rengi değişimi */
}

/* Dashboard Widget'lar (Listeler) */
.dashboard-widget {
    background-color: var(--icerik-arkaplan);
    border: 1px solid var(--kenarlik-rengi);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(0, 26, 255);
    transition: all 0.3s ease-in-out;
}

.dashboard-widget:hover {
    box-shadow: 0 12px 30px rgba(0, 136, 7, 0.4);
    border-color: var(--ikincil-renk);
}

.dashboard-widget .card-header {
    background-color: rgba(var(--ana-renk-rgb), 0.1);
    font-weight: 600;
    color: var(--baslik-rengi);
    border-bottom: 1px solid var(--kenarlik-rengi);
    padding: 18px 25px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-widget .card-header .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.dashboard-widget .card-header .btn:hover {
    background-color: var(--ana-renk);
    color: #fff;
    border-color: var(--ana-renk);
}

.dashboard-widget .list-group-item {
    background-color: transparent;
    border-bottom: 1px solid var(--kenarlik-rengi) !important;
    padding: 15px 25px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex; /* Düzgün hizalama için */
    justify-content: space-between;
    align-items: center;
}

.dashboard-widget .list-group-item:last-child {
    border-bottom: none !important;
}

.dashboard-widget .list-group-item:hover {
    background-color: rgba(var(--ana-renk-rgb), 0.08); /* Hafif vurgulu hover */
    transform: translateX(5px); /* Hafif sağa kayma animasyonu */
}

.dashboard-widget .list-group-item a {
    color: var(--link-rengi);
    text-decoration: none;
    font-weight: 500;
}
.dashboard-widget .list-group-item a:hover {
    text-decoration: underline;
    color: var(--link-hover-rengi);
}

.list-item-text {
    flex-grow: 1; /* Geri kalan alanı kapla */
    margin-right: 15px;
}

.list-item-meta {
    font-size: 0.85rem;
    color: var(--ikincil-yazi-rengi);
    white-space: nowrap; /* Metnin tek satırda kalmasını sağlar */
}


/* Onay Bekleyen Yorumlar için özel stil */
.yorum-actions {
    display: flex;
    gap: 8px; /* Butonlar arası boşluk */
}

.yorum-actions .btn {
    width: 35px; /* Sabit buton genişliği */
    height: 35px; /* Sabit buton yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px; /* Yuvarlak köşeler */
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.yorum-actions .btn-success {
    background-color: #22c55e;
    border-color: #22c55e;
}
.yorum-actions .btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
}

.yorum-actions .btn:hover {
    transform: scale(1.05); /* Hover'da hafif büyüme */
    filter: brightness(1.1); /* Hafif parlama */
}


/* Hızlı Eylem Butonları */
.dashboard-quick-actions {
    margin-top: 4rem !important; /* Diğer öğelerden daha fazla boşluk */
    padding-top: 2rem;
    border-top: 1px dashed rgba(var(--ikincil-renk-rgb), 0.3); /* Kesik çizgili ayırıcı */
}

.dashboard-quick-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    background-color: transparent; /* Varsayılan olarak şeffaf */
    border-width: 2px; /* Kalın kenarlık */
}

.dashboard-quick-actions .btn:hover {
    transform: translateY(-5px); /* Hover'da yukarı kayma */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Gölge efekti */
}

/* Renklerle uyumlu hızlı eylem butonları */
.dashboard-quick-actions .btn-outline-primary {
    color: #7289da;
    border-color: #7289da;
}
.dashboard-quick-actions .btn-outline-primary:hover {
    background-color: #7289da;
    color: #fff;
}

.dashboard-quick-actions .btn-outline-success {
    color: #22c55e;
    border-color: #22c55e;
}
.dashboard-quick-actions .btn-outline-success:hover {
    background-color: #22c55e;
    color: #fff;
}

.dashboard-quick-actions .btn-outline-info {
    color: #00b8d4;
    border-color: #00b8d4;
}
.dashboard-quick-actions .btn-outline-info:hover {
    background-color: #00b8d4;
    color: #fff;
}

.dashboard-quick-actions .btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}
.dashboard-quick-actions .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #fff;
}

/* Küçük ekranlar için düzenlemeler */
@media (max-width: 767.98px) {
    .dashboard-stat-card {
        padding: 20px;
    }
    .stat-card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .stat-card-info h3 {
        font-size: 2.2rem;
    }
    .stat-card-info p {
        font-size: 0.85rem;
    }
    .dashboard-widget .card-header {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .dashboard-widget .list-group-item {
        padding: 12px 20px;
    }
    .dashboard-quick-actions .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}


/* --- Özel CAPTCHA Stilleri --- */
.captcha-container .captcha-image {
    border-radius: 5px;
    border: 1px solid var(--kenarlik-rengi);
}
.captcha-container input {
    max-width: 150px; /* Giriş kutusunun genişliğini sınırlar */
}

/* --- Kullanıcı Listesi Tablosu Stilleri --- */
.table .user-list-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--vurgu-rengi);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.table .user-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.table .user-list-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ana-yazi-rengi);
}
/* Tablo satırlarının üzerine gelince hafif parlama efekti */
.table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: rgba(255, 255, 255, 0.07);
}


a.dashboard-stat-card-link {
    text-decoration: none;
    color: inherit;
}


/* Aktif durumunun yanındaki yanıp sönen nokta */
.status-aktif::before {
    content: '●'; /* Yuvarlak nokta karakteri */
    color: #22c55e;
    margin-right: 8px;
    font-size: 0.8em;
    vertical-align: middle;
    /* Yanıp sönme animasyonu */
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* --- Profil Düzenleme Sayfası Checkbox Stili --- */
.form-check-input {
    background-color: #4f545c;
    border-color: #6c757d;
}
.form-check-input:checked {
    background-color: var(--vurgu-rengi);
    border-color: var(--vurgu-rengi);
}

/* =================================================================
   HEADER KULLANICI PROFİLİ İYİLEŞTİRMELERİ
   ================================================================= */
.user-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 25px; /* Yuvarlak kenarlar */
    transition: background-color 0.3s ease;
}

.user-profile-link:hover {
    background-color: var(--kenarlik-rengi); /* Üzerine gelince hafif arka plan */
}

.user-profile .user-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ana-yazi-rengi);
    margin-right: 12px;
}

.user-profile .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--vurgu-rengi); /* Fotoğraf etrafına vurgu rengiyle çerçeve */
}

/* Giriş Yap butonu için de bir stil */
.app-header .btn-primary {
    padding: 8px 20px;
    font-weight: 600;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--kenarlik-rengi);
    color: var(--ikincil-yazi-rengi);
    font-size: 0.6rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}











/* Profil üst bölümü */
.profile-header {
  display: flex;
  align-items: center;
  background: #2b2f3a;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #3c404b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  font-weight: bold;
  color: #ffb400;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffb400;
}

.profile-info {
  margin-left: 25px;
}

.profile-info h1 {
  margin: 0 0 5px 0;
  font-size: 28px;
  color: #ffffff;
}

.profile-info p {
  margin: 0;
  color: #aaa;
}

/* Aktif durumu */
.status-aktif {
  background-color: #28a745;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
}



.blog-post-summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.blog-post-summary .post-thumbnail {
  flex: 0 0 180px;
  overflow: hidden;
}

.blog-post-summary .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-summary .post-content {
  padding: 20px;
  flex: 1;
}

.blog-post-summary .post-content h3 a {
  color: #ffb400;
  text-decoration: none;
  transition: color .2s;
}

.blog-post-summary .post-content h3 a:hover {
  color: #ffd87c;
}

.blog-post-summary .post-meta {
  color: #aaa;
  font-size: 13px;
  margin: 5px 0 10px 0;
}

/* Butonlar */
.blog-post-summary .btn {
  border-color: #ffb400;
  color: #ffb400;
  transition: all .2s ease;
}

.blog-post-summary .btn:hover {
  background: #ffb400;
  color: #1c1f26;
}

/* Yorumlar listesi */
.list-group-item.bg-dark {
  background-color: #2b2f3a !important;
  border: none;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.list-group-item.bg-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.list-group-item.bg-dark p {
  color: #f1f1f1;
  margin-bottom: 5px;
}

.list-group-item.bg-dark a {
  color: #aaa !important;
  text-decoration: none;
  font-size: 0.8rem;
}

.list-group-item.bg-dark a:hover {
  color: #ffb300 !important;
}

/* Başlıklar */
h4.mb-3 {
  border-bottom: 2px solid #ffb400;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-info {
    margin-left: 0;
    margin-top: 15px;
  }
  .blog-post-summary {
    flex-direction: column;
  }
  .blog-post-summary .post-thumbnail {
    width: 100%;
    height: 200px;
  }
}


.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 en-boy oranını korur */
    background-color: #000; /* Video yüklenmezse siyah bir kutu gösterir */
}

/* Kapsayıcının içindeki iframe (video oynatıcı) */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;

    /* =================================================================
   YENİ: MOBİL SIDEBAR UYUMLULUĞU
   ================================================================= */

/* Mobil menü açma butonu (hamburger) */
.mobile-menu-toggle {
    display: none; /* Masaüstünde gizli */
    background: none;
    border: none;
    color: var(--ana-yazi-rengi);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1050; /* Menünün üzerinde kalması için */
    margin-right: 15px; /* Arama çubuğu ile arasına boşluk koyar */
}

/* Mevcut @media bloğunu güncelliyoruz */
@media (max-width: 768px) {

    /* Hamburger menü butonunu mobilde göster */
    .mobile-menu-toggle {
        display: block;
    }

    /* Mevcut .app-sidebar kuralını güncelliyoruz. Eskisini silip bunu kullanabilirsin. */
    .app-sidebar {
        position: fixed; /* Sayfa kaysa bile yerinde kalır */
        top: 0;
        left: 0;
        height: 100%;
        width: 260px; /* Genişliği sabit */
        transform: translateX(-100%); /* Tamamen sola gizle */
        transition: transform 0.3s ease-in-out; /* Yumuşak açılış/kapanış */
        z-index: 1040; /* İçeriğin üzerinde görünmesi için */
    }

    /* Menü açıldığında (JavaScript ile bu class eklenecek) */
    .app-sidebar.is-visible {
        transform: translateX(0); /* Ekranın içine kaydır */
        box-shadow: 5px 0 15px rgba(0,0,0,0.2); /* Daha belirgin olması için gölge */
    }

    /* Arama çubuğundan sağdaki boşluğu kaldırıyoruz, çünkü buton geldi */
    .search-bar {
        margin-right: 0;
    }
}

.profile-info .admin-badge {
    color: var(--mor-tehlike) !important;  /* Mor tonu, öncelikli */
    font-weight: 600;
    background: rgba(199, 21, 133, 0.12); /* --mor-tehlike'nin rgba'sı */
    border: 1px solid rgba(199, 21, 133, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Mobilde butonların üst üste gelmemesi için */
@media (max-width: 768px) {
    #pasifYazilar td .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}



/* =================================================================
   TAM MOBİL UYUMLULUK GELİŞTİRMELERİ (EK BLOK)
   ================================================================= */

/* Genel düzen */
@media (max-width: 992px) {
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    .content-wrapper {
        padding: 15px;
    }

    .app-content {
        padding: 15px !important;
    }

    h1, h2, h3, h4 {
        font-size: 90%;
    }
}

/* Tablo uyumluluğu */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    table.table {
        width: 100% !important;
        min-width: 600px; /* sütunların sıkışmasını önler */
    }

    #pasifYazilar td {
        white-space: nowrap;
    }

    /* Butonlar alt alta düzgün dizilsin */
    #pasifYazilar td .btn {
        display: block;
        width: 100%;
        margin-bottom: 6px;
    }

    #pasifYazilar td .btn:last-child {
        margin-bottom: 0;
    }
}

/* Sidebar menü mobilde açılıp kapanabilir hale gelsin */
@media (max-width: 768px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
    }

    .app-sidebar.is-visible {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0,0,0,0.4);
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
        z-index: 10000;
    }
}

/* Profil sayfası, yazılar ve yorumlar tamamen uyumlu */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        margin-left: 0;
        margin-top: 10px;
    }

    .blog-post-summary {
        flex-direction: column;
    }

    .blog-post-summary .post-thumbnail {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }

    .blog-post-summary .post-content {
        padding: 15px;
    }

    .list-group-item.bg-dark {
        padding: 12px;
        font-size: 0.9rem;
    }

    .list-group-item.bg-dark a {
        display: block;
        word-break: break-word;
    }
}

/* Header içeriği sığmazsa düzenle */
@media (max-width: 576px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar .form-control {
        width: 100%;
    }

    .btn, .btn-sm {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}


/* ===== SAYFA BAŞLIĞI MOBİL UYUMU ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Öğeler sığmazsa alt satıra geçmesini sağlar */
    gap: 1rem;       /* Öğeler arasına boşluk ekler */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Butonlar arasına boşluk */
}

/* 768px'den küçük ekranlar için (tabletler ve telefonlar) */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column; /* Dikey olarak hizala */
        align-items: flex-start; /* Sola hizala */
    }
}

/* ===== YAZI KARTLARI TEMEL STİLLERİ ===== */
.blog-post-summary {
    background-color: #2c3034; /* Kart arkaplan rengi */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Varsayılan olarak dikey */
    transition: transform 0.2s ease-in-out;
}
.blog-post-summary:hover {
    transform: translateY(-5px);
}
.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Resmin orantısını bozmadan kaplamasını sağlar */
}
.post-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.post-content h3 a {
    text-decoration: none;
    color: #fff;
}
.post-meta {
    font-size: 0.85rem;
    color: #a7a7a7;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.post-excerpt {
    flex-grow: 1; /* İçeriğin kalan alanı doldurmasını sağlar */
    margin-bottom: 1rem;
    color: #ccc;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Altbilgiyi kartın en altına iter */
}
.post-stats {
    display: flex;
    gap: 1rem;
    color: #a7a7a7;
    font-size: 0.9rem;
}

/* ===== GRID (IZGARA) GÖRÜNÜMÜ ===== */
.blog-grid-view {
    display: grid;
    gap: 1.5rem; /* Kartlar arası boşluk */
    /* Geniş ekranlar için 3 sütun */
    grid-template-columns: repeat(3, 1fr);
}

/* Orta boy ekranlar (tabletler) için 2 sütun */
@media (max-width: 992px) {
    .blog-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Küçük ekranlar (telefonlar) için 1 sütun */
@media (max-width: 768px) {
    .blog-grid-view {
        grid-template-columns: 1fr;
    }
}

/* ===== LIST (LİSTE) GÖRÜNÜMÜ ===== */
.blog-list-view {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Her zaman tek sütun */
}
.blog-list-view .blog-post-summary {
    flex-direction: row; /* Yatayda hizala */
}
.blog-list-view .post-thumbnail {
    flex-basis: 300px; /* Resim alanı için sabit genişlik */
    flex-shrink: 0;
}
.blog-list-view .post-thumbnail img {
    height: 100%; /* Resim kartın tüm yüksekliğini kaplasın */
}

/* Küçük ekranlarda liste görünümünü dikey hale getir */
@media (max-width: 768px) {
    .blog-list-view .blog-post-summary {
        flex-direction: column; /* Dikey yap */
    }
    .blog-list-view .post-thumbnail {
        flex-basis: auto; /* Genişliği serbest bırak */
        width: 100%;
    }
    .blog-list-view .post-thumbnail img {
        height: 200px; /* Yüksekliği sabitle */
    }
}



/* ============================================= */
/* ===== HEADER MOBİL UYUMLULUK STİLLERİ ===== */
/* ============================================= */

/* 1. Header'ı esnek bir kutu (flexbox) yapalım */
.app-header {
    display: flex;
    justify-content: space-between; /* Öğeleri iki uca yasla */
    align-items: center;          /* Dikey olarak ortala */
    flex-wrap: wrap;              /* Sığmazsa alt satıra indir (güvenlik önlemi) */
    gap: 1rem;                    /* Öğeler arasına boşluk koy */
}

/* 2. Arama çubuğunun esnemesini sağlayalım */
.search-bar {
    flex-grow: 1; /* Arama çubuğu boş alanı doldursun */
    max-width: 500px; /* Ama çok da büyümesin */
    display: flex;
}

.search-bar .form-control {
    flex-grow: 1;
}

/* 3. Kullanıcı profilinin sabit kalmasını sağlayalım */
.user-profile {
    flex-shrink: 0; /* Kullanıcı profili alanı sıkışmasın */
}


/* ================================================================= */
/* ===== ASIL MOBİL UYUM KISMI (MEDIA QUERY) ===== */
/* Ekran genişliği 768px veya daha küçük olduğunda bu stiller çalışır */
/* ================================================================= */
@media (max-width: 768px) {
    .app-header {
        /* Öğeleri alt alta sırala */
        flex-direction: column; 
        
        /* Tüm öğeleri sola yasla */
        align-items: stretch; 
    }

    .search-bar {
        /* Arama çubuğu tam genişlikte olsun */
        max-width: 100%; 
        order: 2; /* Arama çubuğunu ikinci sıraya al (isteğe bağlı) */
    }

    .user-profile {
        /* Profil bölümünü sağa yasla */
        align-self: flex-end; 
        order: 1; /* Profil bölümünü birinci sıraya al (isteğe bağlı) */
    }
}


/* ====================================================================== */
/* ===== ASIL MOBİL UYUM (MEDIA QUERY) - GÜNCELLENMİŞ VERSİYON ===== */
/* Ekran genişliği 992px veya daha küçük olduğunda bu stiller çalışır */
/* ====================================================================== */
@media (max-width: 992px) {

    /* Hamburger butonunu görünür yap */
    .sidebar-toggle-button {
        display: block;
    }

    /* Sidebar'ı ekranın dışına taşı ve stilini ayarla */
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1050;
        transform: translateX(-100%); /* Ekranın soluna tamamen gizle */
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    /* JavaScript ile body'e 'sidebar-open' class'ı eklendiğinde... */
    .sidebar-open .app-sidebar {
        transform: translateX(0); /* Sidebar'ı görünür hale getir */
    }
    
    .sidebar-open .sidebar-overlay {
        display: block; /* Arka plan katmanını göster */
    }

    /* !!!!! SORUNU ÇÖZEN KURAL !!!!! */
    /* Ana içeriğin sol boşluğunu sıfırla ki tüm alanı kaplasın */
    .app-content {
        margin-left: 0 !important;
    }
}


/* ============================================== */
/* ===== ANA LAYOUT STİLLERİ (Masaüstü) ===== */
/* ============================================== */

/* CSS Değişkeni: Sidebar genişliğini tek yerden yönetmek için */
:root {
    --sidebar-width: 250px; /* Sidebar genişliğini buradan ayarlayabilirsiniz */
}

.app-layout {
    display: flex;
}

.app-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0; /* Sidebar'ın sıkışmasını engelle */
    /* Zaten var olan diğer sidebar stilleriniz... */
}

.app-content {
    flex-grow: 1; /* Ana içeriğin kalan tüm alanı kaplamasını sağla */
    margin-left: var(--sidebar-width); /* MASAÜSTÜ İÇİN EN ÖNEMLİ KURAL */
    padding: 2rem; /* İçerik için boşluk */
    transition: margin-left 0.3s ease-in-out; /* Animasyon için */
}

/* ======================================================= */
/* ===== HEADER KULLANICI ADI MOBİL GÖRÜNÜM DÜZELTMESİ ===== */
/* ======================================================= */

/* Ekran genişliği 768px veya daha küçük olduğunda bu stiller çalışır */
@media (max-width: 768px) {
    
    /* Kullanıcı profili linkini daha iyi hizalama için flex yap */
    .user-profile-link {
        display: inline-flex;
        align-items: center; /* İsmi ve avatarı dikeyde ortala */
        gap: 0.75rem;      /* İsim ve avatar arasına boşluk ekle */
    }

    /* !! SORUNU ÇÖZEN KURAL !! */
    /* .user-name span'ını her zaman görünür yap */
    .user-profile-link .user-name {
        display: inline !important; /* Gizlenmiş olsa bile görünmeye zorla */
    }
}


/* Ana stil dosyanıza eklenecek CSS kodları */

/* Hamburger Menü Butonu Stili */
.mobile-menu-toggle {
    display: none; /* Varsayılan olarak (geniş ekranlarda) gizli */
    background: none;
    border: none;
    color: #fff; /* İkon rengi, temanıza göre değiştirin */
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1100; /* Diğer elementlerin üzerinde kalması için */
}

/* Mobil Ekranlar İçin Ayarlar (Örn: 992px altı) */
@media (max-width: 992px) {
    /* Hamburger butonunu görünür yap */
    .mobile-menu-toggle {
        display: block;
    }

    /* Sidebar'ı varsayılan olarak ekranın dışına taşı */
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%); /* Ekranın soluna gizle */
        transition: transform 0.3s ease-in-out;
        z-index: 1050; /* Header'ın altında, içeriğin üstünde */
    }

    /* Sidebar açıldığında uygulanacak stil */
    .app-sidebar.is-open {
        transform: translateX(0); /* Ekranın içine geri getir */
    }

    /* Ana içerik alanını sidebar açıkken sağa ittir (isteğe bağlı ama şık durur) */
    .app-content {
        transition: margin-left 0.3s ease-in-out;
    }
    
    body.sidebar-open .app-content {
        margin-left: 250px; /* Sidebar genişliğiniz kadar */
    }
}

/* style.css dosyanıza eklenecek CSS kodları */

/* Hamburger Menü Butonu Stili */
.mobile-menu-toggle {
    display: none; /* Varsayılan olarak (geniş ekranlarda) gizli */
    background: none;
    border: none;
    color: #fff; /* İkon rengi, temanıza göre değiştirin */
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
    z-index: 1100; /* Diğer elementlerin üzerinde kalması için */
    margin-right: 15px; /* Arama çubuğu ile arasına boşluk koyar */
}

/* Mobil Ekranlar İçin Ayarlar (Örn: 992px altı) */
@media (max-width: 992px) {
    /* app-header içeriğini düzenle */
    .app-header {
        justify-content: space-between;
    }

    /* Hamburger butonunu görünür yap */
    .mobile-menu-toggle {
        display: block;
        order: -1; /* Butonu en başa al */
    }

    /* Sidebar'ı varsayılan olarak ekranın dışına taşı */
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%); /* Ekranın soluna gizle */
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
    }

    /* Sidebar açıldığında uygulanacak stil */
    .app-sidebar.is-open {
        transform: translateX(0); /* Ekranın içine geri getir */
    }

    /* Sidebar açıkken sayfanın geri kalanını karartmak için bir overlay (isteğe bağlı ama önerilir) */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040; /* Sidebar'ın arkasında */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .sidebar-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
}
/* ============================================= */
/* MOBİL MENÜ VE HEADER DÜZENLEMELERİ            */
/* ============================================= */

/* Hamburger Menü Butonu Stili */
.mobile-menu-toggle {
    display: none; /* Varsayılan olarak (geniş ekranlarda) gizli */
    background: none;
    border: none;
    color: #fff; /* İkon rengi, temanıza göre değiştirin */
    font-size: 24px;
    cursor: pointer;
    padding: 0 15px;
    z-index: 1100; 
    margin-right: 15px;
}

/* Mobil Ekranlar İçin Ayarlar (Örn: 992px altı) */
@media (max-width: 992px) {
    /* app-header içeriğini düzenle */
    .app-header {
        justify-content: space-between;
    }

    /* Hamburger butonunu görünür yap */
    .mobile-menu-toggle {
        display: block;
        order: -1; /* Butonu en başa al */
    }
    
    /* YENİ: Header'daki kullanıcı adını mobilde de göster */
    .user-profile-link .user-name {
        display: inline-block !important; /* Gizlenmişse görünür yap */
    }

    /* Sidebar'ı varsayılan olarak ekranın dışına taşı */
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%); /* Ekranın soluna gizle */
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
    }

    /* Sidebar açıldığında uygulanacak stil */
    .app-sidebar.is-open {
        transform: translateX(0); /* Ekranın içine geri getir */
    }

    /* Sidebar açıkken sayfanın geri kalanını karartmak için bir overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040; /* Sidebar'ın arkasında */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .sidebar-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
    
    
}   

/* ============================================= */
/* ABONE ROLÜ İÇİN KROMATİK RENK ANİMASYONU      */
/* ============================================= */

/* Renk döngüsünü tanımlayan animasyon */
@keyframes rainbow-text-flow {
    0%, 100% { color: #ff8b8b; } /* Kırmızı */
    16%      { color: #ffc78b; } /* Turuncu */
    32%      { color: #fffb8b; } /* Sarı */
    48%      { color: #b4ff8b; } /* Yeşil */
    64%      { color: #8bffdb; } /* Mavi */
    80%      { color: #c28bff; } /* Mor */
}

/* Animasyonu uygulayacağımız sınıf */
.role-abone {
    /* Animasyonu 6 saniye boyunca, sürekli ve yumuşak bir şekilde uygula */
    animation: rainbow-text-flow 6s linear infinite;
    font-weight: 600; /* Metni biraz daha belirgin yapabilir */
}



}