/* Clinic Schedule – Public shortcode styles */
.hcs-schedule-wrap {
    --hcs-primary: #1a6eb5;
    --hcs-cols: 3;
    font-family: 'Nunito', sans-serif;
    container-type: inline-size;
}

/* ── Card Grid ──────────────────────────────────────────── */
.hcs-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--hcs-cols), 1fr);
    gap: 24px;
    padding: 8px 0;
}
/* FIX: was repeat(1fr) — missing the count */
@container (max-width: 860px) { .hcs-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@container (max-width: 520px) { .hcs-cards-grid { grid-template-columns: 1fr; } }

/* ── Card ───────────────────────────────────────────────── */
.hcs-card {
    --card-color: var(--hcs-primary);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
    border: 2px solid transparent;
    outline: none;
}
.hcs-card:hover,
.hcs-card:focus-visible {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    border-color: var(--card-color);
}
.hcs-card:focus-visible { outline: 3px solid var(--card-color); outline-offset: 3px; }
.hcs-card::before { content: ''; display: block; height: 6px; background: var(--card-color); }

.hcs-card-inner {
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.hcs-card-icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: color-mix(in srgb, var(--card-color) 12%, transparent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hcs-card-icon img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; }
.hcs-card-icon .dashicons { font-size: 38px; width: 38px; height: 38px; color: var(--card-color); }
.hcs-card-title { font-size: 1.1rem; font-weight: 800; color: #1e293b; line-height: 1.2; }
.hcs-card-desc  { font-size: .85rem; color: #64748b; line-height: 1.5; }
.hcs-card-cta {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .82rem; font-weight: 700; color: var(--card-color);
    margin-top: 4px; letter-spacing: .02em; text-transform: uppercase;
}
.hcs-card-cta .dashicons { font-size: 16px; width: 16px; height: 16px; transition: transform .18s; }
.hcs-card:hover .hcs-card-cta .dashicons { transform: translateX(4px); }

/* ── Modal ──────────────────────────────────────────────── */
.hcs-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: hcs-fade-in .2s ease;
}
.hcs-modal-overlay[hidden] { display: none; }
@keyframes hcs-fade-in { from { opacity: 0; } to { opacity: 1; } }

.hcs-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%; max-width: 620px; max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    animation: hcs-slide-up .25s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    display: flex; flex-direction: column;
}
@keyframes hcs-slide-up { from { opacity:0; transform: translateY(40px) scale(.96); } to { opacity:1; transform:none; } }

.hcs-modal-close {
    position: absolute; top: 16px; right: 18px;
    background: #f1f5f9; border: none; border-radius: 50%;
    width: 34px; height: 34px; font-size: 1.3rem; cursor: pointer;
    color: #475569; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.hcs-modal-close:hover { background: #e2e8f0; }
.hcs-modal-header  { padding: 32px 32px 18px; border-bottom: 1px solid #f1f5f9; }
.hcs-modal-title   { font-size: 1.4rem; font-weight: 800; color: #1e293b; margin: 0 0 4px; }
.hcs-modal-subtitle { font-size: .88rem; color: #64748b; margin: 0; }
.hcs-modal-body    { padding: 24px 32px 24px; flex: 1; }
.hcs-modal-footer  { text-align: center; padding: 12px 32px; border-top: 1px solid #f1f5f9; font-size: .75rem; color: #94a3b8; }
.hcs-modal-footer a { color: var(--hcs-primary); text-decoration: none; font-weight: 600; }
.hcs-modal-footer a:hover { text-decoration: underline; }

/* ── Loader ─────────────────────────────────────────────── */
.hcs-loader { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; color: #94a3b8; }
.hcs-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0; border-top-color: var(--hcs-primary);
    border-radius: 50%; animation: hcs-spin .7s linear infinite;
}
@keyframes hcs-spin { to { transform: rotate(360deg); } }

/* ── Schedule list ──────────────────────────────────────── */
.hcs-no-dates   { text-align: center; color: #94a3b8; padding: 32px 0; }
.hcs-date-group { margin-bottom: 20px; }
.hcs-date-label {
    font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--hcs-primary); margin-bottom: 8px;
}
.hcs-session-card {
    background: #f8fafc; border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px; border-left: 4px solid var(--hcs-primary);
    transition: background .15s;
}
.hcs-session-card:hover { background: #f0f7ff; }
.hcs-session-photo  { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #e2e8f0; }
.hcs-session-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: color-mix(in srgb, var(--hcs-primary) 15%, transparent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hcs-session-avatar .dashicons { font-size: 24px; width: 24px; height: 24px; color: var(--hcs-primary); }
.hcs-session-info   { flex: 1; min-width: 0; }
.hcs-session-name   { font-weight: 700; font-size: .95rem; color: #1e293b; margin-bottom: 2px; }
.hcs-session-desig  { font-size: .78rem; color: #64748b; margin-bottom: 4px; }
.hcs-session-time   {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .82rem; font-weight: 600; color: var(--hcs-primary);
    background: color-mix(in srgb, var(--hcs-primary) 10%, transparent);
    padding: 3px 10px; border-radius: 20px;
}
.hcs-session-time-label { font-size: .75rem; color: #94a3b8; margin-left: 4px; }

.hcs-modal::-webkit-scrollbar       { width: 6px; }
.hcs-modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
