/* hub.css — página principal My.Afiliados (dark + ouro; cards coloridos por projeto) */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1c1917;
    background: #08080c;
}

a { color: inherit; text-decoration: none; }

.hub {
    min-height: 100vh;
    padding: 0 16px 44px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(640px 380px at 50% -6%, rgba(212, 175, 55, .22) 0%, rgba(212, 175, 55, 0) 70%),
        radial-gradient(520px 360px at 50% 108%, rgba(212, 175, 55, .14) 0%, rgba(212, 175, 55, 0) 70%),
        radial-gradient(rgba(232, 199, 102, .16) 1px, transparent 1.5px) 0 0 / 26px 26px,
        linear-gradient(180deg, #0c0c12 0%, #07070b 100%);
    background-repeat: no-repeat, no-repeat, repeat, no-repeat;
    background-color: #08080c;
    display: flex;
    flex-direction: column;
}

.hub-in { width: 100%; max-width: 460px; margin: 0 auto; padding-top: 46px; flex: 1 0 auto; }

.marca { text-align: center; margin-bottom: 26px; }

.pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    color: #e8c766;
    border: 1px solid rgba(232, 199, 102, .55);
    background: rgba(232, 199, 102, .08);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

.logo-txt {
    margin: 0;
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #f6e7b4;
}

.logo-txt .g {
    background: linear-gradient(180deg, #fff4c2 0%, #e8c766 38%, #c9962b 70%, #8f6a17 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(212, 175, 55, .35));
}

.sub { margin: 14px auto 0; max-width: 320px; font-size: 15px; line-height: 1.5; color: #cdbb8a; }

.divisor { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.divisor i { display: block; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, #c9962b); }
.divisor i:last-child { background: linear-gradient(90deg, #c9962b, transparent); }
.divisor s { display: block; width: 7px; height: 7px; background: #e8c766; transform: rotate(45deg); box-shadow: 0 0 10px rgba(232, 199, 102, .8); }

/* ---------- Cards (sempre uma coluna) ---------- */
.grade { display: flex; flex-direction: column; gap: 20px; }

.cardp {
    --c: #f43f5e; --s: #ffe4e6; --s2: #fda4af;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 2px solid var(--s2);
    border-radius: 26px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent), 0 20px 44px -18px var(--c);
    transition: transform .18s;
}
.cardp:hover { transform: translateY(-3px); }

.cardp .lg {
    flex: 0 0 auto;
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid var(--c);
    overflow: hidden;
    background: var(--s);
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 900;
    color: var(--c);
}
.cardp .lg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cardp .tx { flex: 1; min-width: 0; }
.cardp .nm { display: block; font-size: 18px; font-weight: 900; line-height: 1.15; color: #1c1917; overflow-wrap: anywhere; }
/* card inteiro clicável (stretched link) */
.cardp .nm::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.cardp .ds { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: #57534e; overflow-wrap: anywhere; }

.cardp .redes { display: flex; gap: 7px; margin-top: 10px; position: relative; z-index: 2; }
.cardp .redes a { width: 30px; height: 30px; border-radius: 50%; background: var(--s); border: 1px solid var(--s2); display: grid; place-items: center; }
.cardp .redes a:hover { background: var(--c); }
.cardp .redes a:hover svg { stroke: #fff; }
.cardp .redes svg { stroke: var(--c); fill: none; }
.cardp .redes .dot { fill: var(--c); stroke: none; }
.cardp .redes a:hover .dot { fill: #fff; }

.cardp .go {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--c);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 16px -8px var(--c);
}

.cardp .nm:focus-visible { outline: 3px solid var(--c); outline-offset: 6px; border-radius: 6px; }
.cardp .redes a:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

.vazio { text-align: center; color: #cdbb8a; font-size: 15px; padding: 24px 0; }

/* ---------- Rodapé ---------- */
.rod { margin-top: 38px; text-align: center; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: #a89560; }
.rod a { text-decoration: underline; text-underline-offset: 2px; }
.rod .dom { color: #7d6f48; }

@media (prefers-reduced-motion: reduce) {
    .cardp { transition: none; }
    .cardp:hover { transform: none; }
}
