/* =================================================================================== */
/* STAJLA - style.css (NİHAİ HATASIZ VE TÜM ÇÖZÜMLERİ İÇEREN VERSİYON) */
/* =================================================================================== */

/* --- TEMEL SIFIRLAMA VE FONTLAR --- */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --- NAVBAR (ÜST MENÜ) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: #222;
    color: white;
    border-bottom: 3px solid #FFD43B;
    height: 60px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: white;
}

.logo-img {
    height: 30px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD43B;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

/* Nav Linklerin Genel Stili */
.nav-links a {
    color: white;
    margin-left: 15px;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 15px;
}

.nav-links a:hover {
    background-color: #333;
    text-decoration: none;
}

/* Giriş Yap / Kayıt Ol Buton Stili (Giriş yapılmadığında) */
#user-nav a[href="/giris.html"] {
    background-color: #FFD43B;
    color: #212529;
    font-weight: bold;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    font-size: 1rem; /* KRİTİK: Butonun görünürlüğünü garanti eder */
}
#user-nav a[href="/giris.html"]:hover {
    background-color: #eab60a;
}

/* --- MASAÜSTÜNDE GİZLEME (ÇİFT NAVİGASYON ÇÖZÜMÜ) --- */
#hamburger-menu, #mobile-nav {
    display: none;
}


/* --- DROPDOWN VE AVATAR STİLİ --- */
#user-nav {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 0; /* Çakışan metinleri gizler */
    height: 100%;
}

.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 10px;
    height: 100%;
    transition: background-color 0.2s;
}

.profile-dropdown:hover {
    background-color: #333;
}

/* Avatar ve Baş Harf Kutusu */
.profile-avatar-img, .profile-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #FFD43B;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid white;
    margin-right: 15px;
}
.profile-avatar-img { object-fit: cover; }

/* Dropdown İçeriği */
.profile-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background-color: #222;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    min-width: 180px;
    z-index: 1000;
    border-radius: 5px;
    border-top: 3px solid #FFD43B;
    overflow: hidden;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.profile-dropdown .dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    display: block;
    background-color: #333;
    margin: 0;
    border-bottom: 1px solid #444;
    text-align: left;
    white-space: nowrap;
}

.profile-dropdown .dropdown-content a:hover {
    background-color: #FFD43B !important;
    color: #212529 !important;
}


/* --- HERO BÖLÜMÜ VE ARAMA KUTUSU STİLLERİ (MLP) --- */
.hero-section {
    background-color: #222;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-section p {
    font-size: 1.25rem;
    color: #ced4da;
    max-width: 800px;
    margin: 0 auto;
}

.search-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #FFD43B;
    border-radius: 8px;
    overflow: hidden;
}

.search-box input, .search-box select {
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 1rem;
    flex-grow: 1;
}

.search-box button {
    background-color: #FFD43B;
    color: #212529;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.search-box button:hover {
    background-color: #eab60a;
}

.trust-indicators {
    text-align: center;
    margin-top: 15px;
}
.trust-indicators p {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- GENEL İÇERİK VE FORM STİLLERİ (KRİTİK ÇÖZÜM) --- */
.homepage-section {
    padding: 64px 0;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

/* KRİTİK FORM DÜZELTMESİ */
.form-page { padding: 40px 24px; max-width: 1000px; margin: 0 auto; }
.form-page h2 { text-align: center; color: #333; margin-bottom: 30px; }

/* Bu 3 kural formların yatay değil, dikey akmasını sağlar */
.card form {
    display: flex;
    flex-direction: column;
    gap: 0; /* Form elemanları arasında boşluk bırakılır */
}
/* style.css içindeki .card sınıfının yeni içeriği */
.card {
    background-color: #ffffff; /* KRİTİK: Arkaplanı kesinlikle beyaz yap */
    border-radius: 10px; /* Köşeleri yuvarla */
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* MLP GÖLGE: Belirgin bir gölge ver */
    text-align: left;
    border: 1px solid #e0e0e0; /* Hafif bir sınır ekle (Gereksiz beyaz boşluğu engeller) */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* İlan listeleme yapısı için düzeni ayarlar: */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Hover efekti */
}
/* --- KART İÇİ BOŞLUK OPTİMİZASYONU --- */
.card p {
    margin: 5px 0 !important; /* Dikey boşluğu sadece 5px'e düşür */
    font-size: 0.95rem; /* Yazı fontunu hafif küçült */
    line-height: 1.4;
}

.card h4 {
    margin-bottom: 5px !important; /* Başlık altındaki boşluğu azalt */
}

.card-body {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.form-page label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #495057;
}

.form-page input, .form-page textarea, .form-page select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}
.form-page button[type="submit"] { background-color: #222; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: bold; margin-top: 10px; transition: background-color 0.2s; }
.form-page button[type="submit"]:hover { background-color: #000; }

/* 'Beni Hatırla' Butonu Düzeltmesi */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px; /* Kutu ile yazı arasına boşluk */
    margin-bottom: 20px;
    font-weight: 500;
}
.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}
.remember-me label {
    margin: 0;
    font-weight: normal;
}


/* --- FOOTER VE MOBİL UYUMLULUK --- */
footer {
    background-color: #222;
    color: #ced4da;
    text-align: center;
    padding: 20px 40px;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 3px solid #FFD43B;
}

footer a {
    color: #FFD43B;
    margin: 0 8px;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- MOBİL UYUMLULUK (ÇÖZÜM) --- */
@media (max-width: 768px) {
    /* Masaüstü linklerini gizle */
    .desktop-link { display: none; }
    .navbar { padding: 10px 15px; justify-content: space-between; height: 55px; }
    .navbar .left { display: flex; align-items: center; }
    #hamburger-menu { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; order: -1; margin-right: 10px; }
    .bar { width: 22px; height: 3px; background-color: white; border-radius: 2px; }
    .logo-text { display: none; }
    .logo-img { height: 25px; margin-right: 0; }

    #mobile-nav { position: fixed; top: 55px; left: -100%; width: 80%; max-width: 300px; height: 100%; background-color: #333; padding: 20px; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5); transition: left 0.3s ease-in-out; z-index: 1000; display: flex; flex-direction: column; }
    #mobile-nav.active { left: 0; }
    #mobile-nav a { color: white; padding: 10px 0; border-bottom: 1px solid #444; margin-bottom: 5px; font-size: 1.1rem; }

    .hero-section { padding: 50px 0; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .search-box { flex-direction: column; border: 2px solid #FFD43B; border-radius: 8px; padding: 10px; gap: 0; }
    .search-box input, .search-box select, .search-box button { width: 100%; margin-bottom: 10px; border: 1px solid #ced4da; border-radius: 4px; }
    .search-box button { margin-bottom: 0; border: none; background-color: #FFD43B; }
}