/* public/assets/css/style.css */
:root {
    --bg-color: #F7F5F3;
    --primary-color: #1DAA61;
    --accent-color: #E6FFDA;
    --text-dark: #1E2320;
    --text-muted: #5A605B;
    --card-bg: #FFFFFF;
    --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.02);
    --border-radius-pebble: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px; /* Eski haline göre üst ve alt boşlukları (padding) daralttık */
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.4rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #FFFFFF !important;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(29, 170, 97, 0.15);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
    padding: 80px 20px 40px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 36px;
}

.search-box {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    display: flex;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #EAE5E0;
    max-width: 540px;
    margin: 0 auto;
    align-items: center;
}

.search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    color: var(--text-dark);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 14px 28px;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* FİLTER BÖLÜMÜ */
.filters-container {
    max-width: 1100px;
    margin: 0 auto 32px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.filters-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: #FFFFFF;
    padding: 12px 24px;
    border-radius: 40px;
    border: 1px solid #EAE5E0;
}

.filter-select {
    padding: 10px 16px;
    border-radius: var(--border-radius-pebble);
    border: 1px solid #EAE5E0;
    background: #FAF9F8;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.filter-select:focus {
    border-color: var(--primary-color);
}

.clear-filters {
    color: #A81C1C;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    margin-left: 8px;
}

/* İLAN LİSTESİ VE KARTLAR */
.listings-container {
    max-width: 1100px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tutor-card {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 28px;
    border: 1px solid #EAE5E0;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.tutor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.tutor-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.badge-verified {
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-block;
    margin-left: 4px;
}

.tutor-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.card-body {
    flex-grow: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tag-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    background: #FAF9F8;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #EAE5E0;
}

.tag-style {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: #D2F4CD;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #FAF9F8;
    padding-top: 20px;
    margin-top: 10px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-details {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 32px;
    border: 1px solid #EAE5E0;
}

/* MOBİL VE UYUM */
@media (max-width: 768px) {
    /* 1. ÜST MENÜ (NAVBAR) DÜZELTMESİ */
    .navbar {
        padding: 16px 20px;
        gap: 10px;
    }
    
    .logo-text {
        font-size: 1.15rem; /* Logonun font boyutunu menü inceldiği için bir tık yumuşattık */
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    }
    
    .btn-primary {
        padding: 10px 16px;
        font-size: 0.85rem; /* Butonu daraltıp tek satıra tam sığdırıyoruz */
        white-space: nowrap; /* Metnin asla alt satıra kırılmamasını garanti eder */
    }

    /* Çok dar ekranlı telefonlar (Örn: iPhone SE) için yazıyı gizle, 🌿 ikonu ve buton kalsın */
    @media (max-width: 380px) {
        .logo-text { 
            display: none; 
        }
    }

    /* 2. HERO VE ARAMA KUTUSU DÜZELTMESİ */
    .hero-section {
        padding: 40px 20px 30px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.1rem;
    }

    .search-box {
        padding: 4px 4px 4px 20px; /* Mobilde arama çubuğunu daraltır */
    }

    /* 3. FİLTRELER BÖLÜMÜ (MODERN YATAY KAYDIRMA - APP HİSSİYATI) */
    .filters-container {
        padding: 0; /* Mobilde kenar boşluklarını sıfırlayıp tam ekrana yayıyoruz */
        margin-bottom: 24px;
    }
    
    .filters-form {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 16px 20px;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap; /* Kutuların alt alta düşmesini engeller */
        overflow-x: auto; /* Parmakla sağa sola kaydırılabilir yapar */
        -webkit-overflow-scrolling: touch; /* iPhone'larda yağ gibi kaymasını sağlar */
        gap: 12px;
    }

    /* Mobilde kaydırma çubuğunun (Scrollbar) çirkin görüntüsünü gizler */
    .filters-form::-webkit-scrollbar {
        display: none;
    }

    .custom-dropdown {
        flex-shrink: 0; /* Yan yana dizilen kutuların ezilmesini/daralmasını önler */
    }
    
    .dropdown-trigger {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}