body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 22;
}

.header-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 36px 18px 36px;
}

.logo img {
    display: block;
    height: 45px;
}

.menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu li {
    position: relative;
}

/* Menü Butonları */
.btn-outline {
    border: 2px solid #191919;
    color: #191919;
    background: #fff;
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
    display: inline-block;
}
.btn-outline:hover {
    background: #e27924;
    color: #fff;
    border-color: #e27924;
}
.btn-outline.active,
.btn-outline.selected {
    background: #191919;
    color: #fff;
    border-color: #191919;
}

.btn-black {
    border: none;
    background: #191919;
    color: #fff;
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.btn-black:hover, .dropdown.open > .btn-black {
    background: #e27924;
    color: #fff;
}

.btn-orange {
    border: none;
    background: #e27924;
    color: #fff;
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.btn-orange:hover {
    background: #191919;
    color: #fff;
}

/* Dropdown */
.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    display: block !important;
}
.dropdown-menu {
    display: none !important;   /* ÖNEMLİ! */
    position: absolute;
    /*top: 110%;*/
    left: 0;
    background: #fff;
    border-radius: 12px;
    min-width: 240px;
    box-shadow: 0 8px 32px 0 rgba(60,60,60,.12);
    z-index: 20;
    padding: 8px 0;
}
.dropdown-menu li a {
    display: block;
    padding: 14px 22px;
    color: #191919;
    font-size: 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
    background: #f3f3f3;
    color: #e27924;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-icon {
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.login-link {
    font-size: 20px;
    color: #191919;
    font-weight: 400;
    margin-left: 5px;
    text-decoration: underline;
    transition: color .2s;
}
.login-link:hover {
    color: #e27924;
}

/* Hamburger Menü */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    margin-left: 12px;
    cursor: pointer;
    height: 32px;
    width: 40px;
    justify-content: center;
    align-items: center;
}
.menu-toggle span {
    display: block;
    width: 32px;
    height: 4px;
    background: #191919;
    border-radius: 3px;
    transition: all 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    .header-inner {
        padding: 14px 10px 10px 10px;
    }
    .logo img {
        height: 50px;
    }
    .btn-outline, .btn-black, .btn-orange { font-size: 19px; padding: 5px 12px; }
    .login-link { font-size: 22px; }
}
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .menu {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        box-shadow: 0 8px 32px 0 rgba(60,60,60,.10);
        border-bottom: 1px solid #eee;
        display: none;
        z-index: 99;
    }
    .menu.open {
        display: block;
        animation: menuOpen .22s;
    }
    .menu ul {
        flex-direction: column;
        gap: 5px;
        padding: 18px 0;
    }
    .menu li {
        width: 100%;
        text-align: left;
    }
    .dropdown-menu {
        position: static;
        min-width: unset;
        box-shadow: none;
        padding: 2px 0;
        background: #f7f7f7;
    }
    .header-actions {
        margin-left: auto;
        gap: 4px;
    }
    .menu-toggle {
        display: flex;
    }
}
@media (max-width: 600px) {
    .logo img { height: 33px; }
    .btn-outline, .btn-black, .btn-orange { font-size: 15px; padding: 4px 8px; }
    .login-link { font-size: 16px; }
}

@keyframes menuOpen {
    0% { transform: translateY(-16px); opacity:0 }
    100% { transform: none; opacity:1 }
}
/* Arama Modalı */
.search-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.28);
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.search-modal.active {
    display: flex;
    animation: fadeIn .18s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.search-modal-content {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(60,60,60,.18);
    padding: 32px 40px 28px 40px;
    min-width: 340px;
    max-width: 92vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    position: absolute;
    right: 22px;
    top: 15px;
    color: #191919;
    cursor: pointer;
    padding: 0;
    transition: color .2s;
}
.search-modal-close:hover { color: #e27924; }

#search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

#search-input {
    font-size: 20px;
    padding: 8px 18px;
    border-radius: 16px;
    border: 1.5px solid #e0e0e0;
    outline: none;
    min-width: 220px;
    transition: border .18s;
}
#search-input:focus {
    border-color: #e27924;
}

.search-btn {
    padding: 8px 18px;
    font-size: 20px;
    border-radius: 16px;
    border: none;
    background: #e27924;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s;
}
.search-btn:hover { background: #191919; }

@media (max-width: 480px) {
    .search-modal-content {
        min-width: 0;
        padding: 18px 7vw 18px 7vw;
    }
    #search-input {
        min-width: 0;
        width: 100px;
        font-size: 16px;
        padding: 8px 8px;
    }
    .search-btn { font-size: 16px; padding: 8px 10px; }
    .search-modal-close { font-size: 26px; right: 12px; top: 8px; }
}


/* --- Sağ Alan, Girişli Kullanıcı İçin --- */
.header-actions.logged-in {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-puan {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
}
.header-puan .puan-value {
    color: #191919;
    text-decoration: underline;
    font-size: 17px;
}
.header-puan .puan-icon img {
    width: 19px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 1px #cab56588);
}
.header-usericon {
    width: 36px;
    height: 36px;
    border: 1.5px solid #191919;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #191919;
    background: #fff;
}
.header-profile-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.header-profile-btn {
    background: #e27924;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 8px 22px 8px 19px;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(226,121,36,0.13);
    display: flex; align-items: center; gap: 7px;
    position: relative;
    z-index: 2;
    transition: background .14s;
}
.header-profile-btn:hover,
.header-profile-btn:focus { background: #191919; color: #fff; }
.header-profile-dropdown {
    display: none;
    position: absolute;
    right: 0; top: 110%;
    min-width: 170px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 36px 0 rgba(80,40,10,0.12);
    padding: 10px 0 10px 0;
    margin-top: 6px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    animation: dropdown-in .27s cubic-bezier(.19,1.5,.4,1);
}
.header-profile-dropdown.open { display: flex; }
.header-profile-dropdown a {
    color: #191919;
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    padding: 11px 20px;
    transition: background .13s, color .13s;
    border: none;
    display: block;
    cursor: pointer;
}
.header-profile-dropdown a:hover,
.header-profile-dropdown a:focus {
    background: #f6f3f1;
    color: #e27924;
}
.profile-dropdown-top {
    font-weight: 600;
    color: #e27924;
    border-bottom: 1px solid #e6e6e6;
}
.profile-dropdown-logout {
    color: #ff3535;
    border-top: 1px solid #e6e6e6;
    margin-top: 6px;
}
@keyframes dropdown-in {
    0% { transform: translateY(-10px) scale(.97); opacity: 0;}
    100% { transform: none; opacity: 1;}
}
