/* --- Yeni Font ve Genel Body Stili --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* * KALDIRILDI: Artık sabit header kullanmadığımız için bu stillere gerek yok.
 * .main { padding-top: ... }
 * .navbar-custom { ... }
 * .navbar-custom.scrolled { ... }
*/

/* --- YENİ STATİK HEADER (MAIN-NAVBAR) STİLLERİ --- */
.main-navbar {
    background-color: #1c233b !important;
    /* İstediğiniz yeni arka plan rengi 
    padding: 1rem 0;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-navbar .navbar-brand,
.main-navbar .nav-link,
.main-navbar .dropdown-toggle {
    color: #ffffff !important;
    /* Beyaz yazı rengi */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

/* Linklerin üzerine gelinceki renk */
.main-navbar .nav-link:hover,
.main-navbar .dropdown-item:hover {
    color: #eec120 !important;
    /* İstediğiniz yeni hover rengi */
}

/* Aktif linkin rengi de hover ile aynı olsun */
.main-navbar .nav-link.active {
    color: #eec120 !important;
}

/* Dropdown menüsünün arka planı */
.main-navbar .dropdown-menu {
    background-color: #1c233b;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.main-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* İlan ver butonu */
.main-navbar .btn-warning {
    background-color: #eec120;
    border-color: #eec120;
    color: #1c233b;
    font-weight: bold;
}

.main-navbar .btn-warning:hover {
    background-color: #d8af1c;
    border-color: #d8af1c;
}


/* --- Genel Bölüm Stilleri --- */
.section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 2.2rem;
    color: #343a40;
}

/* --- Hero Slider Bölümü --- */
/* Bu bölümdeki stillerde değişiklik yapmaya gerek yok, iyi çalışıyorlar. */
.hero-slider .carousel-item {
    height: 85vh;
    /* Header artık sabit olmadığı için biraz daha kısa olabilir */
    min-height: 450px;
    background-size: cover;
    background-position: center;
}

.hero-slider .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 8px;
    bottom: 15%;
}


/* --- TREND HİZMETLER / KATEGORİLER BÖLÜMÜ --- */
.trending-services .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.trending-services .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.trending-services .card-img-top {
    height: 180px;
    object-fit: cover;
}

.trending-services .card-body {
    padding: 1rem 1.25rem;
}

.trending-services .card-title a {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.trending-services .service-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.trending-services .service-meta i {
    margin-right: 6px;
    color: #95a5a6;
}

.trending-services .card-footer {
    background-color: #fff;
    border-top: none;
    padding: 0 1.25rem 1.25rem;
}

.card-footer a {
    background-color: #1c233b;
    color: white;
}

.card-footer a:hover {

    background-color: #eec120;
}

.trending-services .btn-success {
    font-weight: 500;
}


/* --- SIKÇA SORULAN SORULAR (SSS) BÖLÜMÜ --- */
.faq-section {
    background-color: #ffffff;
}

.custom-accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.custom-accordion-item .accordion-button {
    font-weight: 600;
    color: #2c3e50;
    box-shadow: none !important;
}

.custom-accordion-item .accordion-button:not(.collapsed) {
    background-color: #ffc107;
    /* Ana rengimizle uyumlu hale getirildi */
    color: #212529;
}

.custom-accordion-item .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
}

.custom-accordion-item .accordion-body {
    padding: 1.5rem;
    line-height: 1.7;
    color: #34495e;
}


/* --- İLAN LİSTELEME SAYFASI stilleri (V2) --- */
.page-banner {
    background-color: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
}

.page-banner h1 {
    font-weight: 700;
    color: #343a40;
}

.filter-bar {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.listing-card-v2 {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.listing-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.listing-card-v2 .card-img-container {
    height: 180px;
    overflow: hidden;
}

.listing-card-v2 .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-v2 .card-body {
    padding: 1.25rem;
}

.listing-card-v2 .card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #eec120;
    /* Ana hover rengimiz */
    text-transform: uppercase;
    margin-bottom: 5px;
}

.listing-card-v2 .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.listing-card-v2 .card-details {
    font-size: 0.85rem;
    color: #6c757d;
}

.listing-card-v2 .card-details i {
    margin-right: 5px;
}

.listing-card-v2 .card-footer {
    background-color: transparent;
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
}















/* --- YENİ: KULLANICI PROFİL SAYFASI (2 Sütunlu) --- */

.profile-sidebar-card {
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 25px;
    text-align: center;
    position: sticky;
    /* Sayfa kaydırılınca sidebar'ın sabit kalması için */
    top: 20px;
}

.profile-sidebar-card .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffc107;
    margin-bottom: 15px;
    object-fit: cover;
}

.profile-sidebar-card .profile-name {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-sidebar-card .profile-role {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 20px;
}

.profile-sidebar-card .profile-stats {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.profile-sidebar-card .profile-stats li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.profile-sidebar-card .profile-stats li:last-child {
    border-bottom: none;
}

.profile-sidebar-card .profile-stats strong {
    color: #343a40;
}


/* --- YENİ: İLAN VERME SAYFASI (ilan-ver.php) --- */
.form-wizard-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    padding: 40px;
}

.form-wizard-card .form-section {
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
}

.form-wizard-card .form-section:last-child {
    border-bottom: none;
}

.form-wizard-card .form-section-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: #343a40;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-wizard-card .form-section-title .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Form elemanlarına özel odaklanma (focus) efekti */
.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}







/* --- YENİ: YORUM VE PUANLAMA SİSTEMİ --- */

/* Yorum Yapma Formu Stilleri */
.review-form-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

/* Tıklanabilir Yıldız Puanlama Sistemi */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    /* Yıldızları sağdan sola dizeriz (hover efekti için) */
    justify-content: flex-end;
    font-size: 2rem;
}

.star-rating input[type="radio"] {
    display: none;
    /* Radyo butonlarını gizle */
}

.star-rating label {
    color: #ddd;
    /* Boş yıldız rengi */
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input[type="radio"]:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffc107;
    /* Dolu veya üzerine gelinen yıldız rengi */
}

/* Gelen Yorumları Listeleme Stilleri */
.review-list .review-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.review-list .review-item:last-child {
    border-bottom: none;
}

.review-list .reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-list .review-content {
    flex-grow: 1;
}

.review-list .review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-list .reviewer-name {
    font-weight: 600;
}

.review-list .review-stars {
    color: #ffc107;
}

.review-list .review-comment {
    color: #34495e;
}



/* --- BİLDİRİM MENÜSÜ --- */
.notification-dropdown {
    width: 350px;
    /* Menünün genişliği */
    max-height: 400px;
    /* Maksimum yükseklik ve scroll */
    overflow-y: auto;
}

.notification-item.unread {
    background-color: rgba(255, 255, 255, 0.1);
    /* Okunmamışları hafifçe vurgula */
}

.notification-item small {
    white-space: normal;
    /* Uzun mesajların alt satıra geçmesini sağla */
    display: block;
}








/* --- YENİ: İLAN DETAY SAYFASI --- */
.listing-detail-header h1 {
    font-weight: 700;
}

.listing-detail-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.listing-main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.listing-section-title {
    font-weight: 600;
    font-size: 1.5rem;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.listing-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px 30px;
    list-style: none;
    padding: 0;
}

.listing-details-grid li {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #e9ecef;
}

.listing-details-grid li strong {
    color: #343a40;
}

.user-contact-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 90px;
    /* Sabit header'ın yüksekliğine göre boşluk */
}

.user-contact-card .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-contact-card .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.user-contact-card .user-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0;
}





/* --- BÖLÜM: NASIL ÇALIŞIR? --- */
.how-it-works-section {
    background-color: #ffffff;
}

.step-box {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-box .step-icon {
    width: 80px;
    height: 80px;
    line-height: 80px; /* İkonu dikeyde ortalamak için */
    border-radius: 50%;
    background-color: #ffc107;
    color: #212529;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
}

.step-box:hover .step-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
}

.step-box .step-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #343a40;
}

.step-box .step-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Adımlar arasına ok/çizgi ekleme (sadece büyük ekranlarda) */
@media (min-width: 768px) {
    .step-box:not(:last-child)::after {
        content: '\f138'; /* Bootstrap Icons'dan ok ikonu */
        font-family: 'bootstrap-icons';
        position: absolute;
        top: 40px;
        right: -25px; /* Kolonlar arası boşluğa göre ayarlanır */
        font-size: 2rem;
        color: #dee2e6;
        transform: translateY(-50%);
    }
}