/* --- Google Fonts & Genel Sıfırlama --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header / Üst Menü --- */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.logo b {
    color: #2563eb;
}

.btn-add-company {
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-add-company:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* --- Arama & Filtreleme Kutusu --- */
.filter-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: center;
}

.filter-grid select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #334155;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}

.filter-grid select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
}

.btn-search {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-search:hover {
    background-color: #1e293b;
}

/* --- Başlık ve Sayaclar --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title span {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* --- Firma Kartları Izgarası (Grid) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.company-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-image-wrapper {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    align-self: flex-start;
    background-color: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.company-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.company-card h3 a:hover {
    color: #2563eb;
}

.location, .phone {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-detail {
    margin-top: auto;
    padding-top: 1rem;
    display: block;
    text-align: center;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* --- Boş Liste Uyarısı --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    grid-column: 1 / -1;
}

/* Arama ve Filtreleme Kutusu */
.search-filter-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #fff;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-search:hover {
    background-color: #1d4ed8;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
}
/* Genel Arama Alanı Tasarımı */
.global-search-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.global-search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.search-input-group input:focus,
.search-input-group select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.global-search-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.global-search-btn:hover {
    background-color: #1d4ed8;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .global-search-form {
        grid-template-columns: 1fr;
    }
    .global-search-btn {
        width: 100%;
    }
}

/* Sade & Şık Arama Stilleri */
        .clean-search-container { max-width: 600px; margin: 0 auto; }
        .clean-search-box { display: flex; align-items: center; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 30px; padding: 6px 6px 6px 20px; transition: all 0.2s ease; }
        .clean-search-box:focus-within { background: #ffffff; border-color: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08); }
        .clean-search-box svg { stroke: #64748b; margin-right: 12px; flex-shrink: 0; }
        .clean-search-box input { flex: 1; border: none; outline: none; font-size: 15px; color: #1e293b; background: transparent; padding: 8px 0; }
        .clean-search-box input::placeholder { color: #94a3b8; }
        .clean-search-box button { background-color: #0f172a; color: white; border: none; padding: 10px 22px; border-radius: 24px; font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color 0.2s; }
        .clean-search-box button:hover { background-color: #2563eb; }

        @media (max-width: 640px) {
            .clean-search-box { padding: 4px 4px 4px 14px; border-radius: 16px; }
            .clean-search-box button { padding: 10px 16px; border-radius: 14px; }
        }
		
		.pagination { 
    display: flex; 
    gap: 6px; 
    justify-content: center; 
    align-items: center; 
    margin: 40px 0; 
    flex-wrap: wrap; 
}
.pagination-dots { 
    padding: 8px 10px; 
    color: #64748b; 
    font-weight: bold; 
}