/*
Theme Name: Hastane Rehberi Teması
Theme URI: https://hastane.tr
Author: Hastane.TR
Author URI: https://hastane.tr
Description: Hastane.TR için basit hastane/doktor rehberi teması. Anasayfada arama ve filtreleme içerir. "Hastane Rehberi" eklentisi ile birlikte kullanılmalıdır.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: hastane-tema
*/

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    background: #fff;
    line-height: 1.55;
}

a { color: #2563eb; }

img { max-width: 100%; display: block; }

.hr-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.hr-site-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.hr-site-header .hr-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hr-logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
}

.hr-logo span { color: #2563eb; }

.hr-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.hr-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.hr-nav a:hover { color: #2563eb; }

/* ---- Hero / Anasayfa Arama ---- */
.hr-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    padding: 56px 0;
    text-align: center;
}

.hr-hero h1 {
    font-size: 32px;
    margin: 0 0 8px;
    color: #111827;
}

.hr-hero p.hr-tagline {
    color: #4b5563;
    margin: 0 0 28px;
    font-size: 16px;
}

.hr-hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.hr-hero-search input[type="text"] {
    flex: 1 1 220px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.hr-hero-search select {
    padding: 12px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-width: 150px;
    font-size: 14px;
}

.hr-hero-search button {
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.hr-hero-search button:hover { background: #1d4ed8; }

.hr-hero-links {
    margin-top: 18px;
    font-size: 14px;
}

.hr-hero-links a {
    margin: 0 8px;
    text-decoration: none;
    font-weight: 500;
}

/* ---- Section headings ---- */
.hr-section {
    padding: 44px 0;
}

.hr-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.hr-section-footer {
    text-align: center;
    margin-top: 24px;
}

/* ---- Grid / Kartlar (eklenti ile aynı sınıflar) ---- */
.hr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.hr-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow .2s ease, transform .2s ease;
}

.hr-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.hr-card img { width: 100%; height: 150px; object-fit: cover; background: #f1f5f9; }

.hr-card__body { padding: 14px 16px; }

.hr-card__title { margin: 0 0 6px; font-size: 17px; color: #111827; }

.hr-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.hr-card__badge--hastane { background: #dbeafe; color: #1d4ed8; }
.hr-card__badge--doktor { background: #dcfce7; color: #15803d; }

.hr-card__meta { font-size: 13px; color: #6b7280; margin-bottom: 8px; }

.hr-card__branches span {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    margin: 2px 4px 0 0;
}

/* ---- Filtre formu (iç sayfalarda) ---- */
.hr-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 28px;
}

.hr-filter select,
.hr-filter input[type="text"] {
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    min-width: 160px;
}

.hr-filter button {
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.hr-filter button:hover { background: #1d4ed8; }

/* ---- Detay sayfası ---- */
.hr-detail__header { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.hr-detail__thumb { width: 280px; max-width: 100%; border-radius: 10px; }
.hr-detail__info p { margin: 4px 0; }
.hr-map { width: 100%; height: 360px; border-radius: 10px; margin: 20px 0; }

.hr-doctor-list, .hr-hospital-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.hr-doctor-item, .hr-hospital-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.hr-doctor-item img {
    width: 76px; height: 76px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 8px;
}

.hr-schedule-table { border-collapse: collapse; width: 100%; max-width: 420px; }
.hr-schedule-table td { padding: 6px 12px; border-bottom: 1px solid #eee; }

/* ---- Arama sonuçları ---- */
.hr-search-summary { color: #6b7280; margin-bottom: 20px; }

/* ---- Sayfalama ---- */
.hr-pagination { margin-top: 30px; display: flex; gap: 6px; flex-wrap: wrap; }
.hr-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
}
.hr-pagination .page-numbers.current { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ---- Footer ---- */
.hr-site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 28px 0;
    margin-top: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ---- Mobil uyum ---- */
@media (max-width: 640px) {
    .hr-hero h1 { font-size: 24px; }
    .hr-detail__thumb { width: 100%; }
}
