/* =============== YAZILIMLAR (liste + detay) =============== */

/* Sidebar — kategoriler (kartlı, chevron'lu) */
.yz-sidebar { background: transparent; border: 0; padding: 0; box-shadow: none; margin-bottom: 1.5rem; }
.yz-sidebar-title {
    background: var(--moc-primary);
    color: #fff !important;
    padding: 18px 24px;
    border-radius: var(--moc-radius) var(--moc-radius) 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px;
    border: 0;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(27, 43, 68, 0.18);
}
.yz-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none;
    overflow: visible;
}
.yz-cat-list li { margin: 0; }
.yz-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--moc-border);
    border-radius: var(--moc-radius);
    padding: 14px 48px 14px 22px;
    color: var(--moc-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    position: relative;
    line-height: 1.3;
}
.yz-cat-list a::after {
    content: "\F285";                         /* bi-chevron-right */
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--moc-muted);
    transition: color .2s, transform .2s;
    font-size: 1rem;
}
.yz-cat-list a:hover {
    border-color: var(--moc-primary);
    transform: translateX(3px);
    box-shadow: 0 8px 22px rgba(27, 43, 68, 0.10);
    color: var(--moc-primary);
}
.yz-cat-list a:hover::after { color: var(--moc-primary); transform: translateY(-50%) translateX(2px); }
.yz-cat-list a.active {
    background: linear-gradient(135deg, var(--moc-primary-dark) 0%, var(--moc-primary) 70%, var(--moc-primary-2) 100%);
    border-color: var(--moc-primary-dark);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(27, 43, 68, 0.30);
    transform: translateX(3px);
}
.yz-cat-list a.active::after { color: rgba(255,255,255,0.95); transform: translateY(-50%) translateX(2px); }
.yz-cat-list a.active .count { background: rgba(255,255,255,0.2); color: #fff; }
.yz-cat-list .count {
    background: var(--moc-bg-soft);
    color: var(--moc-muted);
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 100px;
    font-weight: 500;
    flex-shrink: 0;
}

.yz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.yz-tag { display: inline-block; padding: 4px 10px; border-radius: 100px; background: var(--moc-bg-soft); border: 1px solid var(--moc-border); color: var(--moc-text); font-size: 0.8rem; text-decoration: none; transition: all .15s; }
.yz-tag:hover, .yz-tag.active { background: var(--moc-accent); border-color: var(--moc-accent); color: #fff; }

/* Yazılım kartı */
.yz-card { display: block; background: #fff; border: 1px solid var(--moc-border); border-radius: var(--moc-radius); overflow: hidden; box-shadow: var(--moc-shadow-sm); transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; height: 100%; }
.yz-card:hover { transform: translateY(-4px); box-shadow: var(--moc-shadow); color: inherit; }
.yz-card-img { position: relative; aspect-ratio: 16/10; background: var(--moc-bg-soft); overflow: hidden; }
.yz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yz-card:hover .yz-card-img img { transform: scale(1.04); }
.yz-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--moc-gradient); color: rgba(255,255,255,.5); }
.yz-badge { position: absolute; top: 10px; right: 10px; background: var(--moc-gradient-accent); color: #fff; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }
.yz-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.yz-card-title { font-size: 0.95rem; font-weight: 700; margin: 0; color: var(--moc-text); line-height: 1.35; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yz-card-meta { display: flex; justify-content: space-between; }
.yz-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--moc-border); }
.yz-card-comments { font-size: 0.8rem; color: var(--moc-muted); }
.yz-card-price { background: var(--moc-success); color: #fff; padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; }
.yz-card-price.yz-card-price-info { background: var(--moc-accent); }

/* Detay galerisi — sol büyük resim + sağ vertical thumb slider */
.yz-gallery { display: flex; gap: 14px; align-items: stretch; }
.yz-gallery-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--moc-border); border-radius: var(--moc-radius); overflow: hidden; position: relative; aspect-ratio: 16/10; }
.yz-gal-stage { width: 100%; height: 100%; position: relative; }
.yz-gal-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.yz-gal-slide.active { opacity: 1; pointer-events: auto; }
.yz-gal-slide img { width: 100%; height: 100%; object-fit: contain; background: var(--moc-bg-soft); }

.yz-gallery-side { display: flex; flex-direction: column; width: 110px; gap: 8px; flex-shrink: 0; }
.yz-thumb-nav { width: 100%; height: 32px; border: 1px solid var(--moc-border); background: #fff; color: var(--moc-primary); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.yz-thumb-nav:hover { background: var(--moc-primary); color: #fff; border-color: var(--moc-primary); }
.yz-thumb-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.yz-gallery-thumbs { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; padding: 2px; scrollbar-width: thin; scroll-behavior: smooth; }
.yz-gallery-thumbs::-webkit-scrollbar { width: 4px; }
.yz-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--moc-border); border-radius: 4px; }
.yz-gal-thumb { width: 100%; aspect-ratio: 4/3; background: #fff; border: 2px solid var(--moc-border); border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.yz-gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yz-gal-thumb.active { border-color: var(--moc-accent); box-shadow: 0 0 0 2px rgba(243, 122, 36, 0.25); }
.yz-gal-thumb:hover:not(.active) { border-color: var(--moc-primary); }

@media (max-width: 991px) {
    .yz-gallery { flex-direction: column; }
    .yz-gallery-side { flex-direction: row; width: 100%; }
    .yz-gallery-thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
    .yz-gal-thumb { width: 80px; height: 60px; aspect-ratio: auto; }
    .yz-thumb-nav { width: 32px; height: auto; }
}

/* Detay sağ kolon */
.yz-detay-card { background: #fff; border: 1px solid var(--moc-border); border-radius: var(--moc-radius); padding: 22px; box-shadow: var(--moc-shadow-sm); position: sticky; top: 90px; }
.yz-features { display: grid; gap: 8px; }
.yz-features li { display: flex; gap: 8px; align-items: start; font-size: 0.92rem; }
.yz-features li i { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.yz-price-box { background: transparent; padding: 10px 0 14px; text-align: center; margin-bottom: 10px; border-bottom: 1px solid var(--moc-border); }
.yz-price-box .price { font-size: 1.7rem; font-weight: 800; color: var(--moc-primary); line-height: 1.1; }
.yz-price-box .price-eski { font-size: 0.95rem; color: var(--moc-muted); text-decoration: line-through; display: block; margin-bottom: 2px; }
.yz-price-box .price-info { font-size: 1.4rem; font-weight: 700; color: var(--moc-accent); letter-spacing: 0.3px; }
/* Sidebar butonlar — Bootstrap .btn:hover override için background-color explicit */
.yz-btn-demo, .yz-btn-demo-admin, .yz-btn-buy, .yz-btn-fav { display: block; width: 100%; margin-bottom: 8px; padding: 11px 14px; font-weight: 600; border-radius: var(--moc-radius); text-align: center; border: 0; transition: transform .15s, box-shadow .15s, filter .15s; text-decoration: none; }
.yz-btn-demo, .yz-btn-demo:focus { background-color: #2196f3 !important; color: #fff !important; }
.yz-btn-demo-admin, .yz-btn-demo-admin:focus { background-color: #1976d2 !important; color: #fff !important; }
.yz-btn-buy, .yz-btn-buy:focus { background-color: var(--moc-success) !important; color: #fff !important; }
.yz-btn-fav, .yz-btn-fav:focus { background-color: #ef4444 !important; color: #fff !important; border: 0 !important; }
.yz-btn-fav.is-active, .yz-btn-fav.is-active:focus { background-color: #fff !important; color: #ef4444 !important; border: 2px solid #ef4444 !important; padding: 9px 14px; }
.yz-btn-demo:hover { background-color: #1e88e5 !important; color: #fff !important; }
.yz-btn-demo-admin:hover { background-color: #1565c0 !important; color: #fff !important; }
.yz-btn-buy:hover { background-color: #0ea371 !important; color: #fff !important; }
.yz-btn-fav:hover { background-color: #dc2626 !important; color: #fff !important; }
.yz-btn-fav.is-active:hover { background-color: #fef2f2 !important; color: #ef4444 !important; }
.yz-btn-demo:hover, .yz-btn-demo-admin:hover, .yz-btn-buy:hover, .yz-btn-fav:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 26, 46, 0.18); }
.yz-stats { padding: 10px 0; border-top: 1px solid var(--moc-border); }
.yz-info dt { font-weight: 500; color: var(--moc-muted); font-size: 0.85rem; padding-top: 6px; flex: 0 0 45%; max-width: 45%; }
.yz-info dd { font-weight: 600; font-size: 0.88rem; padding-top: 6px; margin: 0; flex: 0 0 55%; max-width: 55%; text-align: right; }

/* Sekmeler — tam genişlik segmentli, koyu aktif + parlak mavi inaktif */
.yz-tabs-card { background: #fff; border-radius: var(--moc-radius); overflow: hidden; box-shadow: var(--moc-shadow-sm); border: 0; }
.yz-tabs {
    border-bottom: 0 !important;
    padding: 0;
    margin: 0;
    background: transparent;
    flex-wrap: nowrap;
    display: flex;
}
.yz-tabs .nav-item { flex: 1; min-width: 0; }
.yz-tabs .nav-link {
    width: 100%;
    text-align: center;
    border: 0 !important;
    border-radius: 0;
    padding: 20px 8px;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0;
    background-color: #2596d1;
    margin: 0;
    transition: background-color .25s ease;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.10) !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yz-tabs .nav-item:last-child .nav-link { border-right: 0 !important; }
.yz-tabs .nav-link:hover { background-color: #1d7eb5; color: #fff !important; }
.yz-tabs .nav-link.active {
    background-color: var(--moc-primary-dark) !important;
    color: #fff !important;
    box-shadow: inset 0 -3px 0 0 var(--moc-accent);
}
.yz-tabs .nav-link.active::after { display: none; }
.yz-tab-body { padding: 22px 24px; background: #fff; }
.yz-demo-box {
    background: var(--moc-bg-soft);
    border: 1px solid var(--moc-border);
    border-radius: var(--moc-radius);
    padding: 18px 22px;
    margin-bottom: 14px;
}
.yz-demo-box p { margin-bottom: 6px; }
.yz-demo-box p:last-child { margin-bottom: 0; }
.yz-demo-box a.text-danger { color: #dc2626 !important; text-decoration: none; }
.yz-demo-box code { background: rgba(220, 38, 38, 0.08); color: #dc2626; padding: 2px 8px; border-radius: 4px; font-size: 0.95em; }

@media (max-width: 767px) {
    .yz-tabs { flex-wrap: wrap; }
    .yz-tabs .nav-item { flex: 1 1 50%; }
    .yz-tabs .nav-link { padding: 10px 6px; font-size: 0.78rem; }
    .yz-tab-body { padding: 18px; }
}

/* Başlıca özellikler — turuncu yuvarlak ok'lu madde */
.yz-features-html ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.yz-features-html li {
    position: relative;
    padding-left: 34px;
    padding-bottom: 12px;
    line-height: 1.55;
    color: var(--moc-text);
}
.yz-features-html li::before {
    content: "\F285";                            /* bi-chevron-right */
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: var(--moc-accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(243, 122, 36, 0.30);
}

/* Yorum kartı */
.yz-yorum {
    background: #fff;
    border: 1px solid var(--moc-border);
    border-radius: var(--moc-radius);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.yz-yorum:hover { box-shadow: var(--moc-shadow-sm); }
.yz-yorum-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--moc-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(27, 43, 68, 0.20);
}
.yz-yorum-meta { display: flex; flex-direction: column; gap: 2px; }
.yz-yorum-name { font-weight: 700; color: var(--moc-text); font-size: 0.95rem; }
.yz-yorum-name .badge { font-weight: 500; font-size: 0.65rem; padding: 3px 7px; margin-left: 4px; vertical-align: middle; }
.yz-yorum-date { color: var(--moc-muted); font-size: 0.78rem; }
.yz-stars { color: #f59e0b; font-size: 0.95rem; margin: 4px 0; letter-spacing: 1px; }
.yz-yorum-body {
    margin-top: 10px;
    white-space: pre-wrap;
    color: var(--moc-text);
    font-size: 0.94rem;
    line-height: 1.6;
}
.yz-yorum-cevap {
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    border-left: 4px solid var(--moc-primary);
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 14px;
    font-size: 0.9rem;
}
.yz-yorum-cevap-baslik { font-weight: 700; color: var(--moc-primary); display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }

/* Yorum yazma formu */
.yz-yorum-form {
    background: linear-gradient(135deg, var(--moc-bg-soft) 0%, #fff 100%);
    border: 1px solid var(--moc-border);
    border-radius: var(--moc-radius-lg);
    padding: 24px;
    margin-top: 20px;
}
.yz-yorum-form .form-label { font-weight: 600; color: var(--moc-text); font-size: 0.88rem; margin-bottom: 6px; }
.yz-yorum-form .form-control { border-color: var(--moc-border); border-radius: 10px; padding: 10px 14px; }
.yz-yorum-form .form-control:focus { border-color: var(--moc-primary); box-shadow: 0 0 0 3px rgba(27, 43, 68, 0.08); }

/* Boş yorum durumu */
.yz-yorum-bos { background: var(--moc-bg-soft); border: 1px dashed var(--moc-border); border-radius: var(--moc-radius); padding: 30px; text-align: center; color: var(--moc-muted); }
.yz-yorum-bos i { font-size: 2.8rem; color: var(--moc-primary); opacity: 0.4; display: block; margin-bottom: 10px; }

/* Yıldız input (yorum formu) */
.yz-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; padding: 8px 0; }
.yz-star-input input { display: none; }
.yz-star-input label { color: #e2e8f0; font-size: 1.6rem; cursor: pointer; transition: color .15s, transform .15s; }
.yz-star-input label:hover { transform: scale(1.15); }
.yz-star-input label:hover, .yz-star-input label:hover ~ label, .yz-star-input input:checked ~ label { color: #f59e0b; }

/* ----- Admin galeri thumb (referans + yazılım yönetim) ----- */
.ref-gal-thumb { position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 2px solid #e5e7eb; background: var(--moc-bg-soft); }
.ref-gal-thumb.is-featured { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.ref-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-gal-actions { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.ref-gal-thumb:hover .ref-gal-actions { opacity: 1; }
.featured-badge { position: absolute; top: 6px; left: 6px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 100px; font-weight: 600; }

/* Yazılım admin galeri — daha küçük thumb */
.yz-admin-galeri .ref-gal-thumb { aspect-ratio: 4/3; max-height: 80px; }

