/* HC Galeri · Profil Vitrini V1.0.1 */
.profile-showcase-section {
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--surface-2) 68%, transparent),
            transparent
        );
}

.profile-showcase-section img {
    display: block;
    max-width: 100%;
}

.profile-showcase-shell,
.profile-showcase-content {
    display: grid;
    gap: 13px;
    min-width: 0;
}

.profile-showcase-cover {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(118px, 15vw, 220px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

.profile-showcase-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .28s ease;
}

.profile-showcase-cover:hover img,
.profile-showcase-cover:focus-visible img {
    transform: scale(1.015);
}

.profile-showcase-cover > span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .50);
    font-size: 10px;
    font-weight: 780;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.profile-showcase-cover > span .icon {
    width: 13px;
    height: 13px;
}

.profile-showcase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-showcase-head h2 {
    margin: 3px 0 0;
    font-size: clamp(18px, 2vw, 24px);
}

.profile-showcase-head p {
    max-width: 760px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.profile-showcase-links,
.profile-showcase-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-showcase-links a,
.profile-showcase-interests a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    font-size: 10px;
    line-height: 1;
}

.profile-showcase-links a:hover,
.profile-showcase-interests a:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.profile-showcase-links .icon,
.profile-showcase-interests .icon {
    width: 12px;
    height: 12px;
}

.profile-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 11px;
}

.profile-showcase-card {
    display: grid;
    align-content: start;
    gap: 9px;
    min-width: 0;
    padding: 11px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.profile-showcase-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profile-showcase-card-head > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: var(--primary);
    background: var(--primary-soft);
}

.profile-showcase-card-head > span .icon {
    width: 15px;
    height: 15px;
}

.profile-showcase-card-head > div {
    min-width: 0;
}

.profile-showcase-card-head strong,
.profile-showcase-card-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-showcase-card-head strong {
    font-size: 12px;
}

.profile-showcase-card-head small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

/* Sabitlenen görsel, normal Keşfet kartının tam boyuna çıkmasın. */
.profile-showcase-image-card {
    width: min(100%, 315px);
    min-width: 0;
}

.profile-showcase-image-card .gallery-card {
    width: 100%;
    max-width: 315px;
    margin: 0;
}

.profile-showcase-image-card .gallery-card-media-shell {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 12px !important;
}

.profile-showcase-image-card .gallery-card-media,
.profile-showcase-image-card .gallery-card-media img {
    width: 100%;
    height: 100%;
}

.profile-showcase-image-card .gallery-card-media {
    border-radius: 12px !important;
}

.profile-showcase-image-card .gallery-card-media img {
    object-fit: cover;
}

.profile-showcase-image-card .card-side-tools {
    --card-tools-hover-delay: 250ms;
}

.profile-showcase-featured-collection {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 92px;
    padding: 11px;
    overflow: hidden;
    border: 1px dashed var(--border);
    border-radius: 13px;
    background: var(--surface-2);
}

.profile-showcase-featured-collection > .icon-wrap {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.profile-showcase-featured-collection > div {
    min-width: 0;
}

.profile-showcase-featured-collection h3 {
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-showcase-featured-collection p {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-showcase-mini-grid {
    display: grid;
    gap: 6px;
}

.profile-showcase-mini-grid a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 5px;
    border-radius: 10px;
    transition: background .15s ease;
}

.profile-showcase-mini-grid a:hover {
    background: var(--surface-2);
}

.profile-showcase-mini-grid img {
    width: 70px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
}

.profile-showcase-mini-grid span,
.profile-showcase-mini-grid small {
    display: block;
    min-width: 0;
}

.profile-showcase-mini-grid span {
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-showcase-mini-grid small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
}

.profile-showcase-settings-form {
    display: grid;
    gap: 16px;
}

.profile-showcase-interest-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-showcase-interest-picker fieldset {
    display: grid;
    gap: 6px;
    max-height: 330px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.profile-showcase-interest-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 9px;
    background: var(--surface-2);
}

.profile-showcase-interest-picker span,
.profile-showcase-interest-picker small {
    display: block;
}

.profile-showcase-interest-picker small {
    color: var(--muted);
}

.profile-showcase-link-rows {
    display: grid;
    gap: 8px;
}

.profile-showcase-link-rows > div {
    display: grid;
    grid-template-columns: .6fr 1.4fr .7fr;
    gap: 8px;
}

@media (max-width: 980px) {
    .profile-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-showcase-top-card {
        grid-column: 1 / -1;
    }

    .profile-showcase-top-card .profile-showcase-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .profile-showcase-cover {
        height: clamp(108px, 28vw, 170px);
        border-radius: 14px;
    }

    .profile-showcase-head {
        flex-direction: column;
    }

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

    .profile-showcase-top-card {
        grid-column: auto;
    }

    .profile-showcase-image-card {
        width: min(100%, 360px);
    }

    .profile-showcase-image-card .gallery-card {
        max-width: 360px;
    }

    .profile-showcase-top-card .profile-showcase-mini-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-showcase-interest-picker {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .profile-showcase-section {
        padding: 12px 0 14px;
    }

    .profile-showcase-card {
        padding: 9px;
        border-radius: 13px;
    }

    .profile-showcase-link-rows > div {
        grid-template-columns: minmax(0, 1fr);
    }
}
