﻿/* =========================================================
   SHARED: HEADER SECONDARY LABEL
   (Header alt yazı: "Menü", "Moduler Menü" vb.)
========================================================= */
.menu-root-label {
    font-size: 0.85em;
    opacity: 0.6;
    margin-left: 3px;
    font-weight: 400;
    transform: translateY(1px);
}

/* =========================================================
   SHARED: BASE CARD
   (Home & Menu kartlarının ortak tabanı)
========================================================= */
.category-card-ui {
    position: relative;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover: ortak micro hareket */
@media (hover:hover) {
    .category-card-ui:hover {
        transform: translateY(-2px);
    }
}

/* =========================================================
   HOME / ORGANIZATIONS (Home/Index cards)
========================================================= */
@media (hover:hover) {
    .category-card-ui.org-card:hover {
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    }
}

.category-card-ui.org-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
}

.org-card-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url("/img/org-bg.png");
    background-size: cover;
    background-position: center;
}

.org-card-title {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

/* =========================================================
   MENU / INDEX (Menu root category cards)
========================================================= */
.category-card-ui.cat-card {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 0 14px 14px;
}

/* bg url (CSS variable) */
.category-card-bg {
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (hover:hover) {
    .category-card-ui.cat-card:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
}

.category-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   CATEGORY FULL (Tüm Kategoriler)
   ✅ sadece #catList içinde geçerli
========================================================= */
.page-card {
    padding: 10px 10px 6px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #fff;
}

#catSearch {
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

    #catSearch::placeholder {
        font-size: 0.85rem;
        color: #6b7280;
    }

#catList.category-list {
    margin-top: 4px;
}

    #catList.category-list a {
        padding: 12px 4px;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.2px;
        border-radius: 8px;
        color: #1f2937;
        transition: background 0.15s ease;
    }

        #catList.category-list a:hover {
            background: rgba(0, 0, 0, 0.03);
        }

    #catList.category-list .left span {
        font-size: 0.86rem;
        font-weight: 500;
        letter-spacing: 0.15px;
    }

#catList .category-arrow {
    font-size: 0.95rem;
    opacity: 0.45;
}

#catList.category-list a + a {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-page {
    padding-bottom: 4px;
}

/* =========================================================
   CATEGORY MIXED (products + subcats)
========================================================= */
/* Section titles */
.category-mixed .section-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 8px;
}

/* Product list item */
.category-mixed a.menu-item {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    color: inherit;
}

    .category-mixed a.menu-item:hover {
        background: rgba(0, 0, 0, 0.02);
        transform: translateY(-1px);
    }

    /* img */
    .category-mixed a.menu-item img {
        width: 54px;
        height: 54px;
        border-radius: 10px;
        object-fit: cover;
    }

/* Product info */
.category-mixed .menu-item-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.category-mixed .menu-item-info p {
    font-size: 0.82rem;
    color: #4b5563;
    margin-bottom: 4px;
    line-height: 1.35;
}

.category-mixed .menu-item-info strong {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Subcategory rows */
.category-mixed .category-list {
    margin-top: 4px;
}

/* ✅ canlı hissiyat: padding geniş */
.category-mixed .category-row {
    padding: 12px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 8px;
    transition: background 0.15s ease;
    color: #374151;
    text-decoration: none;
}

    .category-mixed .category-row:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .category-mixed .category-row span:last-child {
        opacity: 0.45;
        font-size: 0.9rem;
    }

/* Micro spacing */
.category-mixed .menu-item + .menu-item {
    margin-top: 6px;
}

/* ✅ visited maviliğini kesin bitir */
.category-mixed a.menu-item,
.category-mixed a.menu-item:visited,
.category-mixed a.menu-item:hover,
.category-mixed a.menu-item:active {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   CATEGORY SIMPLE (sadece liste sayfaları: Başlangıçlar vb.)
========================================================= */
.category-simple .category-list a {
    padding: 12px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
    transition: background 0.15s ease;
}

    .category-simple .category-list a:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .category-simple .category-list a span:last-child {
        opacity: 0.45;
        font-size: 0.9rem;
    }


/* =========================================================
   SIMPLE LIST FALLBACK
   (Bazı sayfalarda wrapper class'ı unutulsa bile
    <a class="category-row"> doğru görünsün.)
   Not: .category-mixed .category-row daha spesifik olduğu için onu bozmaz.
========================================================= */
.category-list a.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04); /* canlıdaki daha ince hissiyat */
}

    .category-list a.category-row:last-child {
        border-bottom: none;
    }

    .category-list a.category-row:hover {
        background: rgba(0,0,0,0.03);
    }

    .category-list a.category-row:active {
        background: rgba(0,0,0,0.05);
    }

    .category-list a.category-row span:last-child {
        opacity: 0.45;
        font-size: 0.9rem;
        transform: translateY(1px);
    }


/* =========================================================
   PRODUCT DETAIL (Single Product Page)
   Scope: .product-detail
========================================================= */

.product-detail .product-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
    color: #111827;
}

.product-detail .product-price {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #15803d;
    margin-bottom: 6px;
}

.product-detail .product-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    letter-spacing: 0.15px;
    margin: 0;
}

.product-detail .product-tags .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    opacity: 0.9;
    /* senin eski: bg-light text-dark border hissi */
    background: #f8fafc;
    color: #111;
    border: 1px solid rgba(0,0,0,0.12);
}
