/* ==============================
   HEADER — Premium Styling
   ============================== */

.site-header, header {
    background: #0D1B2A; /* koyu lacivert */
    padding: 12px 24px;
}

.site-header .site-branding img,
header .site-branding img {
    max-height: 42px;
    display: block;
}

.site-header nav ul li a,
header nav ul li a {
    color: #E9EEF3 !important; /* açık gri */
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.site-header nav ul li a:hover,
header nav ul li a:hover {
    background: rgba(255,255,255,0.08);
}

/* === Randevu Al butonu === */
.menu-item a[href="/randevu-al/"] {
    background: #C6A667 !important; /* premium altın */
    color: #0D1B2A !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 18px;
}

.menu-item a[href="/randevu-al/"]:hover {
    opacity: 0.9;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .site-header, header {
        padding: 10px 16px;
    }
}
/* ==============================
   HEADER REFINEMENT
   ============================== */

/* Tam genişlik */
.site-header, header {
    width:100% !important;
    max-width:100% !important;
    margin:0 auto!important;
    border-radius:0!important;
    background:#0D1B2A !important;
}

/* Menü linkleri nötr premium renk */
header nav ul li a {
    color:#E9EEF3 !important;
    font-weight:500;
    letter-spacing:0.2px;
    transition:.2s ease;
}

header nav ul li a:hover {
    color:#FFFFFF !important;
    background:rgba(255,255,255,0.1);
    border-radius:6px;
}

/* Title / Site Name */
header .site-title a, .site-branding a {
    color:#FFFFFF !important;
    font-weight:600;
    letter-spacing:0.3px;
    text-transform:none;
}

/* Mobil menü */
@media(max-width:768px){
    header nav ul li a {
        display:block;
        padding:12px 16px;
    }
}
/* HEADER SPACING & PREMIUM FEEL IMPROVE */
.site-header, header {
    padding: 18px 30px !important;
}

/* Site title biraz daha premium görünsün */
header .site-title a, 
.site-branding a {
    font-size: 22px !important;
    font-weight: 600;
    color: #FFFFFF !important;
}

/* Menü itemlar biraz daha rahat dursun */
header nav ul li a {
    padding: 10px 18px !important;
    font-size: 15px;
}
/* ==============================
   GLOBAL TITLE BAR (H1)
   ============================== */
h1 {
    background:#E9EEF3;
    padding:28px 30px;
    margin:0 0 32px 0;
    font-size:26px;
    font-weight:600;
    color:#0D1B2A;
    border-bottom:1px solid rgba(0,0,0,0.08);
    text-align:center;              /* ORTALA */
}
/* ==============================
   UM LOGIN — PREMIUM (GENERIC)
   ============================== */

body .um-login {
    max-width: 420px;
    margin: 40px auto;
    background: #FFFFFF;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

body .um-login input[type="text"],
body .um-login input[type="password"],
body .um-login input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #CCD3DA;
    background:#F9FAFB;
}

body .um-login input:focus {
    border-color:#0D1B2A;
    box-shadow:0 0 0 2px rgba(13,27,42,0.15);
    outline:none;
}

body .um-login .um-button {
    width:100%;
    background:#0D1B2A !important;
    color:#FFFFFF !important;
    font-weight:600;
    padding:11px;
    border-radius:6px;
}

body .um-login .um-link {
    color:#6B7280 !important;
    font-size:14px;
}

body .um-login .um-link:hover {
    color:#0D1B2A !important;
}
.entry-content .menu,
.widget_nav_menu,
.menu-footer,
.footer-menu,
.site-footer .menu,
.entry-content .widget_nav_menu {
    display:none !important;
}
/* ===========================================
   PREMIUM — DOCTOR CARD GRID
   =========================================== */

.pg-doc-grid {
    display:grid;
    gap:24px;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    margin-top:24px;
}

.pg-doc-card {
    background:#FFFFFF;
    border:1px solid rgba(0,0,0,0.05);
    border-radius:14px;
    padding:26px;
    text-align:center;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow:0 4px 10px rgba(0,0,0,0.04);
}

.pg-doc-card:hover {
    transform:translateY(-4px);
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    border-color:#C6A667; /* premium şampanya altın */
}

.pg-doc-photo {
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    margin:auto;
    display:block;
    border:3px solid #F2F2F2;
}

.pg-doc-name {
    font-size:18px;
    font-weight:600;
    margin-top:14px;
    color:#0D1B2A;
}

.pg-doc-spec {
    font-size:14px;
    color:#666;
    margin-top:6px;
}
.pg-doc-btn {
    display:inline-block;
    margin-top:14px;
    padding:10px 18px;
    background:#0D1B2A;
    color:white;
    font-weight:600;
    border-radius:6px;
    text-decoration:none;
    transition:.2s ease;
}
.pg-doc-btn:hover {
    background:#C6A667;
    color:#0D1B2A;
}
/* Kart içindeki butonun alt çizgisini tamamen kaldır */
.pg-doc-btn {
    text-decoration:none !important;
}

/* Doktor ismi ve buton gibi linklerin tamamından underline'ı kaldır */
.pg-doc-card a {
    text-decoration:none !important;
}
/* ===========================================
   RANDEVU TARİH SAYFASI — ÜST BÖLÜM
   =========================================== */

.pg-step-title {
    font-size:22px;
    font-weight:600;
    text-align:center;
    margin-bottom:20px;
    color:#0D1B2A;
}

.pg-doc-info {
    text-align:center;
    font-size:15px;
    margin-bottom:24px;
    color:#444;
}
/* ==============================
   RANDEVU TARİH — FORM
   ============================== */

.pg-date-form {
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:24px;
}

.pg-date-form input[type="date"] {
    padding:10px 14px;
    border:1px solid #CCD3DA;
    border-radius:6px;
    background:#F9FAFB;
    font-size:15px;
}

.pg-btn-dark {
    background:#0D1B2A;
    color:white;
    border:none;
    padding:10px 16px;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
    transition:.2s ease;
}

.pg-btn-dark:hover {
    background:#C6A667;
    color:#0D1B2A;
}
/* ===========================================
   SAAT SEÇİMİ — CHIP TASARIMI
   =========================================== */

.pg-slot-chip {
    display:inline-block;
    padding:10px 16px;
    border:1px solid #0D1B2A;
    border-radius:6px;
    margin:6px;
    font-weight:500;
    color:#0D1B2A;
    text-decoration:none;
    transition:.2s ease;
}

.pg-slot-chip:hover {
    background:#C6A667;
    border-color:#C6A667;
    color:#0D1B2A;
}

.pg-slot-chip.disabled {
    opacity:0.4;
    border-color:#999;
    cursor:not-allowed;
}
.pg-slot-chip,
.pg-slot-chip:hover,
.pg-slot-chip:visited {
    text-decoration:none !important;
}
.pg-slot-chip {
    display:inline-block;
}

.pg-slot-chip-wrapper {
    text-align:center;
    margin-top:16px;
}
.pg-btn-dark {
    background:#0D1B2A !important;
    color:white !important;
    border:none !important;
}
.pg-btn-dark:hover {
    background:#C6A667 !important;
    color:#0D1B2A !important;
}
/* Bütün içerik bloğunu ortala ve nefes ver */
.pg-randevu-wrapper {
    max-width:800px;
    margin:0 auto;
    padding:40px 20px;
}

/* Saat seçim bölümüne arka plan bloğu */
.pg-slot-chip-wrapper {
    background:#F7F9FB;
    padding:24px;
    border-radius:10px;
    display:inline-block;
    margin-top:10px;
}
/* Saat seçim alanı: mobil-first app hissi (flex wrap) */
.pg-slot-chip-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  background: #F7F9FB;
  padding: 24px;
  border-radius: 12px;
}

/* Chip boyutu ve hizalama */
.pg-slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 40px;
  text-align: center;
  text-decoration: none !important;
}
@media (max-width: 480px) {
  .pg-slot-chip { min-width: 44%; }  /* 2 sütun hissi */
}
.pg-datepick {
    padding:10px 14px;
    border:1px solid #CCD3DA;
    border-radius:6px;
    background:#F9FAFB;
    font-size:15px;
    cursor:pointer;
}
.flatpickr-calendar {
    border-radius:10px;
    box-shadow:0 8px 24px rgba(0,0,0,0.12);
    font-family:inherit;
}
.flatpickr-day.selected {
    background:#C6A667 !important;
    border-color:#C6A667 !important;
    color:#0D1B2A !important;
}
.flatpickr-day:hover {
    background:#EDE3C9 !important;
}
/* ==============================
   MODAL — BLUR & FADE
   ============================== */

.pg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.28);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: pgFade .18s ease;
}

@keyframes pgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pg-modal {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px 22px;
  width: min(480px, 92vw);
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.06);
  transform-origin: center;
}

.pg-modal-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: #0D1B2A;
  text-align: center;
}

.pg-modal p {
  margin: 6px 0;
  color: #333;
  text-align: center;
}

.pg-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pg-btn-light {
  background: #E9EEF3;
  color: #0D1B2A;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: .2s ease;
}

.pg-btn-light:hover {
  background: #E2E8EF;
}
/* Modal içindeki tüm linklerden alt çizgiyi kesin kaldır */
.pg-modal a,
.pg-modal a:hover,
.pg-modal a:visited {
    text-decoration: none !important;
}

/* Genel önlem: .pg-slot-chip gibi chip butonları da güvenceye almak için */
.pg-slot-chip,
.pg-slot-chip:hover,
.pg-slot-chip:visited {
    text-decoration: none !important;
}
/* Alert box (form hata) */
.pg-alert {
    max-width: 640px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.pg-alert-error {
    background: #FFF6F6;
    border: 1px solid rgba(220,38,38,0.12);
    color: #7B1F1F;
}

/* Doğum Tarihi - 3 dropdown (Flex sürüm) */
.pg-birth-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Üç select yan yana, eşit genişlik */
.pg-birth-grid select {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CCD3DA;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  appearance: none;          /* iOS/Android için daha temiz görünüm */
  -webkit-appearance: none;  /* Safari iOS */
}

/* Mobil: 2 sütun + Yıl altta tam genişlik */
@media (max-width: 480px) {

  /* İlk olarak tüm select'leri 100% yap */
  .pg-birth-grid select {
    flex: 1 1 100%;
  }

  /* Sıralamayı mobilde yeniden tanımlıyoruz */
  #pg-birth-year   { order: 1; }  /* EN ÜSTE: Yıl */
  #pg-birth-month  { order: 2; }  /* Alt satır sol: Ay */
  #pg-birth-day    { order: 3; }  /* Alt satır sağ: Gün */

  /* Ay + Gün yan yana gelsin */
  #pg-birth-month,
  #pg-birth-day {
    flex: 1 1 calc(50% - 5px);
  }
}
/* ——————————————————————————————
   RANDEVU FORM — PREMIUM WARM THEME
   —————————————————————————————— */

body {
  background: #F7F5F2; /* sıcak nötr zemin */
}

/* Form dış bilgi bloğu */
.pg-form-info {
  background: #FFF;
  padding: 14px 18px;
  border: 1px solid #E8E3DC;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 15px;
}

/* Form kart */
.pg-form {
  background: #FFFFFF;
  padding: 26px 22px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  max-width: 420px;
  margin: 0 auto 40px auto;
  display: grid;
  gap: 16px;
}

/* Input alanları */
.pg-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.pg-field input,
.pg-field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #D8D2CA;
  border-radius: 10px;
  background: #FAF9F7;
  font-size: 15px;
  transition: border 0.2s ease;
}

.pg-field input:focus,
.pg-field select:focus {
  border-color: #d4af37;
  outline: none;
}

/* Gold Primary Button */
.pg-btn-dark {
  background: #d4af37;
  color: #000;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform .1s ease;
}

.pg-btn-dark:hover {
  background: #b79328;
  transform: translateY(-1px);
}

.pg-btn-dark:active {
  transform: translateY(0);
}

/* Alert Cards */
.pg-alert {
  max-width: 420px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.pg-alert-error {
  background: #FFF5F5;
  border: 1px solid #E5B7B7;
  color: #7C2424;
}

.pg-alert-success {
  background: #F4FFF6;
  border: 1px solid #B6E3C1;
  color: #1D6B37;
}

/* List in error alert */
.pg-alert ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.pg-alert ul li {
  margin-bottom: 5px;
}

/* Birth select container inherits existing CSS — only spacing tweak */
.pg-birth-grid {
  margin-top: -4px;
}

.pg-form-info {
  background: #FFFFFF;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid #E8E3DC;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto 22px;
}
/* ============================
   MOBILE MENU - PREMIUM OVERLAY
=============================== */

#pg-menu-toggle {
    background: transparent !important;
    border: none;
    width: 36px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 9999;
}

#pg-menu-toggle span {
    display: block;
    height: 3px;
    width: 26px;
    background: white;
    border-radius: 2px;
    transition: .2s;
}


/* Overlay kapalıyken gizli */
.pg-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    transition: .25s ease;
}

/* Açıkken */
.pg-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menü kutusu */
.pg-mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.pg-mobile-nav a {
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    padding: 14px 22px;
    border-radius: 10px;
    display: block;
    min-width: 200px;
}

.pg-mobile-nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* Masaüstünde hiç görünmesin */
@media (min-width:769px){
    .pg-menu-btn, .pg-mobile-overlay { display:none !important; }
}
.pg-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pg-noscroll {
    overflow: hidden;
    height: 100vh;
}
@media (max-width:768px){
    header .site-title a,
    .site-branding a {
        font-size: 17px !important;
        line-height: 1.2 !important;
        display: block;
        max-width: 200px;
        white-space: normal;   /* tek satırda kalmaya zorlama */
        word-break: break-word; /* taşarsa kır */
    }
}
@media(max-width:768px){

    /* Sadece header içindeki normal menüyü gizle */
    header nav,
    .site-header nav,
    .site-header .menu,
    .site-header .site-navigation,
    .site-navigation-dropdown {
        display:none !important;
    }

    /* Overlay menü HER ZAMAN görünebilsin */
    .pg-mobile-overlay .menu {
        display:flex !important;
        flex-direction:column;
    }
}
/* =========================
   MOBILE — LOGO OPTIMIZE
========================= */
@media (max-width:768px){
    header .site-title a,
    .site-branding a {
        font-size: 17px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    
}
/* ============================
   RANDEVULAR — KART TASARIMI
============================ */

.pg-app-list {
    display: grid;
    gap: 16px;
    padding: 0 18px; /* mobilde nefes boşluğu */
}

.pg-app-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.5;
}

/* Başlık alanlarını daha okunur yap */
.pg-app-card strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0D1B2A;
}

/* İptal / Durum mesajları */
.pg-app-card .status-badge {
    margin-top: 10px;
    font-weight: 600;
}

.pg-app-card .status-badge.cancelled {
    color: #c00;
}

.pg-app-card .status-badge.done {
    color: green;
}

/* İptal butonu — kart ile uyumlu */
.pg-app-card a[href*="pt_iptal"] {
    display:inline-block;
    margin-top:10px;
    padding:8px 14px;
    background:#c00;
    color:#fff !important;
    border-radius:6px;
    font-size:14px;
    text-decoration:none;
}

.pg-app-card a[href*="pt_iptal"]:hover {
    background:#a80000;
}

/* Masaüstünde kart boyutunu biraz genişlet */
@media(min-width:768px){
    .pg-app-list {
        max-width: 680px;
        margin: 0 auto;
    }
}
/* ==========================
   RANDEVU TABS — PREMIUM
========================== */

.pg-tabs {
    display:flex;
    gap:10px;
    justify-content:center;  
    margin:0 18px 18px;
}




.pg-tab.active {
    background:#C6A667; /* altın */
    color:#0D1B2A;
    font-weight:600;
}

.pg-tab:hover:not(.active) {
    background:#D5D5D5;
}
.pg-tab {
    padding:10px 18px;
    border-radius:8px;
    background:#ECECEC;
    color:#0D1B2A;
    font-weight:500;
    text-decoration:none !important;  
    display:inline-block;
    transition:.2s;
}
.pg-cancel-btn {
    display:inline-block;
    margin-top:10px;
    padding:8px 14px;
    background:#b02a2a;
    color:#fff !important;
    border-radius:6px;
    font-size:14px;
    text-decoration:none !important;
}

.pg-cancel-btn:hover {
    background:#8a1f1f;
}
.pg-app-card {
    background:#fff;
    border:1px solid rgba(0,0,0,0.08);
    border-radius:14px;
    padding:18px 20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    transition:.25s ease;
}

.pg-app-card:hover {
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
}
/* ============================
   RANDEVU KARTI — HEAD BLOCK
============================ */

.pg-app-head {
    margin-bottom:14px;
}

.pg-app-doc {
    font-size:16px;
    font-weight:600;
    color:#0D1B2A;
    margin-bottom:4px;
}

.pg-app-time {
    font-size:14px;
    color:#555;
}
.pg-app-body {
    margin-bottom: 10px;
    display: grid;
    gap: 4px;
}

.pg-app-body div strong {
    display: inline-block;
    width: 110px;
    color: #444;
}
/* Doktor slot formu - 2 kolonlu satırlar */
.pg-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pg-form-row .pg-field {
    flex: 1 1 0;
    margin: 0;
}

/* Küçük ekranlarda yine dikey hizala */
@media (max-width: 480px) {
    .pg-form-row {
        flex-direction: column;
    }
}

/* Slot formu altındaki küçük bilgi yazısı */
.pg-slot-help {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}
/* Doktor slot formu - 2 kolonlu satırlar */
.pg-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pg-form-row .pg-field {
    flex: 1 1 0;
    margin: 0;
}

/* Küçük ekranlarda dikey hizala */
@media (max-width: 480px) {
    .pg-form-row {
        flex-direction: column;
    }
}

/* Slot formu altındaki küçük bilgilendirme */
.pg-slot-help {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* Açıklama bloğu artık formun içinde, daha kompakt olsun */
.pg-form-info-inline {
    max-width: 100%;
    margin: 0 0 6px;
    box-shadow: none;
    background: #F8F5EF;
}

/* Başlık satırı */
.pg-form-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0D1B2A;
}

/* Randevu wrapper biraz daha yukarı gelsin, boşluk azalsın */
.pg-randevu-wrapper {
    max-width: 640px;
    margin: 24px auto 40px;
}
/*doktor profil*/
/* Doktor profil kartı - gridten bağımsız kullanım */
.pg-doc-card.pg-doc-card--profile {
    max-width: 420px;
    margin: 0 auto 18px;
    cursor: default;
}

/* Fotoğraf yoksa harf avatarı */
.pg-doc-photo.pg-doc-photo-empty {
    display:flex;
    align-items:center;
    justify-content:center;
    background:#E5E7EB;
    color:#4B5563;
    font-size:32px;
    font-weight:600;
}

/* Profil formu içi açıklama bloğu */
.pg-form-info-inline {
    max-width: 100%;
    margin: 0 0 10px;
    box-shadow: none;
    background: #F8F5EF;
}

.pg-form-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0D1B2A;
}

/* Profil formu genel hizalama */
.pg-doctor-profile-form {
    margin-top: 4px;
}

/* Randevu wrapper bu sayfada çok dar kalmasın */
.pg-randevu-wrapper {
    max-width: 720px;
    margin: 24px auto 40px;
}
