/* Alpha.119 — Faixa de Stories na página inicial.
   Trilha horizontal com snap, avatares com anel gradiente para "não visto" e cinza para "visto". */

.home-stories {
    /* Alpha.120: cola imediatamente embaixo do bloco anterior (carrossel/fileira). Sem gap artificial. */
    margin: 0 auto;
    padding: 8px 0 4px;
}
.home-stories .wrap { max-width: 1480px; }

.home-stories-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 0 var(--gutter, 20px);
}
.home-stories-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-text, var(--accent));
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    width: fit-content;
}
.home-stories-kicker .icon { width: 14px; height: 14px; }
.home-stories-title {
    margin: 0;
    font-family: var(--font-display, var(--font));
    font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--text);
}
.home-stories-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.home-stories-all:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateX(2px); }
.home-stories-all .icon { width: 14px; height: 14px; }

.home-stories-rail {
    display: flex;
    gap: 14px;
    padding: 6px var(--gutter, 20px) 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.home-stories-rail::-webkit-scrollbar { display: none; }

.home-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 76px;
    width: 76px;
    text-decoration: none;
    scroll-snap-align: start;
}
.home-story-ring {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #ec4899, #a855f7, #3b82f6, #ec4899);
    padding: 3px;
    transition: transform .2s ease;
}
.home-story:hover .home-story-ring { transform: scale(1.05); }
.home-story:not(.is-new) .home-story-ring {
    background: linear-gradient(135deg, var(--border-strong), var(--border));
}
.home-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    border: 2px solid var(--bg);
    display: grid;
    place-items: center;
}
.home-story-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-story-initials {
    font-family: var(--font-display, var(--font));
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-soft);
}
.home-story-count {
    position: absolute;
    bottom: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .68rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg);
}
.home-story-name {
    width: 100%;
    text-align: center;
    font-size: .76rem;
    color: var(--text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Botão "Criar seu story" */
.home-story--add .home-story-ring {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000));
}
.home-story-plus {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--bg);
    display: grid;
    place-items: center;
    color: var(--accent);
}
.home-story-plus .icon { width: 28px; height: 28px; }

@media (max-width: 640px) {
    .home-stories { padding: 4px 0 2px; }
    .home-stories-head { padding: 0 16px; margin-bottom: 8px; }
    .home-stories-rail { padding: 4px 16px 10px; gap: 10px; }
    .home-story { min-width: 68px; width: 68px; }
    .home-story-ring { width: 64px; height: 64px; }
    .home-stories-title { font-size: 1.15rem; }
    .home-stories-kicker { font-size: .7rem; padding: 3px 8px; margin-bottom: 2px; }
    .home-stories-all { padding: 4px 8px 4px 12px; font-size: .78rem; }
}
