/* Genel ayarlar */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    color: #222;
    line-height: 1.5;
    padding-top: 70px; /* Üst sabit alan için boşluk eklendi */
}

a {
    color: #d62941;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ÜST ALAN */
.ust-kisim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1100;
    gap: 15px;
}

.logo-kutu {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    display: block;
}

/* Kategori menüsü - desktop */
.kategori-menu {
    display: flex;
    gap: 20px;
    margin-left: auto;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
}

/* Tanıtım alanı */
.tanitim-kirmizi {
    margin-top: 60px;
    padding: 30px 20px;
    background-color: #d62941;
    color: white;
    text-align: center;
}

.tanitim-yazi h1 {
    margin: 0 0 15px;
    font-weight: 600;
    font-size: 1.4rem;
}

.tanitim-yazi p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Ana sayfa kategori grid */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 30px 20px 60px 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.kategori {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.1);
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #d62941;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

    .kategori img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .kategori:hover {
        box-shadow: 0 8px 16px rgb(214 41 65 / 0.5);
    }

        .kategori:hover img {
            transform: scale(1.05);
        }

    .kategori span {
        padding: 10px 5px;
        background: white;
        z-index: 5;
        box-shadow: inset 0 10px 10px -10px rgba(214, 41, 65, 0.15);
        border-radius: 0 0 8px 8px;
    }

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

/* MENU TOGGLE BUTTON - sadece mobilde görünür */
.menu-toggle {
    border: none;
    color: #d62941;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

    .menu-toggle:hover {
        background-color: rgba(178, 35, 53, 0.9);
    }

    /* Menü icon çubukları için stil */
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 4px 0;
        border-radius: 2px;
    }

/* Mobil & Tablet Düzenlemeleri */
@media (max-width: 1024px) {
    .kategori-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Üst alan - logo solda kalacak */
    .logo-kutu {
        order: 0;
    }

    /* Menü toggle butonu görünür ve sağda */
    .menu-toggle {
        display: flex;
        margin-left: auto;
        order: 1;
    }

    /* Kategori menüsü - açılır menü olarak */
    .kategori-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 240px;
        height: 100vh;
        background: white;
        box-shadow: -3px 0 10px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        padding: 70px 20px 20px 20px;
        gap: 15px;
        z-index: 1000;
        justify-content: flex-start;
        font-weight: 600;
        font-size: 1.2rem;
        user-select: none;
    }

        .kategori-menu.active {
            transform: translateX(0);
        }
}
