/* assets/header.css */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Masaüstü Ana Menü */
.main-nav {
    margin-left: auto;
    margin-right: 1.5rem;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav ul li { position: relative; margin-left: 2rem; }
.main-nav ul li a { text-decoration: none; color: #4b5563; font-weight: 500; transition: color 0.2s; }
.main-nav ul li a:hover { color: #4f46e5; }
.has-submenu > ul { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 8px; padding: 0.5rem 0; min-width: 200px; flex-direction: column; }
.has-submenu:hover > ul { display: flex; }
.has-submenu ul li a { padding: 0.75rem 1.5rem; display: block; }

/* Sağ Taraftaki Aksiyon Butonları */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Üye Giriş Menüsü (Giriş Yapmış) */
.user-menu { position: relative; }
.user-menu-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-weight: 500; color: #374151; padding: 0.5rem; border-radius: 9999px; transition: background-color 0.2s; text-decoration: none; }
.user-menu-btn:hover { background-color: #f3f4f6; }
.user-menu-btn i { font-size: 1.2rem; }
.user-dropdown { display: none; position: absolute; top: calc(100% + 10px); right: 0; background-color: #fff; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); width: 220px; z-index: 110; border: 1px solid #f3f4f6; }
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a { display: block; padding: 0.75rem 1rem; text-decoration: none; color: #374151; }
.user-dropdown a:hover { background-color: #f9fafb; }
.user-dropdown a.logout-link { color: #ef4444; }

/* Misafir Giriş Butonları */
.guest-actions { display: flex; align-items: center; gap: 0.5rem; }
.guest-link {
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; 
}
.guest-link:hover { background-color: #f3f4f6; }
.guest-link.signup { background-color: #E5E7EB; border-color: #D1D5DB; }
.guest-link.signup:hover { background-color: #D1D5DB; }

/* Ücretsiz İlan Ver Butonu */
.cta-btn-animated { background-image: linear-gradient(to right, #f97316, #fb923c); color: #fff; padding: 0.6rem 1.2rem; border-radius: 9999px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1); animation: pulse 2s infinite; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }

/* Mobil Hamburger Butonu */
.mobile-menu-btn { background: none; border: none; font-size: 1.5rem; color: #374151; cursor: pointer; }

/* Mobil Görünüm */
@media (max-width: 1024px) { /* lg breakpoint */
    .main-nav.hidden {
        display: none;
    }
    .main-nav.show {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .main-nav ul { flex-direction: column; padding: 1rem 0; align-items: flex-start; }
    .main-nav ul li { margin: 0; width: 100%; }
    .main-nav ul li a { padding: 1rem; display: block; width: 100%; border-bottom: 1px solid #f3f4f6; }
    .has-submenu > ul { position: static; box-shadow: none; padding: 0 0 0 1rem; }
}

@media (max-width: 768px) { /* md breakpoint */
    .guest-actions { display: none; } 
    
    /* DÜZELTME: Ücretsiz İlan Ver butonu mobilde gizlendi */
    .cta-btn-animated { display: none; }
}
