/* resources/css/header.css */

/* Genel Header Stili */
.main-header5236 {
    background-color: #007782; /* Yedek renk, resim yüklenmezse */
    background-image: url('/resimler/zeminrengiturkuaz.png'); /* Doğrudan public klasöründen yol */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    width: 100%;
    height: 65px;
    margin: 0;
    position: fixed; /* sticky yerine fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 999; /* en üstte kalır */
    display: flex;
    flex-direction: column;
}




.lobster-logo {
    font-family: "Lobster", sans-serif;
    font-size: 2.75rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;  
    align-items: center;
    height: 73px;
    line-height: 1;              /* Satır yüksekliğiyle uyum */
    padding-top: 2px;            /* Minik yukarı çeksin */
    transform: translateY(-3px);
}



.lobster-logo:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* hafif parıltı efekti */
    transform: translateY(-2px); /* üzerine gelince hafif yukarı kalkar */
}


/* Konteyner */
.header-container5236 {
    width: 100%;
    max-width: 80rem;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-logo5236 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px; /* Tüm header ile uyumlu */
}



/* Konum Bölümü (Buton ile) */
.location-selector5236 {
    align-items: center;
    height: 55px;
    margin-left: 15px;
    position: relative; /* Ekle */
    z-index: 10; /* Daha yüksek bir z-index */
}


.location-button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #2b2929;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}



.location-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: black;
}

/* Arama Kutusu */
.search-section5236 {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 15px;
    align-items: center; /* ortala */
    height: 40px;         /* logo ile aynı */
    transform: translateY(-9px);
}


.search-section5236 form {
    display: flex;
    align-items: center;
}

.search-section5236 input {
    width: 100%;
    padding: 7px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 14px;
}

.search-section5236 button {
    background: #2e7ea5;
    height: 34px; /* Input ile aynı yükseklik */
    border: none;
    cursor: pointer;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
}

.search-section5236 button i {
    color: white;
    font-size: 16px;
}

/* Arama Önerileri */
.arama-onerileri {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.oneri-bolum {
    padding: 10px;
}

.oneri-bolum h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #333;
}

.arama-onerileri ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arama-onerileri li {
    padding: 8px;
    cursor: pointer;
}

.arama-onerileri li:hover {
    background: #f0f0f0;
}

.arama-onerileri a {
    text-decoration: none;
    color: #333;
    display: block;
}

.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vh; /* Sayfanın yarısını kaplasın */
    text-align: center;
    background: #fff;
    padding: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.no-results-message {
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

.no-results-image {
    width: 120px;
    margin-top: 10px;
    opacity: 0.8;
}

/* İkonlar */
.header-icons5236 {
    display: flex;
    gap: 33px;
    margin: 0 8px;
    position: relative;
}

.header-icon5236 {
    color: white;
    font-size: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;   /* ← dikey ortalama */
    justify-content: center;
    height: 45px;          /* logo ile aynı yükseklik */
    position: relative;
}


.header-icon5236:hover {
    color: #d5edf0;
}

/* Bildirim İkonu ve Badge */
.notification-icon {
    display: flex;
    align-items: center;
    height: 68px;
    color: white;
    font-size: 24px;
    position: relative;
    transform: translateY(-9px); /* ikonlar 3px yukarı */
    text-decoration: none;
}
.notification-icon:hover {
    color: #d5edf0;
}

.header-icon5236 .badge {
    position: absolute;
    top: 11px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 0.8rem;
    min-width: 20px;
    height: 20px;
    line-height: 12px;
    text-align: center;
}

#mesajlasmaIcon {
    display: flex;
    align-items: center;
    height: 65px;
    transform: translateY(-7px); /* ikonlar 3px yukarı */
}


.header-icon5236 .badge[style*="display: block"] {
    display: block; /* JavaScript ile görünür hale gelir */
}

/* Butonlar */
.header-actions5236 {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.login-button5236, .post-ad-button5236 {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    z-index: 1000;
    position: relative;
}

.login-button5236 {
    background-color: white;
    color: #007782;
    border: 1px solid #007782;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: center;
    height: 40px;
    transition: all 0.3s ease;
    transform: translateY(-9px);
}

.login-button5236:hover {
    background-color: #e6e6e6;
    color: rgb(102, 102, 102);
}


.post-ad-button5236 {
    background-color: #e9a300;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 40px;
    text-decoration: none;
    transform: translateY(-10px);
}

.post-ad-button5236:hover {
    background-color: #eeb034;
    color: black;
}


.header-kalp {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    height: 65px; /* logoyla hizalı */
    text-decoration: none;
    transform: translateY(-9px); /* ikonlar 3px yukarı */
}

.header-kalp:hover {
    color: #d5edf0;
}
/* Kullanıcı Profili ve Dropdown */
.user-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-right: 14px; /* ← 4px sola çeker */
    position: relative;
}


.profile-pic {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    transform: translateY(-13px); /* ← işte bu! */
}


.dropdown-icon {
    color: white;
    font-size: 14px;
}
.social-logo {
    width: 280px;
    height: 45px;
    margin-right: 1px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 230px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    padding: 8px 0;
    z-index: 999;
    font-family: 'Inter', sans-serif;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #007782;
    font-weight: 500;
}


.user-profile:hover .dropdown-menu {
    display: block;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-submit {
    width: 100%;
    padding: 10px;
    background-color: #007782;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-submit:hover {
    background-color: #007782;
}

.form-links {
    text-align: center;
    margin-top: 10px;
}

.location-button {
    background-color: white !important;
}

.form-links a {
    margin: 0 10px;
    color: #007bff;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Yeni Alert Stili */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    border-radius: 0 0 5px 5px;
}

.custom-alert-success {
    background-color: #007782;
    color: white;
}

.custom-alert-danger {
    background-color: #f44336;
    color: white;
}

.custom-alert {
    animation: slideDown 0.5s ease-in-out forwards;
}

@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* Çevrimiçi/Çevrimdışı Durum Dairesi */
.profile-pic-container {
    position: relative;
    display: inline-block;
}

.profile-pic {
    width: 2.7rem; /* Mevcut header.css'deki profile-pic ile uyumlu */
    height: 2.7rem;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    top: 14px; /* Profil resminin altında görünmesi için */
    right: -5px; /* Sağ alt köşeye hizala */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #fff; /* Beyaz kenarlık, mevcut tasarımla uyumlu */
}

.online-status.online {
    background-color: #2bc950; /* Yeşil, çevrimiçi için */
}

.online-status.offline {
    background-color: #6c757d; /* Gri, çevrimdışı için */
}

/* 📱 Mobil Responsive Ayarları */
@media (max-width: 768px) {
    .header-container5236 {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }

    .lobster-logo {
        font-size: 1.6rem;
        padding-top: 4px;
    }

    .location-selector5236,
    .header-icons5236,
    .header-actions5236 {
        display: none !important; /* Mobilde gizle */
    }

    .search-section5236 {
        width: 100%;
        margin: 0 auto;
        padding-top: 4px;
        transform: none;
    }

    .search-section5236 input {
        font-size: 13px;
        padding: 6px;
    }

    .search-section5236 button {
        height: 34px;
        font-size: 14px;
    }

    .user-profile {
        margin-right: 0;
    }

    .profile-pic {
        width: 2.4rem;
        height: 2.4rem;
        transform: none;
    }

    .dropdown-menu {
        right: 5px;
        top: 45px;
    }
}
