/* =========================
   Refúgio Patinhas Alegres
   style.css
   ========================= */

:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 25px rgba(0, 0, 0, .06);
    --green: #16a34a;
    --green2: #22c55e;
    --greenSoft: rgba(34, 197, 94, .14);
    --focus: 0 0 0 4px rgba(34, 197, 94, .25);
    --radius: 16px;
    --radiusSm: 12px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.muted {
    color: var(--muted);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.highlight {
    color: var(--green);
}

/* =========================
   Topbar
   ========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
}

.brand__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand__name {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    color: #111827;
    font-weight: 600;
}

.nav a {
    padding: 10px 10px;
    border-radius: 10px;
    transition: background .15s ease;
}

.nav a:hover {
    background: rgba(17, 24, 39, .06);
}

.topbar__actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hamburger {
    display: none;
    margin-left: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111827;
    margin: 4px 0;
    border-radius: 999px;
}

.mobileNav {
    display: none;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
}

.mobileNav__inner {
    padding: 12px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobileNav a {
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.mobileNav a:hover {
    background: rgba(17, 24, 39, .06);
}

/* =========================
   Buttons
   ========================= */

.btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: #111827;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .06s ease, background .15s ease, border .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-color: rgba(34, 197, 94, .35);
}

.btn--ghost:hover {
    background: rgba(17, 24, 39, .06);
}

.btn--primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.btn--primary:hover {
    filter: brightness(1.05);
}

.btn--cta {
    background: linear-gradient(135deg, var(--green), var(--green2));
    color: #fff;
    border-color: rgba(0, 0, 0, 0);
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(34, 197, 94, .25);
}

.btn--cta:hover {
    filter: brightness(1.02);
}

.pulse {
    position: relative;
    isolation: isolate;
}

.pulse::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, .35), rgba(34, 197, 94, 0) 60%);
    z-index: -1;
    animation: pulseGlow 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        transform: scale(.92);
        opacity: .55;
    }
    50% {
        transform: scale(1.04);
        opacity: .9;
    }
    100% {
        transform: scale(.92);
        opacity: .55;
    }
}

/* =========================
   Main / Hero
   ========================= */

.main {
    padding: 26px 0 50px;
}

.breadcrumb {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 12px;
    margin-top: 6px;
}

.title {
    margin: 14px 0 8px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
}

.subline {
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 600;
}

/* =========================
   Cards / Grid
   ========================= */

.grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 18px;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Media card */

.mediaCard {
    overflow: hidden;
}

.mediaCard__imageWrap {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.mediaCard__image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .35s ease;
}

.mediaCard__imageWrap:hover .mediaCard__image {
    transform: scale(1.04);
}

.fav {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(17, 24, 39, .45);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease;
}

.fav:hover {
    background: rgba(17, 24, 39, .55);
}

.fav:active {
    transform: translateY(1px);
}

.heartsRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 16px;
}

.hearts {
    display: flex;
    align-items: center;
}

.heartBadge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-left: -10px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #ef4444, #fb7185);
    color: #fff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, .22);
}

.heartBadge:nth-child(2) {
    background: linear-gradient(135deg, #f97316, #fb7185);
}

.heartBadge:nth-child(3) {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.heartBadge:nth-child(4) {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.heartBadge:nth-child(5) {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
}

.heartBadge:last-child {
    background: rgba(17, 24, 39, .06);
    color: #111827;
    box-shadow: none;
}

.heartsText {
    font-weight: 700;
    color: #111827;
}

/* Donate card */

.donateCard {
    padding: 16px;
    position: sticky;
    top: 86px;
}

.progress {
    margin-bottom: 10px;
}

.progress__bar {
    height: 8px;
    width: 100%;
    background: rgba(17, 24, 39, .08);
    border-radius: 999px;
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green2));
    border-radius: 999px;
    width: 0%;
    transition: width .6s ease;
}

.donateCard__block {
    padding: 10px 2px 12px;
}

.label {
    color: var(--muted);
    font-weight: 700;
}

.money {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--green);
    margin-top: 6px;
}

.donateCard__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 2px;
    margin-bottom: 14px;
}

.metaValue {
    font-weight: 900;
    margin-top: 2px;
}

.orgBox {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.orgBox__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ✅ Aqui estava o bug: tinha um } a mais no seu arquivo */

.orgAvatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(34, 197, 94, .25);
    box-shadow: 0 6px 14px rgba(34, 197, 94, .18);
}

.orgName {
    font-weight: 900;
}

.orgInfo {
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
}

.orgLink {
    display: inline-block;
    margin-top: 6px;
    color: var(--green);
    font-weight: 800;
}

.orgLink:hover {
    text-decoration: underline;
}

.trustRow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.trustPill {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    background: rgba(17, 24, 39, .06);
    border: 1px solid rgba(17, 24, 39, .08);
    padding: 8px 10px;
    border-radius: 999px;
}

/* =========================
   Tabs
   ========================= */

.tabs {
    margin-top: 22px;
}

.tabs__head {
    display: flex;
    gap: 10px;
    padding: 14px 0 8px;
}

.tab {
    border: none;
    background: transparent;
    font-weight: 900;
    color: #111827;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease;
}

.tab:hover {
    background: rgba(17, 24, 39, .06);
}

.tab.active {
    background: var(--greenSoft);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, .25);
}

.tabs__body {
    padding-bottom: 6px;
}

.tabPane {
    display: none;
}

.tabPane.active {
    display: block;
}

.textCard {
    padding: 18px;
    line-height: 1.7;
}

.smallMuted {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.alertLine {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .18);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
}

/* Comments */

.commentsCard {
    margin-top: 14px;
    padding: 14px 16px 6px;
}

.commentsHeader {
    font-weight: 900;
    padding: 8px 2px 14px;
    border-bottom: 1px solid var(--border);
}

.comment {
    display: flex;
    gap: 12px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--border);
}

.comment:last-child {
    border-bottom: none;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(17, 24, 39, .08);
}

.comment__name {
    font-weight: 900;
}

.comment__text {
    margin-top: 6px;
    color: #111827;
    font-weight: 600;
}

.comment__meta {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
}

.comment__meta .muted {
    color: var(--muted);
    font-weight: 500;
}

/* =========================
   Novidades (NOVO)
   ========================= */

.updatesHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.updatesTitle {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.updatesBadge {
    font-size: 12px;
    font-weight: 900;
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, .22);
    background: rgba(34, 197, 94, .10);
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.updatesGrid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.updateItem {
    display: flex;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: rgba(17, 24, 39, .02);
}

.updateIcon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .18);
    font-size: 18px;
    flex: 0 0 auto;
}

.updateTitle {
    font-weight: 900;
    margin-top: 1px;
}

.updateText {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.55;
}

.updatesFooter {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

/* =========================
   Quem ajudou (NOVO)
   ========================= */

.donorsHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.donorsTitle {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.donorsSub {
    margin-top: 6px;
    font-weight: 650;
    font-size: 13px;
}

.donorsPill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    background: rgba(17, 24, 39, .06);
    border: 1px solid rgba(17, 24, 39, .08);
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.dotLive {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green2);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.donorsList {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donorItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .03);
    overflow: hidden;
}

.donorLeft {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.donorAvatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, .35), rgba(34, 197, 94, .06) 60%);
    border: 1px solid rgba(34, 197, 94, .22);
    flex: 0 0 auto;
}

.donorMain {
    min-width: 0;
}

.donorName {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donorMeta {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 650;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donorRight {
    text-align: right;
    flex: 0 0 auto;
}

.donorAmount {
    font-weight: 1000;
    color: var(--green);
}

.donorTime {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.donorEnter {
    animation: donorIn .22s ease-out both;
}

@keyframes donorIn {
    from {
        transform: translateY(6px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.donorsHint {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-weight: 650;
    font-size: 12px;
}

/* =========================
   Footer
   ========================= */

.footer {
    margin-top: 26px;
    padding: 22px 0 0;
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.footer__title {
    font-weight: 900;
    margin-bottom: 6px;
}

.footer__links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer__links a {
    color: var(--muted);
    font-weight: 800;
}

.footer__links a:hover {
    color: #111827;
}

.footer__bottom {
    padding: 16px 0 22px;
    border-top: 1px solid var(--border);
}

/* =========================
   Modal
   ========================= */

.modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 80;
}

.modalOverlay.open {
    display: flex;
}

.modal {
    width: min(520px, 100%);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden;
    animation: modalIn .18s ease-out;
}

@keyframes modalIn {
    from {
        transform: translateY(10px);
        opacity: .0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .9);
    cursor: pointer;
    font-weight: 900;
}

.modal__close:hover {
    background: rgba(17, 24, 39, .06);
}

.modal__header {
    padding: 16px 16px 12px;
    background: rgba(17, 24, 39, .02);
    border-bottom: 1px solid var(--border);
}

.modalBrand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modalBrand__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.modalBrand__title {
    font-weight: 900;
    line-height: 1.25;
}

.modal__content {
    padding: 16px;
}

.modal__h2 {
    margin: 14px 0 10px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.payMethod {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, .22);
    background: rgba(34, 197, 94, .10);
}

.radioDot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--green);
    background: radial-gradient(circle at 50% 50%, var(--green) 45%, transparent 46%);
}

.payMethod__name {
    font-weight: 900;
}

.modal__hint {
    color: var(--muted);
    font-weight: 650;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ✅ 2 colunas SEMPRE */

.valuesGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ✅ Corrige sobreposição do selo nos valores */

.valueBtn {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
    text-align: center;
    transition: transform .06s ease, box-shadow .15s ease, border .15s ease;
    position: relative;
    overflow: hidden;
    padding-top: 40px;
    /* cria uma área “livre” pro selo em cima */
    padding-right: 96px;
    /* evita o selo encostar no valor */
    min-height: 74px;
    /* garante altura bonita */
}

.valueBtn:hover {
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .06);
}

.valueBtn:active {
    transform: translateY(1px);
}

.valueBtn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-color: rgba(34, 197, 94, .4);
}

.valueBtn__tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    pointer-events: none;
    font-size: 11px;
    font-weight: 1000;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, .22);
    background: rgba(34, 197, 94, .12);
    color: var(--green);
}

.modal__safe {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .donateCard {
        position: relative;
        top: 0;
    }
    .mediaCard__image {
        height: 360px;
    }
}

@media (max-width: 860px) {
    .nav,
    .topbar__actions {
        display: none;
    }
    .hamburger {
        display: block;
        margin-left: auto;
    }
    .brand {
        min-width: unset;
    }
    .mobileNav.open {
        display: block;
    }
}

@media (max-width: 520px) {
    .title {
        font-size: 30px;
    }
    .mediaCard__image {
        height: 300px;
    }
    .money {
        font-size: 30px;
    }
    /* ✅ REMOVIDO: não forçamos 1 coluna no mobile */
    /* .valuesGrid{ grid-template-columns: 1fr; } */
    .footer__grid {
        flex-direction: column;
    }
    .footer__links {
        justify-content: flex-start;
    }
    /* ✅ Ajuste fino pro 2-colunas ficar bonito em telas bem estreitas */
    .valueBtn {
        padding-right: 86px;
        min-height: 70px;
    }
    .valueBtn__tag {
        font-size: 10.5px;
        padding: 6px 9px;
    }
}

/* ✅ FORÇA 2 COLUNAS SEMPRE (mesmo no mobile e mesmo se tiver regra concorrendo) */

.valuesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}