/* Volunteer profile page ([alphavima_volunteer_profile]). Builds on volunteer.css (colours, .avs-btn, .avs-badge,
   .avs-details, .avs-msg). Headings use a doubled class because the theme styles every h2/h3 very large. */

.avs-prof {
    max-width: 960px;
    margin: 24px auto 48px;
    color: var(--avs-ink, #1f2937);
    font-size: 15px;
    line-height: 1.5;
}

.avs-prof .avs-card {
    margin: 0 0 20px;
    padding: 22px 24px;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 40, 80, .06);
}

.avs-prof.avs-prof h2,
.avs-prof.avs-prof h3 {
    margin: 0;
    color: var(--avs-navy, #12305b);
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.avs-prof.avs-prof h2 { font-size: 24px; line-height: 1.25; }
.avs-prof.avs-prof h3 { font-size: 18px; line-height: 1.3; }

/* header */
.avs-prof-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #12305b, #1f5c99);
    color: #fff;
}

.avs-prof-head .avs-prof-who { flex: 1; min-width: 0; }
.avs-prof.avs-prof .avs-prof-head h2 { color: #fff; }
.avs-prof-head p { margin: 2px 0 0; color: rgba(255, 255, 255, .8); font-size: 14px; overflow-wrap: anywhere; }

.avs-prof-avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: 20px;
    font-weight: 700;
}

.avs-prof-signout {
    flex: none;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.avs-prof-signout:hover,
.avs-prof-signout:focus { background: rgba(255, 255, 255, .12); color: #fff; }

/* section tabs */
.avs-prof-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.avs-prof-tabs a {
    padding: 7px 16px;
    border: 1px solid #d5dee8;
    border-radius: 999px;
    background: #fff;
    color: var(--avs-navy, #12305b);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.avs-prof-tabs a:hover,
.avs-prof-tabs a:focus { border-color: var(--avs-navy, #12305b); }

.avs-prof .avs-msg { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; }

/* sections */
.avs-prof-section { scroll-margin-top: 120px; }

.avs-prof-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.avs-prof .avs-btn {
    display: inline-block;
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: #2293f0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.avs-prof .avs-btn:hover,
.avs-prof .avs-btn:focus { background: #1a7fd4; color: #fff; }

/* schedule summary */
.avs-prof-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}

.avs-prof-stat {
    padding: 14px;
    border-radius: 12px;
    background: var(--avs-soft, #f3f6f9);
    text-align: center;
}

.avs-prof-stat strong { display: block; color: var(--avs-navy, #12305b); font-size: 24px; line-height: 1.2; }
.avs-prof-stat span { display: block; margin-top: 2px; color: var(--avs-muted, #64748b); font-size: 13px; }
.avs-prof-stat.is-warn { background: #fff4e5; }
.avs-prof-stat.is-warn strong { color: #a15c00; }

.avs-prof-list { margin: 0; padding: 0; list-style: none; }

.avs-prof-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #edf1f5;
}

.avs-prof-list li:first-child { border-top: 0; }

.avs-prof-date {
    flex: none;
    width: 52px;
    padding: 6px 0;
    border-radius: 10px;
    background: #e8f2fc;
    color: var(--avs-navy, #12305b);
    text-align: center;
    line-height: 1.1;
}

.avs-prof-date strong { display: block; font-size: 20px; }
.avs-prof-date span { display: block; font-size: 12px; text-transform: uppercase; }

.avs-prof-item { flex: 1; min-width: 0; }
.avs-prof-item strong { display: block; font-size: 15px; }
.avs-prof-item span { display: block; color: var(--avs-muted, #64748b); font-size: 13.5px; }

.avs-prof-more,
.avs-prof-hint,
.avs-prof-empty { margin: 12px 0 0; font-size: 14px; color: var(--avs-muted, #64748b); }
.avs-prof-hint { padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #7a4600; }
.avs-prof-error { margin: 0; color: #8a1c1c; }

/* my details form */
.avs-prof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.avs-prof-grid label {
    display: block;
    margin: 0;
    color: var(--avs-ink, #1f2937);
    font-size: 14px;
    font-weight: 600;
}

.avs-prof-grid .avs-span-2 { grid-column: span 2; }
.avs-prof-grid .avs-req { color: #c0392b; }

.avs-prof-grid input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #cdd7e1;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 400;
}

.avs-prof-grid input:focus { outline: 2px solid #2293f0; outline-offset: 1px; border-color: #2293f0; }
.avs-prof-grid input[readonly] { background: #f3f6f9; color: #64748b; }
.avs-prof-actions { margin: 18px 0 0; }

.avs-prof .avs-details { margin: 0; }

/* the theme underlines every link; the profile's buttons and tabs are not text links */
.avs-prof.avs-prof a.avs-btn,
.avs-prof.avs-prof .avs-prof-tabs a,
.avs-prof.avs-prof a.avs-prof-signout,
.avs-prof.avs-prof a.avs-btn:hover,
.avs-prof.avs-prof .avs-prof-tabs a:hover,
.avs-prof.avs-prof a.avs-prof-signout:hover {
    text-decoration: none !important;
}

@media (max-width: 720px) {
    .avs-prof { margin-top: 12px; }
    .avs-prof .avs-card, .avs-prof-head { padding: 18px 16px; }
    .avs-prof-head { flex-wrap: wrap; }
    .avs-prof-stats { grid-template-columns: 1fr 1fr; }
    .avs-prof-grid { grid-template-columns: 1fr; }
    .avs-prof-grid .avs-span-2 { grid-column: auto; }
    .avs-prof-section-head { flex-wrap: wrap; }
}
