/*
 * WHS Congress Modals — kayıt ve bildiri modalları.
 * Tema stillerini etkilememesi için tüm seçiciler .whs- ön ekiyle sınırlı.
 */

.whs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.62);
    overflow-y: auto;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.whs-modal-overlay[hidden] { display: none; }

.whs-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    font-family: inherit;
    animation: whsIn .22s ease;
}

@keyframes whsIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.whs-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
}

.whs-modal-close:hover { background: #f3f4f6; color: #111827; }

.whs-modal-head {
    padding: 22px 26px 0;
}

.whs-modal-head h2 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.whs-modal-head p {
    margin: 0;
    font-size: 13.5px;
    color: #6b7280;
}

.whs-modal-body { padding: 18px 26px 24px; }

.whs-note {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 14px;
}

.whs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.whs-field { margin-bottom: 14px; }
.whs-field.whs-full { grid-column: 1 / -1; }

.whs-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.whs-req { color: #dc2626; }

.whs-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    transition: border-color .15s, box-shadow .15s;
}

.whs-input:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.whs-input.whs-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

textarea.whs-input { min-height: 96px; resize: vertical; }

.whs-hint { font-size: 12px; color: #6b7280; margin: 6px 0 0; }

.whs-error {
    font-size: 12px;
    color: #dc2626;
    margin: 6px 0 0;
    display: none;
}

.whs-error.whs-show { display: block; }

/* ---- Aramalı seçim (ülke / etkinlik) ---- */
.whs-select { position: relative; }

.whs-select-toggle {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    padding: 10px 12px;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.whs-select-toggle:after {
    content: '';
    margin-left: auto;
    border: 5px solid transparent;
    border-top-color: #9ca3af;
    transform: translateY(2px);
}

.whs-select-toggle.whs-placeholder { color: #9ca3af; }

.whs-select.whs-open .whs-select-toggle {
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.whs-select-panel {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    display: none;
    overflow: hidden;
}

.whs-select.whs-open .whs-select-panel { display: block; }

.whs-select-search {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.whs-select-list {
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
}

.whs-select-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 7px;
    cursor: pointer;
}

.whs-select-list li:hover,
.whs-select-list li.whs-active { background: #0f4c81; color: #ffffff; }

.whs-select-list li.whs-empty {
    color: #9ca3af;
    cursor: default;
    justify-content: center;
}

.whs-select-list li.whs-empty:hover { background: transparent; color: #9ca3af; }

.whs-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* ---- Onay kutusu ---- */
.whs-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 16px;
}

.whs-check input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.whs-check span { font-size: 13px; color: #374151; line-height: 1.5; }

/* ---- Butonlar ---- */
.whs-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.whs-btn {
    padding: 11px 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
}

.whs-btn-primary { background: #0f4c81; color: #ffffff; }
.whs-btn-primary:hover { background: #0c3d68; }
.whs-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.whs-btn-ghost { background: #ffffff; color: #374151; border-color: #d1d5db; }
.whs-btn-ghost:hover { background: #f9fafb; }

/* ---- Uyarı / başarı ---- */
.whs-alert {
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.whs-alert.whs-show { display: block; }
.whs-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.whs-success { text-align: center; padding: 12px 0 4px; }

.whs-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 32px;
    line-height: 62px;
}

.whs-success h3 { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.whs-success p { margin: 0 0 18px; font-size: 14px; color: #6b7280; }

.whs-foot-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: #6b7280;
    text-align: center;
}

.whs-foot-note a { color: #0f4c81; font-weight: 600; }

@media (max-width: 560px) {
    .whs-grid { grid-template-columns: 1fr; }
    .whs-modal { border-radius: 12px; }
    .whs-modal-head { padding: 18px 18px 0; }
    .whs-modal-body { padding: 14px 18px 20px; }
}

/* Ücretsiz katılım bilgisi (kongreye kayıt modalı) */
.whs-free-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* Yazar listesi (bildiri sonrası yazar modalı) */
.whs-authors-title {
    margin: 20px 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.whs-authors-list {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    overflow: hidden;
}

.whs-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.whs-author-row:last-child { border-bottom: none; }
.whs-author-row .who { flex: 1; min-width: 0; }
.whs-author-row .who strong { display: block; color: #0f172a; }
.whs-author-row .who span { color: #6b7280; font-size: 12px; word-break: break-word; }

.whs-author-empty {
    padding: 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/*
 * Hero içindeki breadcrumb bağlantısı okunmuyordu: .page-hero koyu lacivert
 * gradient (rgb(39,43,84) → rgb(72,81,157)) üzerine link rengi rgb(55,61,119)
 * geliyordu; koyu üstüne koyu. Tema dosyasına dokunmadan burada düzeltiliyor.
 */
.page-hero .breadcrumb a,
.page-hero .breadcrumb a:visited {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover,
.page-hero .breadcrumb a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* ---- Adım göstergesi ---- */
.whs-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 26px 0;
    flex-wrap: wrap;
}

.whs-steps[hidden] { display: none; }

.whs-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.whs-step + .whs-step::before {
    content: '';
    width: 18px;
    height: 1px;
    background: #e5e7eb;
    margin-right: 6px;
}

.whs-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whs-step.active .whs-step-num { background: #0f4c81; color: #fff; }
.whs-step.active .whs-step-lbl { color: #0f172a; font-weight: 600; }
.whs-step.done .whs-step-num { background: #dcfce7; color: #15803d; }
.whs-step.done .whs-step-lbl { color: #6b7280; }

@media (max-width: 560px) {
    .whs-steps { padding: 12px 18px 0; }
    .whs-step-lbl { display: none; }
    .whs-step + .whs-step::before { width: 12px; }
}

/* ---------------------------------------------------------------- yazarlar */

/* Bildiri formunun içindeki yazar satırları (sorumlu yazar + eş yazarlar) */
.whs-authors-section { margin: 6px 0 18px; }

.whs-authors-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.whs-author-block {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
}

.whs-author-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.whs-author-role { font-size: 13px; font-weight: 600; color: #0f172a; }

.whs-link-btn {
    border: none;
    background: transparent;
    color: #b91c1c;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.whs-link-btn:hover { text-decoration: underline; }
.whs-link-btn[hidden] { display: none; }

/* Grid içinde UA'nın [hidden] kuralı ezilebiliyor; açıkça yazılır. */
.whs-field[hidden] { display: none; }

/* Çoklu seçim (oturum türü) */
.whs-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 2px;
}

.whs-checks .whs-check { margin: 0; }

/* ----------------------------------------------------------------- hesabım */

.whs-acc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.whs-acc-head strong { display: block; color: #0f172a; font-size: 15px; }
.whs-acc-head span { color: #6b7280; font-size: 13px; }
.whs-acc-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.whs-acc-section { margin-top: 18px; }

.whs-acc-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.whs-acc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    margin-bottom: 8px;
}

.whs-acc-row strong { display: block; color: #0f172a; font-size: 13px; }
.whs-acc-row span { color: #6b7280; font-size: 12px; }

.whs-acc-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.whs-acc-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.whs-acc-card-head strong { color: #0f172a; font-size: 14px; }

.whs-acc-sub {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 12px 0 6px;
}

.whs-acc-files {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #6b7280;
    font-size: 12px;
}

.whs-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.whs-badge-pending { background: #f1f5f9; color: #475569; }
.whs-badge-ok { background: #dcfce7; color: #15803d; }
.whs-badge-warn { background: #fef3c7; color: #b45309; }
.whs-badge-danger { background: #fee2e2; color: #b91c1c; }
