/* Genel üye profil sayfası — forum-user.php (.sbk-user-public) */

.sbk-user-public {
    --up-bg: #f8fafc;
    --up-surface: #ffffff;
    --up-line: #e2e8f0;
    --up-text: #0f172a;
    --up-muted: #64748b;
    --up-accent: #2563eb;
    --up-accent-soft: #eff6ff;
    --up-radius: 14px;
    --up-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 0 0 2.5rem;
    background: var(--up-bg);
}

.sbk-user-public .containers {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background: transparent;
}

@media (min-width: 768px) {
    .sbk-user-public .containers {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.sbk-user-public .profile-header {
    background: var(--up-surface);
    border-radius: 0 0 var(--up-radius) var(--up-radius);
    box-shadow: var(--up-shadow);
    overflow: hidden;
    border: 1px solid var(--up-line);
    border-top: none;
}

.sbk-user-public .profile-cover {
    position: relative;
    height: clamp(160px, 28vw, 280px);
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbk-user-public .profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 55%);
    pointer-events: none;
}

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

.sbk-user-public .profile-cover .imageno {
    position: relative;
    z-index: 1;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    letter-spacing: -0.03em;
}

.sbk-user-public .profile-info {
    padding: 1rem 1.25rem 1.35rem;
    gap: 1rem;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .sbk-user-public .profile-info {
        padding: 1.25rem 1.75rem 1.5rem;
    }
}

.sbk-user-public .profile-picture {
    width: 112px;
    height: 112px;
    margin-top: -56px;
    border: 4px solid var(--up-surface);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
    position: relative;
    z-index: 2;
}

.sbk-user-public .profile-details {
    width: calc(100% - 128px);
    align-items: flex-start;
    gap: 1rem;
}

.sbk-user-public .profile-main-info {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.sbk-user-public .profile-main-info > div:first-child {
    width: 100%;
}

.sbk-user-public .profile-name {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--up-text);
}

.sbk-user-public__realname {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--up-muted);
}

.sbk-user-public .profile-main-info small {
    display: block;
    margin-top: 0.25rem;
    color: var(--up-muted);
    font-size: 0.875rem;
}

.sbk-user-public .social-media-icons {
    margin-top: 0.75rem;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.sbk-user-public .social-media-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    margin-right: 0;
    color: var(--up-muted);
    background: var(--up-bg);
    border: 1px solid var(--up-line);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sbk-user-public .social-media-icons a:hover {
    color: var(--up-accent);
    background: var(--up-accent-soft);
    border-color: #bfdbfe;
}

.sbk-user-public .profile-actions {
    align-items: stretch;
    min-width: 0;
}

.sbk-user-public .action-btn.follow-btn,
.sbk-user-public .profile-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
}

.sbk-user-public .profile-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sbk-user-public .profile-stats .followers,
.sbk-user-public .profile-stats .following {
    margin-left: 0;
    padding: 0.5rem 0.85rem;
    background: var(--up-bg);
    border: 1px solid var(--up-line);
    border-radius: 10px;
    min-width: 5.5rem;
}

.sbk-user-public .profile-stats span {
    display: block;
    font-size: 0.75rem;
    color: var(--up-muted);
}

.sbk-user-public .profile-stats span b {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sbk-user-public .profile-stats .followers span:last-child,
.sbk-user-public .profile-stats .following span:last-child {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--up-text);
    margin-top: 0.15rem;
}

/* Sekmeler */
.sbk-user-public .profile-nav {
    background: var(--up-surface);
    border: 1px solid var(--up-line);
    border-radius: var(--up-radius);
    margin: 1rem auto 0;
    max-width: 1120px;
    padding: 0.5rem 0.35rem;
    box-shadow: var(--up-shadow);
}

.sbk-user-public .profile-nav ul {
    padding: 0 0.25rem;
    gap: 0.25rem;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: flex-start;
}

.sbk-user-public .profile-nav li.tab-link {
    margin: 0;
    padding: 0.5rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--up-muted);
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.sbk-user-public .profile-nav li.tab-link:hover {
    color: var(--up-text);
    background: var(--up-bg);
}

.sbk-user-public .profile-nav .tab-link.active {
    color: var(--up-accent);
    background: var(--up-accent-soft);
    border-color: #bfdbfe;
    border-bottom: none;
    box-shadow: none;
}

/* İçerik alanı */
.sbk-user-public .profile-content {
    margin: 1rem auto 0;
    max-width: 1120px;
    padding: 1.35rem 1.25rem 1.75rem;
    background: var(--up-surface);
    border: 1px solid var(--up-line);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
}

@media (min-width: 768px) {
    .sbk-user-public .profile-content {
        padding: 1.75rem 2rem 2rem;
    }
}

.sbk-user-public .tab-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--up-text);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--up-line);
}

.sbk-user-public #profile-summary.tab-content,
.sbk-user-public .tab-content#profile-summary {
    line-height: 1.65;
    color: #334155;
    font-size: 0.9375rem;
}

.sbk-user-public .tab-content#profile-summary img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sbk-user-public .ilan-listesi {
    gap: 1rem;
}

.sbk-user-public .ilan-karti {
    border-radius: 12px;
    border: 1px solid var(--up-line);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sbk-user-public .ilan-karti:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.sbk-user-public iframe[title=""],
.sbk-user-public .profile-content iframe {
    border: none;
    border-radius: 12px;
    margin-top: 0.75rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* İçerik kartları grid */
.sbk-user-public .grid-wrapper {
    gap: 1rem;
}

@media (min-width: 576px) {
    .sbk-user-public .grid-wrapper {
        gap: 1.25rem;
    }
}

/* Mağaza galerisi */
.sbk-user-public .gallery-hover-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.sbk-user-public .gallery-hover-wrapper img {
    transition: transform 0.35s ease;
}

.sbk-user-public .gallery-hover-wrapper:hover img {
    transform: scale(1.05);
}

.sbk-user-public .hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
    border-radius: 10px;
}

.sbk-user-public .gallery-hover-wrapper:hover .hover-overlay {
    opacity: 1;
}

.sbk-user-public .gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.sbk-user-public .gallery-card {
    border-radius: 10px;
}

/* Mobil */
@media (max-width: 768px) {
    .sbk-user-public .profile-info {
        flex-direction: column;
        align-items: center;
    }

    .sbk-user-public .profile-details {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sbk-user-public .profile-main-info {
        align-items: center;
        text-align: center;
    }

    .sbk-user-public .social-media-icons {
        justify-content: center;
    }

    .sbk-user-public .profile-stats {
        justify-content: center;
    }

    .sbk-user-public .profile-picture {
        margin-top: -48px;
    }
}
