/* ==========================================================================
   Sağlık Rehberi — [saglik_rehberi] shortcode styles
   Brand color: #17449e
   ========================================================================== */
:root {
    --pd-blue:       #17449e;
    --pd-blue-dark:  #0f2f6e;
    --pd-blue-light: #eef2fb;
    --pd-border:     #dde3ef;
    --pd-text:       #1a2235;
    --pd-muted:      #6b7a99;
    --pd-bg:         #f4f6fb;
    --pd-white:      #ffffff;
    --pd-radius:     8px;
    --pd-shadow:     0 2px 8px rgba(23,68,158,0.08);
    --pd-shadow-hover: 0 6px 20px rgba(23,68,158,0.15);
}

/* Wrapper */
.sr-wrap {
    font-family: 'Segoe UI', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Search ---------------------------------------------------------- */
.sr-search-wrap {
    display: flex;
    align-items: center;
    background: var(--pd-white);
    border: 1.5px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 0 1rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--pd-shadow);
    transition: border-color 0.2s;
}
.sr-search-wrap:focus-within {
    border-color: var(--pd-blue);
}
.sr-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 0.5rem 0.85rem 0;
    font-size: 1rem;
    color: var(--pd-text);
    background: transparent;
}
.sr-input::placeholder {
    color: var(--pd-muted);
}
.sr-search-icon {
    background: none;
    border: none;
    cursor: default;
    color: var(--pd-blue);
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 0;
}
.sr-search-icon svg {
    width: 22px;
    height: 22px;
}

/* ---- Alphabet -------------------------------------------------------- */
.sr-alfabe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0.4rem;
}
.sr-alfabe a {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pd-text);
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.sr-alfabe a:hover:not(.sr-disabled) {
    color: var(--pd-blue);
    background: var(--pd-blue-light);
}
.sr-alfabe a.sr-sel {
    color: var(--pd-blue);
    border-bottom: 2.5px solid var(--pd-blue);
    border-radius: 0;
}
.sr-alfabe a.sr-disabled {
    color: #c5cde0;
    cursor: default;
    pointer-events: none;
}

/* Divider line below alphabet */
.sr-alpha-line {
    height: 1.5px;
    background: var(--pd-border);
    margin-bottom: 1.75rem;
}

/* ---- Info ------------------------------------------------------------ */
.sr-bilgi {
    font-size: 13px;
    color: var(--pd-muted);
    margin: 0 0 14px;
    min-height: 18px;
}

/* ---- Grid ------------------------------------------------------------ */
.sr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
@media (max-width: 900px) { .sr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .sr-grid { grid-template-columns: 1fr; } }

/* ---- Card ------------------------------------------------------------ */
.sr-kart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    color: var(--pd-text);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    min-height: 56px;
    box-shadow: var(--pd-shadow);
    transition: box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.sr-kart:hover {
    box-shadow: var(--pd-shadow-hover);
    border-color: var(--pd-blue);
    color: var(--pd-blue);
    text-decoration: none;
}
.sr-kart mark {
    background: #fef08a;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* ---- Empty state ----------------------------------------------------- */
.sr-bos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pd-muted);
    font-size: 1rem;
}
.sr-bos svg {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    display: block;
    stroke: #c5cde0;
}
.sr-bos p { margin: 0; }
