* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
}

.my-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 98% !important;
    max-width: 98% !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}


.nav-logo { margin-right: 10px; display: flex; align-items: center; }
.nav-logo img {
    height: 90px;
    transition: 0.3s;
}

.navbar-scrolled {
    height: 80px !important;


    background-color: rgba(255, 255, 255, 0.1) !important;

    backdrop-filter: blur(9px) saturate(160%);
    -webkit-backdrop-filter: blur(9px) saturate(160%);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    transition: all 0.4s ease-in-out;
}

.navbar-scrolled .nav-item > a {
    color: #212529 !important;
    text-shadow: 0px 0px 1px rgba(255,255,255,0.5);
}

.nav-wrapper { display: flex; align-items: center; width: 100%; }

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    gap: clamp(8px, 1.2vw, 10px);

    margin: 0 auto;

    position: relative;
    left: 0;
    transform: none;
}

.nav-item > a {
    position: relative;
    color: #212529 !important;
    font-weight: 600;
    font-size: 1.0rem;
    padding: 8px 18px 8px 30px !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    z-index: 1;
}

.nav-item > a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 25%;
    height: 50%;
    width: 4px;
    background-color: #852248;
    border-radius: 10px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.nav-item > a:hover {
    color: #000 !important;

    box-shadow:
        -15px 0 35px -5px rgba(133, 34, 72, 0.6),
        -5px 0 15px rgba(133, 34, 72, 0.4);

    padding-left: 35px !important;
}

.nav-item > a:hover::before {
    opacity: 1;
    height: 80%;
    top: 10%;
    background-color: #a32a58;
    box-shadow: 0 0 15px 2px rgba(133, 34, 72, 0.9);
}

.navbar-scrolled .nav-item > a:hover {
    box-shadow:
        -25px 0 45px -10px rgba(133, 34, 72, 0.7),
        -10px 0 20px rgba(133, 34, 72, 0.5);
}

.nav-actions { display: flex; align-items: center; gap: 10px;}

.lang-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 15px;
}

.lang-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    filter: grayscale(100%);
    opacity: 0.5;
    text-decoration: none;
    position: relative;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lang-btn.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    box-shadow: 0 0 15px 4px rgba(40, 167, 69, 0.7);
    border: 2px solid rgba(40, 167, 69, 0.5);
    z-index: -1;
}

.hamburger {
    display: none;
    color: #852248;
    font-size: 1.7rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 15px !important;
}

.my-dropdown { position: relative; }

.my-dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: white; min-width: 260px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee; border-radius: 8px;
    padding: 10px 0; display: none;
    flex-direction: column; z-index: 1001;
}

.my-dropdown-menu a {
    color: #333 !important; padding: 10px 20px; display: block;
    text-decoration: none; font-size: 0.95rem;
}
.my-dropdown-menu a:hover { background: #fcebf1; color: #852248 !important; }

.dropdown-submenu { position: relative; }

.drawer-menu {
    display: none;
    position: absolute;
    left: 100%; top: -10px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 8px 8px 0;
    box-shadow: 10px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    overflow-y: auto;
    padding: 10px 0;
}


.drawer-section-title {
    padding: 12px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-section-title:hover { background: #fcebf1; color: #333 !important; }

.drawer-products {
    display: none;
    background: #fff;
    border-left: 3px solid #852248;
}
.drawer-products.active { display: block; }

.drawer-products a {
    padding: 10px 35px !important;
    font-size: 0.85rem !important;
    border-bottom: 1px dotted #eee;
    display: flex !important;
}

.scrollable-menu, .drawer-menu {
    scrollbar-width: thin;
    scrollbar-color: #852248 #f1f1f1;
}
.drawer-menu::-webkit-scrollbar,
.scrollable-menu::-webkit-scrollbar { width: 6px; }
.drawer-menu::-webkit-scrollbar-thumb,
.scrollable-menu::-webkit-scrollbar-thumb { background: #852248; border-radius: 10px; }

.online-dot {
    height: 7px;
    width: 7px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 4px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}


@media (max-width: 1300px) {

    body { padding-top: 70px; }
    .my-navbar {
        height: 70px;
    }
    .hamburger { display: block; }
    .nav-logo img {
        height: 45px;
    }

    .navbar-scrolled {
        background-color: #ffffff !important;
        height: 70px;
    }
    .nav-wrapper {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: white; flex-direction: column;
        align-items: flex-start; padding: 0;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; max-height: 85vh; overflow-y: auto;
    }
    .nav-wrapper.active { display: flex; }
    .nav-menu { flex-direction: column; width: 100%; margin: 0; gap: 0; }
    .nav-item { width: 100%; border-bottom: 1px solid #f8f9fa; }
    .nav-item > a { display: block; padding: 15px 20px; font-weight: 600; color: #333; width: 100%; }

    .my-dropdown-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        padding: 0;
        display: none;
        max-height: none !important;
        overflow: visible !important;
    }
    .my-dropdown-menu.show { display: block; }

    .drawer-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #fff;
        display: none;
        padding: 0;
        max-height: none !important;
        overflow: visible !important;
    }
    .nav-actions .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        background-color: #f8f9fa;
    }
    .drawer-menu.show { display: block; }

    .nav-actions { flex-direction: column; width: 100%; align-items: flex-start; padding: 20px; gap: 15px; }
}

.main-content { flex-grow: 1; }

@media (min-width: 1301px) {
    .my-dropdown:hover > .my-dropdown-menu { display: none; }
    .dropdown-submenu:hover > .drawer-menu { display: none; }
}

.my-dropdown-menu.show {
    display: flex !important;
}

.drawer-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1301px) and (max-width: 1750px) {
    .nav-logo img {
        height: clamp(55px, 6.5vw, 90px);
        width: auto;
        transition: all 0.3s ease;
    }

    .nav-menu { gap: 8px !important; }

    .nav-item > a {
        font-size: clamp(0.65rem, 0.9vw, 0.9rem);
        white-space: nowrap;
        transition: all 0.3s ease;
        padding: 10px 15px;
        position: relative;
        display: block;
    }

    .nav-actions { gap: 8px !important; }

    .nav-actions .dropdown-toggle,
    .nav-actions a[data-bs-target="#loginModal"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 0.85rem !important;
    }
}

#globalHaberResimAlani {
    height: 400px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    border: 1px solid #eee;
}

#globalHaberResim {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    #globalHaberResimAlani {
        height: 250px !important;
    }
}