/* === Profile page === */

.profile {
    padding: 40px 0 60px;
}
.profile__grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 50px;
    align-items: start;
}
.profile__media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.profile__media img { width: 100%; height: 100%; object-fit: cover; }
.profile__title { margin-bottom: 6px; }
.profile__sub {
    color: var(--pink-soft);
    font-size: 16px;
    margin-bottom: 22px;
}
.profile__attrs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin: 24px 0 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
.profile__attrs dt {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.profile__attrs dd {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}
.profile__cta {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    .profile__grid { grid-template-columns: 1fr; }
    .profile__media { max-width: 440px; margin: 0 auto; }
}

/* === Filter bar (profiles grid) === */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.filter-bar__label {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    margin-bottom: 4px;
}

/* === Blog === */

.post {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.post__hero {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--line);
}
.post__hero img { width: 100%; height: 100%; object-fit: cover; }
.post__meta {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 14px;
}
.post__body h2 { margin-top: 1.5em; }
.post__body img { margin: 24px 0; border-radius: var(--radius-sm); }
.post__body blockquote {
    border-left: 3px solid var(--pink);
    padding-left: 16px;
    color: var(--pink-soft);
    margin: 24px 0;
    font-style: italic;
}

.blog-grid .card__body { padding: 16px 18px; }
.blog-grid .card__name { font-size: 17px; }

/* === Stories === */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.story-tile {
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(var(--card), var(--card)) padding-box,
                var(--grad-main) border-box;
    position: relative;
    cursor: pointer;
    transition: transform var(--t);
}
.story-tile:hover { transform: translateY(-4px); }
.story-tile img {
    width: 100%; height: 100%; object-fit: cover;
}
.story-tile__caption {
    position: absolute;
    left: 10px; right: 10px; bottom: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.story-tile__new {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--pink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    box-shadow: var(--glow-soft);
}

/* Single story viewer */
.story-viewer {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.story-frame img {
    width: 100%; height: 100%; object-fit: cover;
}
.story-progress {
    position: absolute;
    top: 10px; left: 10px; right: 10px;
    display: flex;
    gap: 4px;
    z-index: 5;
}
.story-progress span {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}
.story-progress span.active::after {
    content: '';
    display: block;
    height: 100%;
    background: #fff;
    width: 100%;
}

/* === Internal-link cluster === */

.related {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin: 40px 0;
}
.related h3 { margin: 0 0 14px; font-size: 18px; }
.related__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.related__links a {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--text-mute);
    font-size: 13px;
    transition: all var(--t-fast);
}
.related__links a:hover {
    background: rgba(255, 45, 149, 0.12);
    color: var(--pink-soft);
    border-color: var(--pink);
}
