﻿
.parent-link {
    display: flex;
    justify-content: space-between; /* sola - sağa ayır */
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10vw;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #39404a;
    background: #fafafa;
}

.parent-left {
    display: flex;
    align-items: center;
}

    .parent-left i {
        margin-right: 10px;
        font-size: 15px;
    }

.toggle-icon {
    transition: transform 0.3s ease;
}

.child-list {
    display: none;
    padding-left: 25px;
    margin-top: 5px;
}

.child-item {
    position: relative;
}

.child-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f7f7;
    margin-bottom: 6px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    position: relative;
}

    .child-link .category-name {
        display: inline-block;
    }

    .child-link .category-count {
        position: absolute;
        right: 5px; /* sağ köşeye yapışır */
        top: 50%;
        transform: translateY(-50%); /* dikey ortalama */
        color: #119744;
        font-size: 13px;
    }

.child-list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 10vw;
    background: #f7f7f7;
    margin-bottom: 5px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.parent-link.active .toggle-icon {
    transform: rotate(180deg);
}

.mobile-container {
    font-family: Arial, sans-serif;
    background: #fff;
    max-width: 480px;
    margin: auto;
    border: 1px solid #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* ortalamak yerine full genişlik */
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.logo {
    font-weight: bold;
    color: #119744; /* yeşil */
    margin-bottom: 8px;
}

.search-bar {
    display: flex;
    width: 100%;
}

    .search-bar input {
        flex: 1;
        min-width: 0; /* taşma fix */
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 6px 0 0 6px;
        box-sizing: border-box;
    }

    .search-bar button {
        flex-shrink: 0;
        background: #119744;
        color: #fff;
        border: none;
        padding: 8px 12px;
        border-radius: 0 6px 6px 0;
    }


.category-main {
    flex: 1;
    padding: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

    .category-item a {
        display: flex;
        align-items: center;
        padding: 12px;
        border: 1px solid #eee;
        border-radius: 10vw;
        text-decoration: none;
        font-weight: 500;
        color: #39404a;
        background: #fafafa;
    }

    .category-item i {
        margin-right: 10px;
        font-size: 18px;
    }

.bottom-nav {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding: 8px 0;
    background: #fff;
}

    .bottom-nav a {
        text-decoration: none;
        color: #666;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .bottom-nav a i {
            font-size: 18px;
            margin-bottom: 3px;
        }

        .bottom-nav a.active {
            color: #198754;
        }
