/* GENEL SIFIRLAMA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
html, body {
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Yatay taşmayı engelle */
}
a {
    text-decoration: none;
    color: inherit;
}

/* 1) ÜST BAR (Telefon, E-posta, Dil) */
.top-bar {
    background-color: #00274d;
    color: #fff;
    font-size: 0.9rem;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar .left-info {
    display: flex;
    gap: 15px;
}
.top-bar .right-info {
    display: flex;
    gap: 10px;
}
.top-bar .right-info a {
    color: #fff;
    font-weight: bold;
}

/* 2) HEADER (Logo, Menü, Oturum) */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    padding: 10px 20px;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo Alanı */
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-area img {
    width: 35px;
    height: auto;
}
.logo-area span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00274d;
}

/* Ana Menü (Masaüstü) */
.main-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-menu ul li {
    margin-right: 20px;
}
.main-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1em;
}

/* Oturum Butonları ve Kullanıcı Bilgisi (Masaüstü) */
.auth-buttons {
    display: flex;
    gap: 10px;
}
.auth-buttons a,
.auth-buttons button {
    padding: 5px 10px;
    font-size: 0.9rem;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.auth-buttons button {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    cursor: pointer;
}
.auth-buttons a:hover,
.auth-buttons button:hover {
    background-color: #0056b3;
}
.user-info {
    font-size: 1em;
    color: #333;
}

/* Hamburger Menü Butonu (Mobil) */
.hamburger-menu {
    display: none;
}
.hamburger-menu button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Mobil Menü */
.mobile-menu {
    display: none;
    position: absolute;
    top: 60px; /* Header yüksekliğine göre ayarlayın */
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    border-top: 1px solid #ccc;
}
.mobile-menu.active {
    display: block;
}
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}
.mobile-menu ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.mobile-menu ul li a,
.mobile-menu ul li button {
    text-decoration: none;
    color: #333;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    font-size: 1em;
}

/* MODAL STİLLERİ (Hem Giriş Hem de Kayıt Modülü İçin) */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
}
.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
}
.modal .auth-options button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}
.modal .auth-options button:hover {
    background-color: #0056b3;
}

/* 3) HERO SECTION */
.hero-section {
    background: url('resimler/logo.png') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.search-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.search-form select,
.search-form button {
    min-width: 120px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.search-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* 4) ÖNE ÇIKAN DOKTORLAR */
.featured-doctors-section {
    padding: 40px 10px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.featured-doctors-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00274d;
}
.featured-doctors-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}
.doctors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.doctor-card {
    background-color: #fff;
    border-radius: 6px;
    width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: left;
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
}
.doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.doctor-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.doctor-info {
    padding: 15px;
}
.doctor-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.doctor-specialty {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}
.doctor-hospital {
    font-size: 0.9rem;
    color: #999;
}
.all-doctors-btn {
    margin-top: 20px;
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}

/* 5) KLINIKLER */
.clinic-section {
    padding: 40px 10px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.clinic-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00274d;
}
.clinic-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}
.clinic-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.clinic-card {
    background-color: #fff;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}
.clinic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.clinic-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}
.clinic-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}
.clinic-card .doctor-count {
    font-size: 0.9rem;
    color: #777;
}

/* 6) NASIL ÇALIŞIR */
.how-it-works-section {
    padding: 40px 10px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.how-it-works-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00274d;
}
.how-it-works-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}
.steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.step-box {
    background-color: #fff;
    width: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: 0.2s;
}
.step-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.step-box img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}
.step-box h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}
.step-box p {
    font-size: 0.9rem;
    color: #777;
}

/* 7) FOOTER */
footer {
    background-color: #00274d;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

/* MODAL STİLLERİ (Login ve Register Modülleri İçin) */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
}
.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
}
.modal .auth-options button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}
.modal .auth-options button:hover {
    background-color: #0056b3;
}

/* RESPONSIVE (MOBİL) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    /* Masaüstü ana menüyü gizle */
    .main-menu {
        display: none !important;
    }
    /* Hamburger menü butonu görünsün */
    .hamburger-menu {
        display: block !important;
    }
    /* Oturum butonları / kullanıcı bilgisi header’da yan tarafta kalsın */
    .auth-buttons,
    .user-info {
        display: flex !important;
    }
}
@media (max-width: 576px) {
  /* Hero içerik genişliğini artır */
  .hero-content {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
  }
  
  /* Arama formu öğeleri tam genişlik */
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form select,
  .search-form button {
    width: 100%;
  }
  
  /* Doktor, Klinik ve Nasıl Çalışır kartlarının mobilde tam genişlik kullanması */
  .doctor-card,
  .clinic-card,
  .step-box {
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto;
  }
}
