/* ============================================
   Azalan Medikal - MENÜ CSS
   ============================================ */

/* ---- HEADER ---- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    height: 75px;
}
header .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}
header .logo img { max-height: 48px; }
header .logo .logo-text-fallback { line-height: 1.1; }

/* ---- DESKTOP NAV ---- */
nav ul.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
nav ul.menu > li {
    position: relative;
}
nav ul.menu > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2c3e50;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
nav ul.menu > li > a:hover {
    color: #009f93;
    background: #fff5f5;
}
nav ul.menu > li.aktif > a,
nav ul.menu > li.current > a {
    color: #009f93;
}

/* Sub menü */
nav ul.menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
    border-top: 3px solid #009f93;
}
nav ul.menu .has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
nav ul.menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s;
}
nav ul.menu .sub-menu li a:hover {
    color: #009f93;
    background: #fff5f5;
    padding-left: 26px;
}

/* ---- MENU BOX (sağ butonlar) ---- */
.menu-box {
    display: flex;
    align-items: center;
    gap: 14px;
}
.search-alan {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.2s;
}
.search-alan:hover { background: #009f93; color: #fff; }

/* Hamburger */
#nav-icon {
    width: 36px;
    height: 28px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
#nav-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s;
    transform-origin: left;
}
#nav-icon.open span:nth-child(1) { transform: rotate(42deg) scaleX(1.1); }
#nav-icon.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-icon.open span:nth-child(3) { transform: rotate(-42deg) scaleX(1.1); }

/* ---- ARAMA FORMU ---- */
.search-form {
    position: fixed;
    top: 75px; left: 0; right: 0;
    background: #1a2d4f;
    padding: 20px 0;
    z-index: 800;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.search-form.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.search-form .forms {
    display: flex;
    gap: 12px;
}
.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    outline: none;
    transition: all 0.2s;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { background: rgba(255,255,255,0.2); }
.search-form .submit {
    padding: 12px 28px;
    background: #009f93;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.search-form .submit:hover { background: #007d73; }

/* ---- YAN MENÜ ---- */
.yan-menu {
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #1a2d4f;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}
.yan-menu.open {
    left: 0;
    box-shadow: 6px 0 40px rgba(0,0,0,0.3);
}
.yan-menu-center { padding: 30px 24px; }
.yan-menu .logo { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.yan-menu .logo img { max-height: 50px; filter: brightness(0) invert(1); }
.yan-menu .logo .logo-text-fallback { color: #fff !important; }
.yan-menu .logo .logo-text-fallback small { color: #ccc !important; }
.yanmenu { margin-bottom: 30px; }
.yanmenu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.yanmenu li a {
    display: block;
    padding: 14px 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.yanmenu li a:hover { color: #fff; padding-left: 6px; }
.yan-menu .head-title h2 {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.yan-menu .li-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.yan-menu .li-left a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
}
.yan-menu .li-left a:hover { background: #009f93; color: #fff; }
.yan-menu .copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.yan-menu .copyright p { color: rgba(255,255,255,0.4); font-size: 12px; line-height: 1.6; }

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.menu-overlay.show { display: block; }

/* ---- RESPONSIVE MENÜ ---- */
@media (max-width: 900px) {
    nav ul.menu { display: none; }
    #nav-icon { display: flex; }
}

@media (min-width: 901px) {
    .yan-menu { display: none !important; }
}
