
/* =========================================================
   MATEMATICAZ Q&A 2.0
   ========================================================= */


/* Topic status */

.mz-qa-topic-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin:
        8px 0 18px;
}


.mz-qa-topic-status a,
.mz-qa-topic-status span {
    min-height: 31px;

    display: inline-flex;
    align-items: center;

    padding: 0 11px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 850;

    text-decoration: none !important;
}


.mz-qa-topic-status .is-solved {
    background: #ecfdf5;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
}


.mz-qa-topic-status .is-open {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}


.mz-qa-pending-link {
    background: #eff6ff;
    color: #2563eb !important;
    border: 1px solid #bfdbfe;
}


/* Answer controls */

.mz-qa-answer-tools {
    clear: both;

    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin-top: 13px;
    padding-top: 12px;

    border-top: 1px solid #edf2f7;

    box-sizing: border-box;
}


.mz-qa-solution-badge {
    min-height: 39px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 0 13px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #d1fae5
        );

    color: #047857;

    border: 1px solid #a7f3d0;
}


.mz-qa-solution-badge > span {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #059669;

    color: #fff;
}


.mz-qa-reputation {
    min-height: 37px;

    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding: 0 11px;

    border-radius: 999px;

    background: #f5f3ff;

    color: #6d28d9;

    font-size: 9px;
    font-weight: 750;
}


.mz-qa-accept {
    min-height: 38px;

    margin-left: auto;

    padding: 0 13px;

    border: 1px solid #dbe4f0;
    border-radius: 11px;

    background: #fff;

    color: #475569;

    font-size: 10px;
    font-weight: 850;

    cursor: pointer;
}


.mz-qa-accept:hover {
    border-color: #86efac;
    background: #f0fdf4;
    color: #047857;
}


.mz-qa-accept.is-active {
    border-color: #6ee7b7;
    background: #ecfdf5;
    color: #047857;
}


.mz-qa-accept.has-error {
    border-color: #fca5a5;
}


/*
 * Resalta el post completo cuando
 * contiene la solución aceptada.
 */

.post:has(.mz-qa-accepted-marker) {
    border:
        1px solid
        #6ee7b7 !important;

    box-shadow:
        0 0 0 3px
        rgba(16,185,129,.07),
        0 14px 35px
        rgba(15,23,42,.07);
}


/* Forum badges */

.mz-qa-topic-badge {
    display: inline-flex;
    align-items: center;

    margin-left: 7px;

    padding:
        3px 7px;

    border-radius:
        999px;

    vertical-align: middle;

    font-size: 8px;
    font-weight: 850;
}


.mz-qa-topic-badge.is-solved {
    background: #ecfdf5;
    color: #047857;
}


.mz-qa-topic-badge.is-open {
    background: #fff7ed;
    color: #c2410c;
}


/* Pending home */

.mz-qa-home {
    margin:
        30px 0;

    padding:
        22px;

    border:
        1px solid #e2e8f0;

    border-radius:
        20px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8fafc
        );

    box-shadow:
        0 10px 30px
        rgba(15,23,42,.05);
}


.mz-qa-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}


.mz-qa-home-header span,
.mz-qa-pending-hero > span {
    color: #f97316;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .12em;
}


.mz-qa-home-header h2 {
    margin: 4px 0;

    color: #0f172a;

    font-size: 25px;
    font-weight: 900;
}


.mz-qa-home-header p {
    margin: 0;

    color: #64748b;

    font-size: 10px;
}


.mz-qa-home-header > a {
    color: #2563eb !important;

    font-size: 10px;
    font-weight: 850;

    text-decoration: none !important;
}


.mz-qa-home-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 8px;
}


.mz-qa-home-grid article {
    min-width: 0;

    display: grid;

    grid-template-columns:
        34px
        minmax(0,1fr);

    gap: 10px;

    align-items: center;

    padding: 12px;

    border: 1px solid #edf2f7;
    border-radius: 12px;

    background: #fff;
}


.mz-qa-open-dot {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #fff7ed;

    color: #ea580c;

    font-size: 18px;
    font-weight: 900;
}


.mz-qa-home-grid h3 {
    margin: 0 0 5px;

    font-size: 11px;
}


.mz-qa-home-grid h3 a {
    color: #0f172a !important;

    text-decoration: none !important;
}


.mz-qa-home-grid small {
    color: #94a3b8;

    font-size: 8px;
}


/* Pending page */

.mz-qa-pending {
    margin:
        30px 0 55px;
}


.mz-qa-pending-hero {
    margin-bottom: 22px;

    padding: 28px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #fff7ed,
            #fff,
            #eff6ff
        );

    border: 1px solid #fed7aa;
}


.mz-qa-pending-hero h1 {
    margin: 5px 0;

    color: #0f172a;

    font-size:
        clamp(
            34px,
            5vw,
            49px
        );

    font-weight: 950;

    letter-spacing: -1.3px;
}


.mz-qa-pending-hero p {
    margin: 0 0 10px;

    color: #64748b;
}


.mz-qa-pending-hero > strong {
    color: #ea580c;

    font-size: 10px;
}


.mz-qa-pending-grid {
    display: grid;

    gap: 10px;
}


.mz-qa-pending-grid article {
    display: grid;

    grid-template-columns:
        48px
        minmax(0,1fr)
        auto;

    align-items: center;

    gap: 14px;

    padding: 16px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 6px 20px
        rgba(15,23,42,.04);
}


.mz-qa-pending-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #fff7ed;

    color: #ea580c;

    font-size: 24px;
    font-weight: 900;
}


.mz-qa-pending-grid article
> div:nth-child(2)
> span {
    color: #ea580c;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .08em;
}


.mz-qa-pending-grid h2 {
    margin:
        4px 0;

    font-size: 15px;
}


.mz-qa-pending-grid h2 a {
    color: #0f172a !important;

    text-decoration: none !important;
}


.mz-qa-pending-grid p {
    margin:
        0 0 6px;

    color: #94a3b8;

    font-size: 9px;
}


.mz-qa-pending-grid
article
> div:nth-child(2)
> div {
    display: flex;

    gap: 12px;

    color: #64748b;

    font-size: 9px;
}


.mz-qa-help {
    min-height: 38px;

    display: inline-flex;
    align-items: center;

    padding: 0 13px;

    border-radius: 10px;

    background: #2563eb;

    color: #fff !important;

    font-size: 9px;
    font-weight: 850;

    text-decoration: none !important;
}


.mz-qa-all-solved {
    padding: 65px;

    text-align: center;

    border:
        1px dashed
        #86efac;

    border-radius: 20px;

    background: #f0fdf4;
}


.mz-qa-all-solved > span {
    color: #10b981;

    font-size: 48px;
}


@media (max-width: 700px) {

    .mz-qa-home-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .mz-qa-home-grid {
        grid-template-columns: 1fr;
    }


    .mz-qa-pending-grid article {
        grid-template-columns:
            42px
            minmax(0,1fr);
    }


    .mz-qa-help {
        grid-column:
            1 / -1;

        justify-content: center;
    }


    .mz-qa-accept {
        width: 100%;

        margin-left: 0;
    }

}

