﻿/* ============================================================
   GENEL
============================================================ */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* ============================================================
   ÜST BANNER
============================================================ */
.top-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    background-color: #e8f5e9;
    padding: 20px 32px;
    border-bottom: 2px solid #c5e1a5;
    gap: 24px;
}

    .top-header .logo img {
        height: 120px;
        max-width: 250px;
        object-fit: contain;
    }

    .top-header .banner {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

.firma-adi {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2f5d3c;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.slogan {
    font-size: 1rem;
    color: #558b2f;
    font-style: italic;
    margin-top: 6px;
}

/* ============================================================
   ANA MENÜ
============================================================ */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    padding: 10px 20px;
    background: #a8d5ba;
    border: none;
    width: 100%;
    text-align: left;
    color: #1b3c2f;
    font-weight: bold;
    cursor: pointer;
}

.main-menu {
    background-color: #a8d5ba;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 20px;
    z-index: 999;
}

ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    ul.menu > li {
        position: relative;
        padding: 0 12px;
        border-right: 1px dashed rgba(255, 255, 255, 0.2);
    }

        ul.menu > li:last-child {
            border-right: none;
        }

        ul.menu > li > a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 14px;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            color: #1b3c2f;
            border-bottom: 4px solid transparent;
            transition: all 0.3s ease;
        }

            ul.menu > li > a:hover {
                color: white;
                background-color: #81c784;
                border-bottom: 4px solid #558b2f;
            }

/* ============================================================
   ALT MENÜ
============================================================ */
.submenu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background-color: #c8e6c9;
    min-width: 240px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
}

.has-submenu:hover > .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 0.95rem;
    color: #1b3c2f;
    transition: all 0.3s ease;
}

    .submenu li a:hover {
        background-color: #81c784;
        color: #fff;
        padding-left: 26px;
    }

/* ============================================================
   BAŞLIK BANDI
============================================================ */
.baslik-bant {
    max-width: 600px;
    margin-top:20px;
    margin-left:auto;
    margin-right:auto;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 30px 30px 0 30px;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.6s ease-out;
}

    .baslik-bant:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        transform: translateY(-2px);
    }

    .baslik-bant h2 {
        font-size: 1.4rem;
        font-weight: 500;
        margin: 0;
        position: relative;
        z-index: 1;
    }

        .baslik-bant h2::after {
            content: "";
            display: block;
            width: 50px;
            height: 3px;
            margin: 10px auto 0;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 2px;
        }

/* ============================================================
   SLIDER PLACEHOLDER
============================================================ */
.slider-placeholder {
    text-align: center;
    padding: 50px 20px;
    background-color: #e0f2f1;
}

/* ============================================================
   ANA İÇERİK
============================================================ */
.main-content {
    padding: 20px;
    min-height: 60vh;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background-color: #2f5d3c;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

/* ============================================================
   ANİMASYON
============================================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   MOBİL UYUM
============================================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
    }

        .main-menu.active {
            display: block;
        }

    .menu {
        flex-direction: column;
    }

        .menu > li {
            border-right: none;
            width: 100%;
        }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: #b9dfb9;
    }

    .has-submenu:hover > .submenu {
        display: none;
    }

    .has-submenu.open > .submenu {
        display: block;
    }

    .top-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

        .top-header .logo img {
            height: 100px;
            max-width: 90%;
        }

        .top-header .banner {
            align-items: center;
        }

    .firma-adi {
        font-size: 1.3rem;
    }

    .slogan {
        font-size: 0.9rem;
    }

    .baslik-bant {
        max-width: 100%;
        border-radius: 20px 20px 0 20px;
    }
}
