/* ──────────────────────────────────────────────────────────────
   Yahweh Mission — Sponsorship Frontend CSS
   Theme: navy #1a2744 · teal #2ec4c0 · gold #f6e304
   Font:  DM Sans (matches theyahwehmission.com)
   ────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --tym-navy:  #1a2744;
    --tym-teal:  #2ec4c0;
    --tym-gold:  #f6e304;
    --tym-white: #ffffff;
    --tym-light: #f4f6fa;
    --tym-border:#d8dfe8;
    --tym-text:  #1a2744;
    --tym-muted: #6b7280;
    --tym-font:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Child Grid ──────────────────────────────────────────────── */
.tym-children-wrap {
    font-family: var(--tym-font);
}

.tym-children-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

/* ── Child Card ──────────────────────────────────────────────── */
.tym-child-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26,39,68,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.tym-child-card.tym-available {
    cursor: pointer;
}

.tym-child-card.tym-available:hover {
    box-shadow: 0 8px 32px rgba(26,39,68,0.18);
    transform: translateY(-4px);
}

.tym-child-card.tym-taken {
    opacity: 0.5;
    cursor: default;
}

/* Photo */
.tym-child-photo {
    position: relative;
    background: var(--tym-navy);
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.tym-child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tym-child-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    opacity: 0.6;
}

.tym-waiting-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tym-gold);
    color: var(--tym-navy);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--tym-font);
}

/* Card body */
.tym-child-info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tym-child-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--tym-navy);
    margin-bottom: 4px;
    font-family: var(--tym-font);
    line-height: 1.2;
}

.tym-child-detail {
    font-size: 13px;
    color: var(--tym-muted);
    margin-bottom: 10px;
    font-family: var(--tym-font);
}

.tym-child-special {
    font-size: 12px;
    color: #7c3aed;
    background: #ede9fe;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-family: var(--tym-font);
}

.tym-child-status {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: var(--tym-font);
}

.tym-child-status.available { color: var(--tym-teal); }
.tym-child-status.sponsored { color: var(--tym-muted); }

/* Gold sponsor button — matches site style */
.tym-sponsor-btn {
    display: block;
    width: 100%;
    background: var(--tym-gold);
    color: var(--tym-navy);
    border: none;
    border-radius: 100px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--tym-font);
    transition: background 0.15s, transform 0.1s;
    text-align: center;
    margin-top: auto;
}

.tym-sponsor-btn:hover {
    background: #e8d800;
    transform: scale(1.02);
}

.tym-no-children {
    color: var(--tym-muted);
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
    font-family: var(--tym-font);
    grid-column: 1 / -1;
}

/* ── Filters ─────────────────────────────────────────────────── */
.tym-filters {
    background: var(--tym-light);
    border: 1.5px solid var(--tym-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-family: var(--tym-font);
}

.tym-filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.tym-filter-group {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
}

.tym-filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--tym-navy);
    margin-bottom: 5px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: var(--tym-font);
}

.tym-filter-group select,
.tym-filter-group input {
    width: 100%;
    border: 1.5px solid var(--tym-border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: var(--tym-navy);
    font-family: var(--tym-font);
    height: 40px;
    box-sizing: border-box;
}

.tym-filter-group select:focus,
.tym-filter-group input:focus {
    outline: none;
    border-color: var(--tym-teal);
}

/* Buttons aligned to same height as inputs */
.tym-filter-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 0;
}

.tym-filter-btn {
    background: var(--tym-gold);
    color: var(--tym-navy);
    border: none;
    border-radius: 100px;
    padding: 0 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    height: 40px;
    font-family: var(--tym-font);
    transition: background 0.15s;
    white-space: nowrap;
}

.tym-filter-btn:hover {
    background: #e8d800;
}

.tym-filter-reset {
    background: #fff;
    color: var(--tym-navy);
    border: 1.5px solid var(--tym-border);
    border-radius: 100px;
    padding: 0 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    height: 40px;
    font-family: var(--tym-font);
    transition: border-color 0.15s;
    white-space: nowrap;
}

.tym-filter-reset:hover {
    border-color: var(--tym-navy);
}

.tym-load-more-btn {
    background: #fff;
    color: var(--tym-navy);
    border: 2px solid var(--tym-navy);
    border-radius: 100px;
    padding: 12px 36px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--tym-font);
    transition: all 0.15s;
}

.tym-load-more-btn:hover {
    background: var(--tym-navy);
    color: #fff;
}

/* ── Overlay & Panel ─────────────────────────────────────────── */
#tym-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,39,68,0.6);
    z-index: 99998;
    backdrop-filter: blur(3px);
}

#tym-overlay.active {
    display: block;
}

.tym-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(26,39,68,0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    font-family: var(--tym-font);
}

.tym-panel.active {
    right: 0;
}

.tym-panel-header {
    background: var(--tym-navy);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.tym-timer {
    background: rgba(246,227,4,0.15);
    color: var(--tym-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: auto;
    border: 1px solid rgba(246,227,4,0.3);
}

.tym-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
}

.tym-panel-close:hover { opacity: 1; }

.tym-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ── Checkout child row ──────────────────────────────────────── */
.tym-checkout-child-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--tym-light);
    border: 1.5px solid var(--tym-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.tym-checkout-child-photo { font-size: 38px; flex-shrink: 0; }

.tym-checkout-child-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--tym-navy);
}

.tym-checkout-child-loc {
    font-size: 12px;
    color: var(--tym-muted);
    margin-top: 2px;
}

/* ── Amount locked ───────────────────────────────────────────── */
.tym-locked-amount {
    background: var(--tym-navy);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: #aab4c8;
    font-size: 13px;
}

.tym-locked-amount strong {
    color: var(--tym-gold);
    font-size: 20px;
    font-weight: 700;
}

/* ── Inputs ──────────────────────────────────────────────────── */
.tym-input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--tym-navy);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tym-input {
    width: 100%;
    border: 1.5px solid var(--tym-border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 12px;
    background: #f8f9fb;
    color: var(--tym-text);
    transition: border-color 0.15s;
    box-sizing: border-box;
    font-family: var(--tym-font);
}

.tym-input:focus {
    outline: none;
    border-color: var(--tym-teal);
    background: #fff;
}

.tym-input.tym-autofilled {
    background: #f0fff4;
    border-color: var(--tym-teal);
}

.tym-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tym-google-hint {
    font-size: 11px;
    color: var(--tym-teal);
    font-weight: 600;
    margin-top: -8px;
    margin-bottom: 10px;
}

/* ── Stripe card ─────────────────────────────────────────────── */
.tym-stripe-card-element {
    border: 1.5px solid var(--tym-border);
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8f9fb;
    margin-bottom: 4px;
}

.tym-card-error {
    font-size: 12px;
    color: #ef4444;
    margin-bottom: 10px;
    min-height: 16px;
}

/* ── Submit button ───────────────────────────────────────────── */
.tym-checkout-submit {
    width: 100%;
    background: var(--tym-gold);
    color: var(--tym-navy);
    border: none;
    border-radius: 100px;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
    font-family: var(--tym-font);
    transition: background 0.15s;
}

.tym-checkout-submit:hover:not(:disabled) {
    background: #e8d800;
}

.tym-checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tym-checkout-note {
    text-align: center;
    font-size: 11px;
    color: var(--tym-muted);
    margin-top: 8px;
}

/* ── Donation Widget ─────────────────────────────────────────── */
.tym-donate-widget {
    max-width: 440px;
    background: #fff;
    border: 1.5px solid var(--tym-border);
    border-radius: 16px;
    padding: 24px;
    font-family: var(--tym-font);
}

.tym-freq-toggle {
    display: flex;
    background: var(--tym-light);
    border: 1.5px solid var(--tym-border);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tym-freq-opt {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: var(--tym-muted);
    transition: all 0.15s;
    border-radius: 100px;
}

.tym-freq-opt.active {
    background: var(--tym-navy);
    color: #fff;
}

.tym-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.tym-amt-btn {
    border: 2px solid var(--tym-border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--tym-navy);
    cursor: pointer;
    background: #fff;
    line-height: 1.2;
    transition: all 0.15s;
    font-family: var(--tym-font);
}

.tym-amt-btn:hover { border-color: var(--tym-teal); }

.tym-amt-btn.active {
    border-color: var(--tym-navy);
    background: var(--tym-navy);
    color: #fff;
}

.tym-amt-btn .tym-amt-impact {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--tym-muted);
    margin-top: 3px;
}

.tym-amt-btn.active .tym-amt-impact { color: #aab4c8; }

.tym-custom-wrap {
    display: flex;
    margin-bottom: 12px;
    border: 1.5px solid var(--tym-border);
    border-radius: 8px;
    overflow: hidden;
}

.tym-custom-prefix {
    background: var(--tym-light);
    border-right: 1.5px solid var(--tym-border);
    padding: 10px 14px;
    font-weight: 700;
    color: var(--tym-navy);
    font-size: 15px;
    font-family: var(--tym-font);
}

#tym-custom-amount {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 15px;
    background: #fff;
    color: var(--tym-navy);
    font-family: var(--tym-font);
}

#tym-custom-amount:focus { outline: none; }

.tym-impact-box {
    background: var(--tym-light);
    border-left: 3px solid var(--tym-teal);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--tym-text);
    margin-bottom: 14px;
    line-height: 1.6;
    font-family: var(--tym-font);
}

.tym-donate-submit-btn {
    width: 100%;
    background: var(--tym-gold);
    color: var(--tym-navy);
    border: none;
    border-radius: 100px;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--tym-font);
    transition: background 0.15s;
}

.tym-donate-submit-btn:hover { background: #e8d800; }

.tym-stripe-note {
    text-align: center;
    font-size: 11px;
    color: var(--tym-muted);
    margin-top: 8px;
}

/* ── Prayer Calendar (public) ────────────────────────────────── */
.tym-prayer-cal-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--tym-font);
}

.tym-prayer-month-header {
    background: var(--tym-navy);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
}

.tym-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    border: 1.5px solid var(--tym-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    background: #fff;
}

.tym-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
}

.tym-cal-day.empty { background: none; cursor: default; }
.tym-cal-day.has-prayer { background: var(--tym-navy); color: #fff; }
.tym-cal-day.today { background: var(--tym-teal); color: var(--tym-navy); font-weight: 700; }
.tym-cal-day.has-prayer:hover { background: #263a6e; }

.tym-cal-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--tym-muted);
    padding: 4px 0;
}

.tym-prayer-entry {
    border-left: 3px solid var(--tym-teal);
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--tym-light);
    border-radius: 0 8px 8px 0;
}

.tym-prayer-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--tym-teal);
    margin-bottom: 3px;
}

.tym-prayer-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--tym-navy);
    margin-bottom: 3px;
}

.tym-prayer-body {
    font-size: 13px;
    color: var(--tym-muted);
    line-height: 1.6;
}

/* ── Sponsor Account ─────────────────────────────────────────── */
.tym-account-wrap {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px 0;
    font-family: var(--tym-font);
}

.tym-account-sidebar {
    background: var(--tym-navy);
    border-radius: 12px;
    padding: 16px;
}

.tym-account-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #aab4c8;
    cursor: pointer;
    margin-bottom: 2px;
    text-decoration: none;
    transition: all 0.1s;
    font-family: var(--tym-font);
}

.tym-account-nav-item:hover { color: #fff; }
.tym-account-nav-item.active { background: var(--tym-gold); color: var(--tym-navy); font-weight: 700; }

.tym-account-hero {
    background: var(--tym-navy);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tym-account-hero-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.tym-account-hero-sub {
    font-size: 12px;
    color: #aab4c8;
    margin-top: 2px;
}

.tym-account-card {
    background: #fff;
    border: 1.5px solid var(--tym-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.tym-account-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--tym-navy);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tym-border);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tym-children-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
    .tym-children-grid { grid-template-columns: 1fr; }
    .tym-amount-grid   { grid-template-columns: repeat(2, 1fr); }
    .tym-filter-row    { flex-direction: column; }
    .tym-filter-buttons { width: 100%; }
    .tym-filter-btn, .tym-filter-reset { flex: 1; }
    .tym-panel         { max-width: 100%; border-radius: 0; }
    .tym-account-wrap  { grid-template-columns: 1fr; }
    .tym-account-sidebar { display: flex; gap: 4px; flex-wrap: wrap; }
    .tym-name-row      { grid-template-columns: 1fr; }
}
