/* ==========================================================================
   Haru Live
   User Profile Show
   ========================================================================== */

.user-profile-show {
    --ups-bg:#f5f6f8;
    --ups-card:#fff;
    --ups-text:#111827;
    --ups-soft:#475569;
    --ups-muted:#94a3b8;
    --ups-border:#e5e7eb;
    --ups-border-soft:#eef2f7;
    --ups-blue:#2563eb;
    --ups-indigo:#4f46e5;
    --ups-shadow:0 1px 2px rgba(15,23,42,.03),0 4px 14px rgba(15,23,42,.035);
    width:100%;
    max-width:1200px;
    min-height:100vh;
    margin:0 auto;
    background:var(--ups-bg);
}

.user-profile-show *,
.user-profile-show *::before,
.user-profile-show *::after {
    box-sizing:border-box;
}

/* ==========================================================================
   PC - Hero
   ========================================================================== */

.user-profile-hero {
    position:relative;
    height:300px;
    overflow:hidden;
    background:linear-gradient(135deg,#312e81,#581c87);
}

.user-profile-hero__banner {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.user-profile-hero__overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(15,23,42,.62),rgba(15,23,42,.04) 68%);
}

.user-profile-hero__edit {
    z-index: 9;
    position:absolute;
    top:18px;
    right:24px;
    min-height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 13px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:999px;
    background:rgba(0,0,0,.30);
    backdrop-filter:blur(8px);
    font-size:11px;
    font-weight:700;
    color:#fff;
    text-decoration:none;
}

.user-profile-hero__edit:hover {
    background:rgba(0,0,0,.45);
}

.user-profile-hero__content {
    position:absolute;
    z-index:5;
    left:42px;
    right:42px;
    bottom:28px;
    display:flex;
    align-items:center;
    gap:18px;
}

.user-profile-hero__avatar {
    flex:0 0 auto;
    width:90px;
    height:90px;
    object-fit:cover;
    border:4px solid #fff;
    border-radius:22px;
    background:#fff;
    box-shadow:0 6px 20px rgba(15,23,42,.22);
}

.user-profile-hero__text {
    min-width:0;
}

.user-profile-hero__name {
    margin:0;
    overflow:hidden;
    font-size:28px;
    font-weight:800;
    line-height:1.25;
    letter-spacing:-.04em;
    color:#fff;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.user-profile-hero__intro {
    max-width:760px;
    margin:6px 0 0;
    display:-webkit-box;
    overflow:hidden;
    font-size:13px;
    line-height:1.55;
    color:rgba(255,255,255,.92);
    word-break:keep-all;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

/* ==========================================================================
   PC - Summary
   ========================================================================== */

.user-profile-summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    padding:15px 32px;
    border:1px solid var(--ups-border);
    border-top:0;
    background:#fff;
    box-shadow:var(--ups-shadow);
}

.user-profile-stats {
    display:grid;
    grid-template-columns:repeat(4,minmax(95px,1fr));
    gap:26px;
}

.user-profile-stat__label {
    display:block;
    font-size:10px;
    color:#94a3b8;
}

.user-profile-stat__value {
    display:block;
    margin-top:3px;
    font-size:15px;
    font-weight:800;
    color:#111827;
}

.user-profile-summary__actions {
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:7px;
}

.user-profile-summary__actions form {
    margin:0;
}

.user-profile-action {
    min-height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 12px;
    border-radius:8px;
    font-size:10px;
    font-weight:700;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
    cursor:pointer;
}

.user-profile-action--outline {
    border:1px solid #d1d5db;
    background:#fff;
    color:#475569;
}

.user-profile-action--outline:hover {
    background:#f8fafc;
}

.user-profile-action--primary {
    border:1px solid #4f46e5;
    background:#4f46e5;
    color:#fff;
}

.user-profile-action--primary:hover {
    background:#4338ca;
}

/* ==========================================================================
   PC - Main Layout
   ========================================================================== */

.user-profile-content {
    width:100%;
    max-width:1260px;
    margin:20px auto 0;
    padding:0 18px 40px;
}

.user-profile-layout {
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);
    gap:18px;
    align-items:start;
}

.user-profile-main,
.user-profile-side {
    display:flex;
    flex-direction:column;
    gap:16px;
    min-width:0;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.user-profile-section {
    border:1px solid var(--ups-border);
    border-radius:14px;
    background:#fff;
    box-shadow:var(--ups-shadow);
    overflow:hidden;
    margin-bottom:9px
}

.user-profile-section__header {
    padding:15px 17px;
    border-bottom:1px solid var(--ups-border-soft);
}

.user-profile-section__header--action {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}

.user-profile-section__title {
    margin:0;
    font-size:15px;
    font-weight:800;
    line-height:1.3;
    color:#111827;
}

.user-profile-section__description {
    margin:4px 0 0;
    font-size:10px;
    line-height:1.45;
    color:#64748b;
    word-break:keep-all;
}

.user-profile-section__more {
    flex:0 0 auto;
    margin-top:1px;
    font-size:12px;
    font-weight:700;
    color:#2563eb;
    text-decoration:none;
    white-space:nowrap;
}

.user-profile-section__more:hover {
    text-decoration:underline;
}

/* ==========================================================================
   Activity
   ========================================================================== */

.user-profile-activity-scroll {
    width:100%;
    padding:16px 18px 10px;
    overflow-x:auto;
    overflow-y:hidden;
}

.user-activities {
    min-width:max-content;
    display:flex;
    align-items:flex-start;
    gap:4px;
}

.user-activity-column {
    display:flex;
    flex-direction:column;
    gap:4px;
}

.user-activity-block {
    flex:0 0 auto;
    width:12px;
    height:12px;
    border-radius:2px;
    background:#ebedf0;
}

.pattern-0 { background:#ebedf0; }
.pattern-1 { background:#c6e48b; }
.pattern-2 { background:#7bc96f; }
.pattern-3 { background:#239a3b; }
.pattern-4 { background:#196127; }

.user-profile-activity-legend {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    padding:0 18px 14px;
    font-size:8px;
    color:#94a3b8;
}

/* ==========================================================================
   Social
   ========================================================================== */

.user-profile-social-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    padding:12px;
}

.user-profile-social-card {
    min-width:0;
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fff;
    color:inherit;
    text-decoration:none;
}

.user-profile-social-card:hover {
    border-color:#dbeafe;
    background:#f8fbff;
}

.user-profile-social-card__thumb {
    flex:0 0 auto;
    width:92px;
    height:68px;
    border-radius:8px;
    object-fit:cover;
}

.user-profile-social-card__thumb--empty {
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f1f5f9;
    font-size:8px;
    color:#94a3b8;
}

.user-profile-social-card__content {
    flex:1;
    min-width:0;
}

.user-profile-social-card__meta {
    overflow:hidden;
    font-size:12px;
    font-weight:700;
    color:#94a3b8;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.user-profile-social-card__meta span {
    color:#cbd5e1;
}

.user-profile-social-card__title {
    display:-webkit-box;
    margin-top:4px;
    overflow:hidden;
    font-size:10px;
    font-weight:800;
    line-height:1.4;
    color:#111827;
    word-break:keep-all;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.user-profile-social-card__date {
    margin-top:6px;
    font-size:9.5px;
    color:#94a3b8;
}

/* ==========================================================================
   Posts
   ========================================================================== */

.user-profile-post-list,
.user-profile-comment-list {
    padding:0 12px 12px;
}

.user-profile-post-item {
    display:block;
    padding:10px 3px;
    border-bottom:1px solid #eef2f7;
    color:inherit;
    text-decoration:none;
}

.user-profile-post-item:hover {
    background:#f8fafc;
}

.user-profile-post-item__title {
    overflow:hidden;
    font-size:12px;
    font-weight:800;
    line-height:1.4;
    color:#111827;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.user-profile-post-item__meta {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:3px;
    margin-top:3px;
    font-size:10px;
    color:#94a3b8;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.user-profile-comment-item {
    padding:10px 3px;
    border-bottom:1px solid #eef2f7;
}

.user-profile-comment-item__post {
    overflow:hidden;
    font-size:12px;
    color:#94a3b8;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.user-profile-comment-item__content {
    display:-webkit-box;
    margin-top:3px;
    overflow:hidden;
    font-size:9px;
    line-height:1.45;
    color:#334155;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.user-profile-comment-item__date {
    margin-top:3px;
    font-size:8px;
    color:#94a3b8;
}

/* ==========================================================================
   Empty
   ========================================================================== */

.user-profile-empty {
    min-height:115px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:12px;
    padding:18px;
    border:1px dashed #dbe1e8;
    border-radius:9px;
    font-size:12px;
    color:#94a3b8;
    text-align:center;
}

.user-profile-empty__action {
    min-height:30px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 9px;
    border:1px solid #bfdbfe;
    border-radius:7px;
    background:#fff;
    font-size:9px;
    font-weight:700;
    color:#2563eb;
    text-decoration:none;
}

.user-profile-list-empty {
    min-height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
    font-size:10px;
    color:#94a3b8;
    text-align:center;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media screen and (max-width:1100px) {
    .user-profile-content {
        max-width:100%;
    }

    .user-profile-layout {
        grid-template-columns:minmax(0,1fr);
    }

    .user-profile-side {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media screen and (max-width:640px) {
    .user-profile-show {
        max-width:100%;
        background:var(--ups-bg);
        overflow-x:hidden;
    }

    .user-profile-hero {
        height:165px;
    }

    .user-profile-hero__edit {
        top:8px;
        right:8px;
        min-height:28px;
        padding:4px 7px;
        border-radius:7px;
        font-size:6.5px;
    }

    .user-profile-hero__content {
        left:10px;
        right:10px;
        bottom:12px;
        gap:8px;
    }

    .user-profile-hero__avatar {
        width:58px;
        height:58px;
        border-width:3px;
        border-radius:12px;
    }

    .user-profile-hero__name {
        font-size:15px;
    }

    .user-profile-hero__intro {
        margin-top:3px;
        font-size:7.5px;
        line-height:1.45;
    }

    .user-profile-summary {
        display:block;
        padding:9px 8px;
        border-left:0;
        border-right:0;
    }

    .user-profile-stats {
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:5px;
    }

    .user-profile-stat {
        padding:6px 4px;
        border:1px solid #eef2f7;
        border-radius:7px;
        background:#f8fafc;
        text-align:center;
    }

    .user-profile-stat__label {
        font-size:9.8px;
    }

    .user-profile-stat__value {
        margin-top:2px;
        font-size:8.5px;
    }

    .user-profile-summary__actions {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:5px;
        width:100%;
        margin-top:8px;
    }

    .user-profile-summary__actions form,
    .user-profile-summary__actions .user-profile-action,
    .user-profile-summary__actions form button {
        width:100%;
    }

    .user-profile-action {
        min-height:31px;
        padding:5px 7px;
        border-radius:6px;
        font-size:7px;
    }

    .user-profile-content {
        max-width:100%;
        margin-top:8px;
        padding:0 6px 28px;
    }

    .user-profile-layout {
        display:block;
    }

    .user-profile-main,
    .user-profile-side {
        display:flex;
        flex-direction:column;
        gap:8px;
    }

    .user-profile-side {
        margin-top:8px;
    }

    .user-profile-section {
        border-radius:9px;
    }

    .user-profile-section__header {
        padding:9px;
    }

    .user-profile-section__title {
        font-size:11.5px;
    }

    .user-profile-section__description {
        margin-top:2px;
        font-size:9.5px;
    }

    .user-profile-section__more {
        font-size:6.5px;
    }

    .user-profile-activity-scroll {
        padding:9px;
        scrollbar-width:thin;
    }

    .user-activities {
        gap:3px;
    }

    .user-activity-column {
        gap:3px;
    }

    .user-activity-block {
        width:9px;
        height:9px;
    }

    .user-profile-activity-legend {
        gap:3px;
        padding:0 9px 9px;
        font-size:5.5px;
    }

    .user-profile-social-grid {
        grid-template-columns:minmax(0,1fr);
        gap:6px;
        padding:8px;
    }

    .user-profile-social-card {
        gap:7px;
        padding:7px;
        border-radius:8px;
    }

    .user-profile-social-card__thumb {
        width:72px;
        height:54px;
        border-radius:6px;
    }

    .user-profile-social-card__thumb--empty {
        font-size:6px;
    }

    .user-profile-social-card__meta {
        font-size:5.5px;
    }

    .user-profile-social-card__title {
        margin-top:2px;
        font-size:9.5px;
    }

    .user-profile-social-card__date {
        margin-top:3px;
        font-size:7.5px;
    }

    .user-profile-post-list,
    .user-profile-comment-list {
        padding:0 8px 8px;
    }

    .user-profile-post-item,
    .user-profile-comment-item {
        padding:8px 2px;
    }

    .user-profile-post-item__title {
        font-size:10px;
    }

    .user-profile-post-item__meta {
        margin-top:2px;
        font-size:5.5px;
    }

    .user-profile-comment-item__post {
        font-size:12px;
    }

    .user-profile-comment-item__content {
        margin-top:2px;
        font-size:10px;
    }

    .user-profile-comment-item__date {
        margin-top:2px;
        font-size:5.5px;
    }

    .user-profile-empty {
        min-height:95px;
        gap:6px;
        margin:8px;
        padding:14px 8px;
        border-radius:7px;
        font-size:6.5px;
    }

    .user-profile-list-empty {
        min-height:70px;
        padding:10px;
        font-size:6.5px;
    }
}

@media screen and (max-width:390px) {
    .user-profile-summary__actions {
        grid-template-columns:minmax(0,1fr);
    }
}

@media screen and (max-width:350px) {
    .user-profile-stats {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .user-profile-section__header--action {
        display:grid;
        grid-template-columns:minmax(0,1fr);
    }

    .user-profile-section__more {
        justify-self:start;
    }
}

.user-profile-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.user-profile-recent-grid .user-profile-section {
    margin: 0;
    min-width: 0;
}

@media screen and (max-width: 640px) {
    .user-profile-recent-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}