/* ============================================
   com_mycharity Override Styles
   Template: shaper_helixultimate
   Brand: #88a81d / #9bb72d
   ============================================ */

/* ---------- List View ---------- */
.mc-list-view .mc-card {
    border: 1px solid #e8eef5;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}

.mc-list-view .mc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .35);
    border-color: #c3d6ea;
}

.mc-list-view .mc-card-title a {
    color: #1E3A5F;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.mc-list-view .mc-card-title a:hover {
    color: #88a81d;
}

.mc-list-view .mc-card-text {
    font-size: .9rem;
    line-height: 1.5;
}

/* ---------- Event Cards ---------- */
.mc-list-view .mc-event-card {
    overflow: hidden;
}

.mc-event-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef2f7;
}

.mc-event-media .mc-event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.mc-event-card:hover .mc-event-img {
    transform: scale(1.06);
}

.mc-event-state {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    z-index: 2;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
}

.mc-event-state.state-active {
    background: #e7f5ea;
    color: #2C5F2D;
}

.mc-event-state.state-upcoming {
    background: #eef4ff;
    color: #1D4ED8;
}

.mc-event-state.state-ended {
    background: #f1f5f9;
    color: #64748b;
}

.mc-list-view .mc-card-subtitle {
    font-weight: 600;
    font-size: .85rem;
    color: #64748b;
    margin: .15rem 0 .75rem;
}

.mc-event-card .mc-event-meta {
    list-style: none;
    margin: 0 0 .9rem;
    padding: 0;
}

.mc-event-card .mc-event-meta li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .82rem;
    color: #475569;
    margin-bottom: .35rem;
    line-height: 1.5;
}

.mc-event-card .mc-event-meta li:last-child {
    margin-bottom: 0;
}

.mc-event-card .mc-event-meta li i {
    color: #88a81d;
    font-size: .85rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* ---------- Detail View ---------- */
.mc-detail-view .mc-detail-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .12);
    background: #fff;
}

.mc-detail-view .mc-detail-title {
    font-weight: 800;
    color: #1E3A5F;
    font-size: 1.6rem;
    margin: 0;
}

.mc-detail-view .mc-panel {
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 1.25rem;
}

.mc-detail-view .mc-panel-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .95rem;
    color: #1E3A5F;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #eef2f7;
}

.mc-detail-view .mc-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-detail-view .mc-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .7rem .25rem;
    border-bottom: 1px solid #eef2f7;
}

.mc-detail-view .mc-info-list li:last-child {
    border-bottom: none;
}

.mc-detail-view .mc-info-label {
    flex: 0 0 40%;
    color: #64748b;
    font-weight: 600;
    font-size: .85rem;
}

.mc-detail-view .mc-info-value {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
    font-size: .95rem;
    word-break: break-word;
}

.mc-detail-view .mc-detail-avatar {
    max-width: 160px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 8px 18px -10px rgba(30, 58, 95, .45);
}

/* ---------- Section Header ---------- */
.mc-section-header .mc-page-title {
    font-weight: 800;
    color: #1E3A5F;
    font-size: 1.75rem;
}

/* ---------- Info Card ---------- */
.mc-info-card {
    border: 1px solid #e8eef5;
    border-radius: 1rem;
    box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .4);
}

/* ---------- Pagination overrides ---------- */
.mc-list-view .pagination {
    justify-content: center;
    margin-top: 1.5rem;
}

.mc-list-view .pagination .page-item.active .page-link {
    background-color: #88a81d;
    border-color: #88a81d;
}

.mc-list-view .pagination .page-link {
    color: #1E3A5F;
}

.mc-list-view .pagination .page-link:hover {
    background-color: #f0f5e8;
    color: #88a81d;
}

/* ---------- Auth / Login ---------- */
.mc-auth-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.mc-auth-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: #f0f5e8;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
}

.mc-auth-title {
    font-weight: 800;
    color: #1E3A5F;
    margin: 0;
}

.mc-auth-card {
    border: 1px solid #e8eef5;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .1);
}

.mc-auth-card .form-control:focus {
    border-color: #88a81d;
    box-shadow: 0 0 0 .25rem rgba(136, 168, 29, .15);
}

.mc-auth-card .input-group-text {
    border-radius: 0;
}

.mc-auth-card .form-control {
    border-radius: 0 .375rem .375rem 0;
}

/* ---------- Dashboard ---------- */
.mc-dashboard-wrap {
    padding: 1rem 0 3rem;
}

.mc-dashboard-header {
    margin-bottom: 2rem;
}

.mc-dashboard-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #f0f5e8;
    display: inline-grid;
    place-items: center;
}

.mc-dashboard-greeting {
    font-weight: 800;
    color: #1E3A5F;
    margin: 0;
    font-size: 1.5rem;
}

.mc-stat-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.mc-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .35) !important;
}

.mc-stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    display: inline-grid;
    place-items: center;
    margin-bottom: .5rem;
}

.mc-menu-card {
    border-radius: 1rem;
}

/* ---------- About Page ---------- */
.mc-about-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.mc-about-content p {
    margin-bottom: 1rem;
}

.mc-about-content h1,
.mc-about-content h2,
.mc-about-content h3,
.mc-about-content h4 {
    color: #1E3A5F;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

.mc-about-content ul,
.mc-about-content ol {
    padding-right: 1.5rem;
}

.mc-about-content li {
    margin-bottom: .5rem;
}

.mc-about-content img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    margin: 1rem 0;
}

/* ---------- Incident Supports Card View ---------- */
.mc-list-view .mc-incident-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.mc-list-view .mc-incident-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .35) !important;
}

.mc-list-view .mc-incident-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
}

.mc-list-view .mc-incident-media img.mc-event-img {
    object-fit: cover;
}

.mc-list-view .mc-incident-card .mc-card-title a {
    color: #1E3A5F;
    text-decoration: none;
}

.mc-list-view .mc-incident-card .mc-card-title a:hover {
    color: #88a81d;
}

.mc-list-view .mc-incident-card .progress-bar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* ---------- Empty States ---------- */
.mc-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.mc-empty-state .mc-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.mc-empty-state h3 {
    color: #64748b;
    font-weight: 700;
    margin-bottom: .5rem;
}

.mc-empty-state p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* ---------- Mychilds Filter Section ---------- */
.mc-mychilds-view .mc-filter-section {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .4);
}

.mc-mychilds-view .mc-filter-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f5e8 100%);
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e8eef5;
}

.mc-mychilds-view .mc-filter-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .85rem;
    background: #fff;
    display: grid;
    place-items: center;
    color: #88a81d;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    flex-shrink: 0;
}

.mc-mychilds-view .mc-filter-title {
    font-weight: 800;
    color: #1E3A5F;
    font-size: 1.05rem;
    margin: 0;
}

.mc-mychilds-view .mc-filter-subtitle {
    font-size: .8rem;
    color: #64748b;
    margin: 0;
}

.mc-mychilds-view .mc-badge-active {
    display: inline-flex;
    align-items: center;
    background: #e7f5ea;
    color: #2C5F2D;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 2rem;
}

.mc-mychilds-view .mc-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: .6rem;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .85rem;
    color: #374151;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.mc-mychilds-view .mc-filter-toggle-btn:hover {
    border-color: #88a81d;
    color: #88a81d;
    background: #f8fafc;
}

.mc-mychilds-view .mc-filter-toggle-btn:not(.collapsed) .mc-toggle-icon {
    transform: rotate(180deg);
}

.mc-mychilds-view .mc-toggle-icon {
    transition: transform .25s ease;
    font-size: .7rem;
}

.mc-mychilds-view .mc-filter-body {
    padding: 1.5rem;
    background: #fff;
}

.mc-mychilds-view .mc-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem 1.25rem;
}

.mc-mychilds-view .mc-field-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.mc-mychilds-view .mc-field-label {
    font-size: .75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
    display: flex;
    align-items: center;
}

.mc-mychilds-view .mc-field-input {
    border-color: #e2e8f0;
    border-radius: .5rem;
    font-size: .88rem;
    min-height: 2.35rem;
    background-color: #fafbfc;
    transition: all .15s ease;
}

.mc-mychilds-view .mc-field-input:focus {
    border-color: #88a81d;
    box-shadow: 0 0 0 .25rem rgba(136, 168, 29, .1);
    background: #fff;
}

.mc-mychilds-view .mc-date-range {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.mc-mychilds-view .mc-date-range .mc-field-input {
    flex: 1;
    min-width: 0;
}

.mc-mychilds-view .mc-date-sep {
    color: #94a3b8;
    font-weight: 600;
    flex-shrink: 0;
}

.mc-mychilds-view .mc-filter-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f7;
}

.mc-mychilds-view .mc-filter-actions .btn {
    border-radius: .6rem;
    font-weight: 600;
    font-size: .88rem;
    padding: .55rem 1.5rem;
    transition: all .2s ease;
}

.mc-mychilds-view .mc-filter-actions .btn-primary {
    background: #88a81d;
    border-color: #88a81d;
}

.mc-mychilds-view .mc-filter-actions .btn-primary:hover {
    background: #7a9818;
    border-color: #7a9818;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 168, 29, .3);
}

.mc-mychilds-view .mc-filter-actions .btn-outline-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .mc-mychilds-view .mc-filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .mc-mychilds-view .mc-filter-header {
        padding: 1rem;
    }

    .mc-mychilds-view .mc-filter-body {
        padding: 1rem;
    }

    .mc-mychilds-view .mc-field-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .mc-mychilds-view .mc-filter-grid {
        grid-template-columns: 1fr;
    }

    .mc-mychilds-view .mc-filter-actions {
        flex-direction: column;
    }

    .mc-mychilds-view .mc-filter-actions .btn {
        width: 100%;
    }
}
