﻿
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #f72585;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    user-select: none;
}

/* TOPBAR */
.topbar {
    background: #e7f0ff; /* Çok açık soft mavi */
    color: #2a3f66; /* Orta koyulukta mavi-gri, göz yormaz */
    font-size: 13px;
    padding: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.02em;
}

    .topbar.hide {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .topbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .topbar .contact-info i {
        color: #2a3f66;
        margin-right: 12px;
        font-size: 16px;
        vertical-align: middle;
    }

    .topbar .contact-info span,
    .topbar .contact-info a {
        color: #2a3f66;
        margin-right: 30px;
        text-decoration: none;
        font-weight: 400;
        font-style: normal;
        vertical-align: middle;
        display: inline-block;
    }

    .topbar .social-links a {
        color: #2a3f66;
        margin-left: 14px;
        transition: var(--transition);
        font-size: 16px;
        line-height: 1;
    }

        .topbar .social-links a:hover {
            color: #5078b9; /* Hoverda biraz daha canlı mavi */
        }


/* BRANDING (NAVBAR) */
.branding {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: white;
    transition: var(--transition);
    position: relative;
}

    /* LOGO */
    .branding a.logo img {
        max-height: 80px;
        max-width: 125%;
        height: auto;
    }

/* NAVMENU */
#navmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Ana menü yatay */
    align-items: center;
    gap: 20px;
}

    #navmenu ul li {
        position: relative;
    }

#navmenu a {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 12px;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 14px; /* Ana menü yazı boyutu */
}

    #navmenu a:hover {
        color: var(--primary-dark);
    }

/* Dropdown Menu */
#navmenu .dropdown {
    position: relative;
}

    #navmenu .dropdown ul {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        background-color: white;
        min-width: 220px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.1);
        z-index: 1000;
        padding: 6px 0; /* Daha az padding */
        border: 1px solid rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column; /* Alt menü dikey */
        gap: 4px; /* Alt menü li arası boşluk */
    }

    #navmenu .dropdown:hover ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navmenu .dropdown ul::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 20px;
        border: 8px solid transparent;
        border-bottom-color: white;
        filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
    }

    #navmenu .dropdown ul li {
        width: 100%;
        margin: 0; /* Boşluk flex gap ile kontrol ediliyor */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        #navmenu .dropdown ul li a {
            display: flex;
            align-items: center;
            padding: 8px 20px; /* Daha az padding */
            color: var(--dark);
            text-decoration: none;
            font-weight: 600;
            font-size: 13px; /* Daha küçük yazı */
            border-radius: 6px;
            transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
        }

            #navmenu .dropdown ul li a:hover {
                background-color: rgba(var(--primary-rgb), 0.15);
                color: var(--primary);
                padding-left: 24px;
                box-shadow: 0 4px 12px rgba(67,97,238,0.15);
            }

            #navmenu .dropdown ul li a::before {
                content: '';
                display: inline-block;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: rgba(var(--primary-rgb), 0.3);
                margin-right: 12px;
                transition: all 0.4s ease;
            }

            #navmenu .dropdown ul li a:hover::before {
                background: var(--primary);
                transform: scale(1.4);
            }

/* Örnek değişkenler */
:root {
    --primary: #4361ee;
    --primary-rgb: 67,97,238;
    --primary-dark: #3a0ca3;
    --dark: #1a1a2e;
    --transition: all 0.3s ease;
}

/* LOGIN BUTTON */
.login-container {
    position: relative;
    margin-left: 15px;
}

    .login-container button {
        background-color: var(--primary);
        color: #fff;
        border: none;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 500;
    }

.login-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

    .login-container.show .login-dropdown,
    .login-dropdown[aria-expanded="true"] {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .login-dropdown a {
        display: block;
        padding: 10px 15px;
        color: var(--dark);
        text-decoration: none;
        border-bottom: 1px solid #eee;
        font-weight: 500;
    }

        .login-dropdown a:hover {
            background-color: var(--light);
            color: var(--primary);
        }

/* MOBILE NAV TOGGLE BUTTON */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-dark);
    cursor: pointer;
    margin-left: 10px;
}

/* MOBILE MENU */
@media (max-width: 991px) {
    #navmenu ul {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 998;
    }

        #navmenu ul.show {
            display: flex;
        }

        #navmenu ul li {
            width: 100%;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

            #navmenu ul li:last-child {
                border-bottom: none;
            }

            #navmenu ul li a {
                padding: 12px 20px;
                width: 100%;
                font-weight: 600;
                font-size: 16px;
            }

    /* Dropdown alt menüler mobilde toggle ile açılır */
    #navmenu .dropdown > ul {
        display: none;
        background: #f9f9f9;
        margin-top: 5px;
        padding-left: 20px;
    }

    #navmenu .dropdown.open > ul {
        display: block;
    }

    #navmenu .dropdown ul li a {
        padding: 10px 20px;
        font-weight: 400;
        font-size: 14px;
        border-bottom: none;
    }

    /* Dropdown ok işareti mobilde */
    #navmenu .dropdown > a::after {
        content: "▸";
        float: right;
        transition: transform 0.3s ease;
    }

    #navmenu .dropdown.open > a::after {
        transform: rotate(90deg);
    }

    /* Dropdown ok iconu gizle */
    #navmenu .dropdown > a > i.toggle-dropdown {
        display: none;
    }

    /* Mobil toggle button göster */
    .mobile-nav-toggle {
        display: block;
    }

    /* Branding container mobilde relative */
    .branding {
        position: relative;
    }

    /* Login button margin küçült */
    .login-container {
        margin-left: 10px;
    }
}


