/* Social media monitoring feature page. Shares layout with influencer-discovery.css and app mock styles with story-archive.css. */

/* Hero: a monitored brand's profile, one story per day of the week. */
.ss-week { width: calc(100% + 45px); padding: 22px; border-radius: 20px; background: #fff; outline: 10px solid #ffffff1a; box-shadow: 0 22px 48px #1b064f33; color: #111; animation: ss-archive-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.ss-week-profile { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #f0f2f2; }
.ss-week-profile > img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ss-week-profile div { display: grid; gap: 3px; }
.ss-week-profile strong { font: 700 18px/1.2 var(--ss-font-body); }
.ss-week-profile span { display: flex; align-items: center; gap: 6px; color: #8f9696; font-size: 13px; }
.ss-week-profile em { margin-left: auto; padding: 5px 11px; border-radius: 999px; background: #e3f8f6; color: #1f9e95; font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; }
.ss-week-profile em b { font-variant-numeric: tabular-nums; }
.ss-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ss-week-day { display: block; margin-bottom: 8px; color: #8f9696; font-size: 11px; font-weight: 600; text-align: center; text-transform: uppercase; }
.ss-week-card { position: relative; }
.ss-week-card > img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 8px; object-fit: cover; }
.ss-week-card .ss-app-actions { gap: 3px; margin-top: 6px; }
.ss-week-card .ss-app-actions svg { width: 12px; height: 12px; }
.ss-week-tag { display: block; overflow: hidden; margin-top: 4px; color: #555c5c; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ss-week-tag b { color: #3cc8bd; }
.ss-week-new { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: #5ce0d8; color: #fff; font-size: 9.5px; font-weight: 700; }
.ss-week li.is-latest .ss-week-card > img { box-shadow: 0 0 0 2px #5ce0d8; }

/* Days still to come show an empty slot until their story arrives. */
.ss-week-slot { position: relative; }
.ss-week.is-armed [data-week-arrive] .ss-week-slot::before { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 9 / 16; border: 1.5px dashed #d5dada; border-radius: 8px; transition: opacity .3s; }
.ss-week.is-armed [data-week-arrive] .ss-week-card { opacity: 0; transform: translateY(-14px); }
.ss-week [data-week-arrive].has-arrived .ss-week-slot::before { opacity: 0; }
.ss-week [data-week-arrive].has-arrived .ss-week-card { opacity: 1; transform: none; transition: opacity .4s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ss-week li.is-latest.has-arrived .ss-week-new { animation: ss-archive-rise .5s .3s both; }

@media (max-width: 1100px) and (min-width: 901px) {
    .ss-week { padding: 18px; }
    .ss-week-days { gap: 6px; }
}
@media (max-width: 900px) {
    .ss-week { width: 100%; max-width: 560px; margin: 40px auto 0; outline-width: 6px; }
}
@media (max-width: 600px) {
    /* On phones, the last four days are enough to read the rhythm. */
    .ss-week { padding: 16px; }
    .ss-week-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ss-week-days li:nth-child(-n + 3) { display: none; }
    .ss-week-profile { flex-wrap: wrap; gap: 10px 12px; }
    .ss-week-profile em { margin-left: 0; }
    .ss-week-profile > img { width: 44px; height: 44px; }
}

/* Block: competitors. Their own stories, then the creators' stories that tag them. */
.ss-rows { display: grid; gap: 14px; max-width: 540px; margin: 0 auto; }
.ss-rows-group { padding: 18px; border: 1px solid #eceeee; border-radius: 18px; background: #fff; box-shadow: 0 16px 32px #1018280a; }
.ss-rows-label { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: #8f9696; font-size: 12px; font-weight: 600; }
.ss-rows-label img { width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; object-fit: cover; }
.ss-rows-label b { color: #111; }
.ss-rows-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ss-rows-cards .ss-app-actions { gap: 4px; }
.ss-rows-cards .ss-app-actions svg { width: 13px; height: 13px; }
.ss-rows-cards .ss-app-actions time { font-size: 10.5px; white-space: nowrap; }
.ss-rows-author { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; align-items: center; gap: 4px; overflow: hidden; color: #fff; font-size: 10px; font-weight: 600; text-shadow: 0 1px 3px #0009; white-space: nowrap; }
.ss-rows-author img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.ss-rows-mention { margin-top: 5px; }
.ss-rows-mention { display: inline-block; max-width: 100%; box-sizing: border-box; vertical-align: top; padding: 2px 6px; border-radius: 6px; transition: background-color .4s; }
/* The tagging stories arrive one by one, then their mention lights up. */
.ss-rows.is-armed .ss-rows-group + .ss-rows-group li { opacity: 0; transform: translateY(10px); }
.ss-rows.is-playing .ss-rows-group + .ss-rows-group li { opacity: 1; transform: none; transition: opacity .4s calc(.4s + var(--i) * .45s), transform .55s calc(.4s + var(--i) * .45s) cubic-bezier(.2, .7, .2, 1); }
.ss-rows.is-playing .ss-rows-mention { background: #e3f8f6; transition: background-color .5s calc(.9s + var(--i) * .45s); }
@media (max-width: 480px) {
    .ss-rows-group { padding: 12px; }
    .ss-rows-cards { gap: 6px; }
    .ss-rows-cards .ss-app-actions svg { display: none; }
    .ss-rows-cards .ss-app-actions { margin-top: 4px; }
    .ss-rows-cards .ss-app-actions time { margin-left: 0; font-size: 9.5px; }
    .ss-rows-author { font-size: 0; }
    .ss-rows-mention { font-size: 9.5px; padding: 1px 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .ss-rows-mention { background: #e3f8f6; }
}

/* Block: any account. Three monitored profiles, each with what arrived since your last visit. */
.ss-accounts { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; }
.ss-accounts-card { padding: 16px; border: 1px solid #eceeee; border-radius: 18px; background: #fff; box-shadow: 0 16px 32px #1018280a; }
.ss-accounts-head { display: flex; align-items: center; gap: 12px; }
.ss-accounts-head > img, .ss-accounts-head .ss-follow-initials { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; font-size: 12px; }
.ss-accounts-head div { display: grid; gap: 2px; min-width: 0; }
.ss-accounts-head strong { font-size: 14px; }
.ss-accounts-head span { display: flex; align-items: center; gap: 5px; overflow: hidden; color: #8f9696; font-size: 12px; white-space: nowrap; }
.ss-accounts-head em { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #5ce0d8; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.ss-accounts-thumbs { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ss-accounts-thumbs img { display: block; width: 44px; height: auto; aspect-ratio: 9 / 16; border-radius: 6px; object-fit: cover; }
.ss-accounts-new { margin-left: 8px; color: #1f9e95; font-size: 12px; font-weight: 600; }
.ss-accounts .ss-follow-note { margin-top: 6px; padding-top: 0; border: 0; justify-content: center; }
.ss-accounts.is-armed .ss-accounts-card { opacity: 0; transform: translateY(10px); }
.ss-accounts.is-armed .ss-accounts-thumbs li, .ss-accounts.is-armed .ss-accounts-head em { opacity: 0; transform: scale(.85); }
.ss-accounts.is-armed .ss-follow-note { opacity: 0; }
.ss-accounts.is-playing .ss-accounts-card { opacity: 1; transform: none; transition: opacity .4s calc(var(--i) * .35s), transform .5s calc(var(--i) * .35s) cubic-bezier(.2, .7, .2, 1); }
.ss-accounts.is-playing .ss-accounts-thumbs li { opacity: 1; transform: none; transition: opacity .3s calc(.35s + var(--i) * .35s + var(--j, 0) * .08s), transform .4s calc(.35s + var(--i) * .35s + var(--j, 0) * .08s) cubic-bezier(.3, 1.4, .5, 1); }
.ss-accounts.is-playing .ss-accounts-head em { opacity: 1; transform: none; transition: opacity .3s calc(.7s + var(--i) * .35s), transform .45s calc(.7s + var(--i) * .35s) cubic-bezier(.3, 1.5, .5, 1); }
.ss-accounts.is-playing .ss-follow-note { opacity: 1; transition: opacity .5s 1.8s; }

/* Block: hidden insights. Reuses the story-archive details layout. */
.ss-insight-title { display: block; margin: 2px 4px 2px; color: #111; font-size: 14px; font-weight: 700; }
.ss-insight-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.ss-insight-at { color: #3cc8bd; }
.ss-insight .ss-details-panel li:last-child { margin-top: 6px; padding-top: 14px; border-top: 1px solid #f0f2f2; }
.ss-insight .ss-details-poll { top: 22%; }
.ss-insight.is-playing .ss-details-poll i, .ss-insight.is-playing .ss-details-bars i { transition-delay: 2.5s; }

/* Block: search. Filters drop in, then last year's results appear. */
.ss-search { max-width: 520px; margin: 0 auto; }
.ss-search-panel { padding: 18px; border: 1px solid #eceeee; border-radius: 18px; background: #fff; box-shadow: 0 16px 32px #1018280a; }
.ss-search-field { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: #f3f5f5; color: #8f9696; font-size: 13px; }
.ss-search .ss-filter-chips { min-height: 0; margin: 12px 0 14px; }
.ss-search-count { display: block; margin-bottom: 10px; color: #6b7272; font-size: 12px; font-weight: 600; }
.ss-search-date { display: block; margin-top: 2px; color: #8f9696; font-size: 10.5px; }
.ss-search.is-armed .ss-filter-chips li { opacity: 0; transform: translateY(6px) scale(.9); }
.ss-search.is-armed .ss-search-count, .ss-search.is-armed .ss-search-results li { opacity: 0; transform: translateY(8px); }
.ss-search.is-playing .ss-filter-chips li { opacity: 1; transform: none; transition: opacity .3s calc(.3s + var(--i) * .4s), transform .45s calc(.3s + var(--i) * .4s) cubic-bezier(.3, 1.5, .5, 1); }
.ss-search.is-playing .ss-search-count { opacity: 1; transform: none; transition: opacity .4s 1.2s, transform .4s 1.2s; }
.ss-search.is-playing .ss-search-results li { opacity: 1; transform: none; transition: opacity .4s calc(1.4s + var(--i) * .15s), transform .5s calc(1.4s + var(--i) * .15s) cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 480px) {
    .ss-accounts-card, .ss-search-panel { padding: 12px; }
    .ss-accounts-thumbs img { width: 34px; }
    .ss-accounts-new { margin-left: 4px; font-size: 11px; }
    .ss-search-date { font-size: 9.5px; }
}
