/* HC Galeri · Profil sayaçları ve bilgi sekmeleri */

.profile-stat-navigation {
    gap: 7px !important;
}

.profile-stat-item {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 4px;
    min-height: 37px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--muted);
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.profile-stat-item strong {
    color: var(--text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.profile-stat-item small {
    color: inherit;
    font-size: 9px;
    line-height: 1.15;
}

.profile-stat-link {
    cursor: pointer;
}

.profile-stat-link:hover,
.profile-stat-link:focus-visible,
.profile-stat-link.is-active {
    border-color:
        color-mix(in srgb, var(--primary) 34%, var(--border));
    background:
        color-mix(in srgb, var(--primary-soft) 60%, var(--surface));
    color: var(--primary);
    outline: none;
    transform: translateY(-1px);
}

.profile-stat-link.is-active strong {
    color: var(--primary);
}

.profile-stat-joined {
    grid-template-columns: 13px auto;
}

.profile-stat-joined .icon {
    width: 13px;
    height: 13px;
    color: var(--primary);
}

.profile-insights-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px !important;
}

.profile-insights-tabs a {
    min-width: 0;
    padding: 7px 8px !important;
    font-size: 10.5px !important;
}

.profile-insights-tabs a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-insights-tabs a b {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    min-height: 20px;
    padding: 2px 5px;
    border-radius: 7px;
    background:
        color-mix(in srgb, currentColor 9%, transparent);
    font-size: 9px;
}

.profile-insights-head {
    align-items: center;
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.profile-insights-head h2 {
    margin-top: 2px;
    font-size: clamp(16px, 2vw, 20px);
}

.profile-insights-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-insights-page-size {
    display: flex;
    align-items: center;
    gap: 7px;
}

.profile-insights-page-size label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 720;
}

.profile-insights-page-size .select {
    width: 76px;
    min-height: 34px;
}

.profile-download-grid {
    align-items: stretch;
}

.profile-download-item {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.profile-download-item .gallery-card {
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.profile-download-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 9px;
    border-top: 1px solid var(--border);
    background:
        color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}

.profile-download-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: 8.5px;
    overflow-wrap: anywhere;
}

.profile-download-meta .icon {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    color: var(--primary);
}

.profile-download-meta strong {
    color: var(--text);
    font-size: 10px;
}

.profile-people-list {
    display: grid;
    gap: 7px;
}

.profile-person-card {
    display: grid;
    grid-template-columns:
        48px
        minmax(160px, 1.25fr)
        minmax(190px, .85fr)
        auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        border-color .16s ease,
        background .16s ease,
        transform .16s ease;
}

.profile-person-card:nth-child(even) {
    background:
        color-mix(in srgb, var(--surface-2) 38%, var(--surface));
}

.profile-person-card:hover {
    border-color:
        color-mix(in srgb, var(--primary) 25%, var(--border));
    transform: translateY(-1px);
}

.profile-person-avatar {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    box-shadow: none;
}

.profile-person-identity {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.profile-person-identity strong,
.profile-person-identity span,
.profile-person-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-person-identity strong {
    color: var(--text);
    font-size: 11.5px;
}

.profile-person-identity span {
    color: var(--primary);
    font-size: 9px;
    font-weight: 720;
}

.profile-person-identity small {
    color: var(--muted);
    font-size: 8px;
}

.profile-person-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.profile-person-metrics > span {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 39px;
    padding: 5px 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
}

.profile-person-metrics .icon {
    grid-row: 1 / 3;
    display: block;
    width: 15px;
    height: 15px;
    margin: auto;
    color: var(--primary);
}

.profile-person-metrics strong,
.profile-person-metrics small {
    min-width: 0;
}

.profile-person-metrics strong {
    color: var(--text);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.profile-person-metrics small {
    color: var(--muted);
    font-size: 7.5px;
}

.profile-person-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.profile-person-actions .button {
    justify-content: center;
    min-width: 94px;
}

@media (max-width: 980px) {
    .profile-insights-tabs {
        grid-auto-flow: column;
        grid-auto-columns: 170px;
        grid-template-columns: none;
        overflow-x: auto;
    }

    .profile-person-card {
        grid-template-columns:
            44px
            minmax(140px, 1fr)
            minmax(170px, .85fr);
    }

    .profile-person-avatar {
        width: 44px;
        height: 44px;
    }

    .profile-person-actions {
        grid-column: 2 / -1;
    }
}

@media (max-width: 700px) {
    .profile-stat-navigation {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .profile-stat-item {
        justify-content: center;
        min-width: 0;
    }

    .profile-insights-head {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-insights-page-size {
        justify-content: space-between;
        width: 100%;
    }

    .profile-person-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 7px;
        padding: 8px;
    }

    .profile-person-avatar {
        width: 42px;
        height: 42px;
    }

    .profile-person-metrics,
    .profile-person-actions {
        grid-column: 1 / -1;
    }

    .profile-person-actions,
    .profile-person-actions .button {
        width: 100%;
    }

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

@media (max-width: 430px) {
    .profile-stat-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px !important;
    }

    .profile-stat-item {
        min-height: 34px;
        padding: 5px 7px;
    }

    .profile-insights-tabs {
        grid-auto-columns: 150px;
    }

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

    .profile-person-metrics > span {
        grid-template-columns: 26px minmax(0, 1fr);
        min-height: 36px;
    }
}

/* HC-PROFILE-HERO-THREE-COLUMN-V1.1 · flat / cardsiz */
.profile-hero.profile-hero-organized {
    padding: 20px 0;
    background: transparent;
}

.profile-hero-organized .profile-hero-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(430px, 1.52fr)
        minmax(230px, .82fr);
    align-items: stretch;
    gap: 0;
}

.profile-hero-organized .profile-hero-panel {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    padding: 3px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-hero-organized .profile-hero-panel:first-child {
    padding-left: 0;
}

.profile-hero-organized .profile-hero-panel:last-child {
    padding-right: 0;
}

.profile-hero-organized .profile-hero-panel + .profile-hero-panel {
    border-left: 1px solid
        color-mix(in srgb, var(--border) 78%, transparent);
}

.profile-hero-organized .profile-panel-label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}

.profile-hero-organized .profile-panel-label::after {
    content: "";
    min-width: 18px;
    height: 1px;
    flex: 1 1 auto;
    background:
        color-mix(in srgb, var(--border) 70%, transparent);
}

.profile-hero-organized .profile-panel-label .icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.profile-hero-organized .profile-identity-main {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.profile-hero-organized .profile-identity-main .avatar-large {
    width: 68px;
    height: 68px;
    border: 1px solid
        color-mix(in srgb, var(--primary) 16%, var(--border));
    border-radius: 18px;
    font-size: 22px;
    box-shadow: none;
}

.profile-hero-organized .profile-copy {
    min-width: 0;
}

.profile-hero-organized .profile-copy h1 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(20px, 2.2vw, 27px);
    letter-spacing: -.7px;
    line-height: 1.08;
    text-overflow: ellipsis;
}

.profile-hero-organized .profile-identity-handle {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--primary);
    font-size: 11px;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero-organized .profile-identity-bio {
    display: -webkit-box;
    max-width: none;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.profile-hero-organized .profile-website-link {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
}

.profile-hero-organized .profile-member-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--muted);
}

.profile-hero-organized .profile-member-date > .icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.profile-hero-organized .profile-member-date > span {
    display: grid;
    gap: 1px;
}

.profile-hero-organized .profile-member-date small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.profile-hero-organized .profile-member-date strong {
    color: var(--text);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.profile-hero-organized .profile-metrics-panel .profile-stat-navigation {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 !important;
    width: 100%;
    margin-top: 0;
}

.profile-hero-organized .profile-metrics-panel .profile-stat-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 3px;
    min-width: 0;
    min-height: 57px;
    padding: 9px 10px 9px 12px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-hero-organized .profile-metrics-panel .profile-stat-item::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 1px;
    border-radius: 0;
    background:
        color-mix(in srgb, var(--primary) 42%, var(--border));
}

.profile-hero-organized .profile-metrics-panel .profile-stat-item strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 820;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero-organized .profile-metrics-panel .profile-stat-item small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero-organized .profile-metrics-panel .profile-stat-link:hover,
.profile-hero-organized .profile-metrics-panel .profile-stat-link:focus-visible,
.profile-hero-organized .profile-metrics-panel .profile-stat-link.is-active {
    background:
        color-mix(in srgb, var(--primary-soft) 24%, transparent);
    color: var(--primary);
    transform: none;
}

.profile-hero-organized .profile-metrics-panel .profile-stat-link.is-active::before {
    width: 2px;
    background: var(--primary);
}

.profile-hero-organized .profile-actions-panel {
    background: transparent;
}

.profile-hero-organized .profile-action-list {
    display: grid;
    align-content: start;
    gap: 7px;
    width: 100%;
    margin: 0;
}

.profile-hero-organized .profile-action-list > *,
.profile-hero-organized .profile-action-list > form,
.profile-hero-organized .profile-action-list > details {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.profile-hero-organized .profile-action-list .button,
.profile-hero-organized .profile-action-list > .button,
.profile-hero-organized .profile-action-list form > .button,
.profile-hero-organized .profile-action-list .social-safety-actions-menu > summary {
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 10px;
    text-align: left;
}

.profile-hero-organized .profile-action-list .button .icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.profile-hero-organized .profile-action-list .button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero-organized .profile-action-list .social-safety-actions-menu {
    display: block;
}

.profile-hero-organized .profile-action-list .social-safety-actions-popover {
    right: 0;
    left: auto;
    width: max(100%, 210px);
}

@media (max-width: 1100px) {
    .profile-hero-organized .profile-hero-inner {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    }

    .profile-hero-organized .profile-actions-panel {
        grid-column: 1 / -1;
        margin-top: 15px;
        padding: 15px 0 0;
        border-top: 1px solid
            color-mix(in srgb, var(--border) 78%, transparent);
        border-left: 0;
    }

    .profile-hero-organized .profile-action-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .profile-hero.profile-hero-organized {
        padding: 12px 0;
    }

    .profile-hero-organized .profile-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .profile-hero-organized .profile-hero-panel,
    .profile-hero-organized .profile-hero-panel:first-child,
    .profile-hero-organized .profile-hero-panel:last-child {
        padding: 14px 0;
        border-left: 0;
    }

    .profile-hero-organized .profile-hero-panel:first-child {
        padding-top: 0;
    }

    .profile-hero-organized .profile-hero-panel + .profile-hero-panel,
    .profile-hero-organized .profile-actions-panel {
        margin-top: 0;
        border-top: 1px solid
            color-mix(in srgb, var(--border) 78%, transparent);
        border-left: 0;
    }

    .profile-hero-organized .profile-actions-panel {
        grid-column: auto;
    }

    .profile-hero-organized .profile-action-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .profile-hero-organized .profile-hero-panel,
    .profile-hero-organized .profile-hero-panel:first-child,
    .profile-hero-organized .profile-hero-panel:last-child {
        padding-right: 0;
        padding-left: 0;
        border-radius: 0;
    }

    .profile-hero-organized .profile-identity-main {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-hero-organized .profile-identity-main .avatar-large {
        width: 56px;
        height: 56px;
        border-radius: 15px;
        font-size: 18px;
    }

    .profile-hero-organized .profile-metrics-panel .profile-stat-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 !important;
    }

    .profile-hero-organized .profile-metrics-panel .profile-stat-item {
        min-height: 52px;
    }

    .profile-hero-organized .profile-action-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
