/* --- FLOW LAYOUT --- */
.ph-flow-content-wrapper {
    position: relative; 
}
.ph-floating-dock {
    position: absolute;
    top: 0; 
    left: -80px; 
    height: 100%; 
    width: 50px;
    z-index: 10;
    pointer-events: none;
}
.ph-dock-sticky {
    position: sticky;
    top: 100px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto; 
}
.ph-dock-item {
    position: relative; /* Badge için eklendi */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ph-bg-card);
    border: 1px solid var(--ph-border);
    color: var(--ph-text-muted);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.ph-dock-item:hover {
    color: var(--ph-accent);
    transform: scale(1.1);
    border-color: var(--ph-accent);
}
.ph-dock-item.active {
    background: var(--ph-accent);
    color: #fff;
    border-color: var(--ph-accent);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* YENİ: Bildirim Rozeti (Comment Count) */
.ph-dock-count {
position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 20px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 2;
    line-height: 11px;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .ph-floating-dock {
        display: none;
    }
}
.ph-flow-header {
  text-align: center;
  margin-bottom: 30px;
}
.cat-dropdown-wrapper {
	position: relative;
}
.ph-flow-cats {
  margin-bottom: 16px;
}

/* --- MASAÜSTÜNÜ ETKİLEMEZ (GİZLEME) --- */
.menu-checkbox,
.menu-label {
    display: none;
}

/* Kapsayıcı - Z-index'i yüksek tutuyoruz */
.mobile-dropdown-container {
    position: relative;
    display: block;
    z-index: 1001; 
}

/* --- SADECE MOBİL AYARLAR (768px ve altı) --- */
@media screen and (max-width: 768px) {

    /* 1. Buton Tasarımı */
    .menu-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        background: var(--ph-bg-card);
        color: var(--ph-text-main);
        border: 1px solid var(--ph-border);
        
        padding: 12px 20px;
		margin-bottom: 16px;
        cursor: pointer;
        border-radius: 8px;
        font-weight: 600;
        user-select: none;
        position: relative;
        z-index: 15;
        transition: border-color 0.3s ease;
    }

    /* Checkbox işaretliyken */
    .menu-checkbox:checked + .menu-label {
        border-color: var(--ph-accent) !important;
        color: var(--ph-accent) !important;
    }

    .menu-label .arrow {
        transition: transform 0.3s ease;
        color: var(--ph-text-light);
    }
    
    .menu-checkbox:checked + .menu-label .arrow {
        color: var(--ph-accent) !important;
    }

    /* 2. Açılır Menü Kutusu */
    .ph-flow-cats {
        position: absolute;
        width: 100%; 
        left: 0; 
        right: 0; 
        top: 100%;
        margin-top: 5px;
        
        background: var(--ph-bg-card) !important;
        border: 1px solid var(--ph-border);
        box-shadow: 0 10px 40px var(--ph-shadow-lg);
        border-radius: 8px;
        z-index: 15;
        
        display: flex;
        flex-direction: column;
        padding: 8px 0;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Menü AÇIKKEN */
    .menu-checkbox:checked ~ .ph-flow-cats {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .menu-checkbox:checked ~ .menu-label .arrow {
        transform: rotate(180deg);
    }

    /* 3. LİNKLERİN STİLİ */
    .ph-flow-cats .ph-cat-badge {
        display: block;
        padding: 12px 20px;
        
        /* Varsayılan Renkler - !important ekledim ki başka stil ezemesin */
        color: var(--ph-text-main); 
        background: transparent;
		border-radius: 0;
        border-bottom: 1px solid var(--ph-border-light);
        
        text-decoration: none;
        box-sizing: border-box;
        text-align: left;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
    }
    
    .ph-flow-cats .ph-cat-badge:last-child {
        border-bottom: none;
    }

    /* --- KRİTİK BÖLÜM: HOVER AYARI --- */
    /* Burada !important kullanarak diğer tüm stilleri eziyoruz */
    
    .ph-flow-cats .ph-cat-badge:hover,
    .ph-flow-cats .ph-cat-badge:focus,
    .ph-flow-cats .ph-cat-badge:active {
        color: var(--ph-accent);       /* ARTIK KESİN MAVİ OLACAK */
        padding-left: 25px;            /* SAĞA KAYMA */
    }
}

.ph-flow-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--ph-text-main);
}

.ph-flow-hero {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px var(--ph-shadow-lg);
  border: 1px solid var(--ph-border);
	border-bottom: none;
}
.ph-hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.ph-flow-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ph-bg-card);
  padding: 16px 24px;
  border-radius: 0 0 20px 20px;;
  border: 1px solid var(--ph-border);
	border-top: none;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px var(--ph-shadow);
  gap: 20px;
  flex-wrap: wrap;
}
.ph-action-left {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
	gap: 10px;
}
.ph-line-icon {
  color: var(--ph-text-muted);
}
.ph-action-left .ph-rating-wrap {
  margin: 0;
}
.ph-action-right {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-end;
}
.ph-flow-stats {
  display: flex;
  gap: 24px;
}
.ph-btn-large {
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ph-flow-card {
  background: var(--ph-bg-card);
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px var(--ph-shadow);
}
.ph-content-typography {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ph-text-main);
}
.ph-content-typography h2 {
  font-size: 26px;
  margin-top: 30px;
  margin-bottom: 16px;
  font-weight: 700;
}
.ph-content-typography h3 {
  font-size: 22px;
  margin-top: 24px;
  margin-bottom: 14px;
  font-weight: 600;
}
.ph-content-typography p {
  margin-bottom: 20px;
}
.ph-content-typography ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.ph-content-typography li {
  margin-bottom: 8px;
}
.ph-content-typography img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.ph-flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.ph-flow-tags a {
  color: var(--ph-text-muted);
  font-size: 14px;
  background: var(--ph-bg-card);
  border: 1px solid var(--ph-border);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.ph-flow-tags a:hover {
  border-color: var(--ph-accent);
  color: var(--ph-accent);
}