﻿/* Premium Designer Profile Styles */

/* Light theme — sayfa arka planı */
.profile-main,
.main-content.profile-main {
    background: #f8fafc;
}

.designer-page-wrapper {
    background: transparent;
    padding-bottom: 80px;
    animation: fadeIn 0.5s ease;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ── Ambient Background Orbs ── */
.designer-page-wrapper::before,
.designer-page-wrapper::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    animation: designer-orb-float 8s ease-in-out infinite;
}

.designer-page-wrapper::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    top: -5%;
    left: 15%;
}

.designer-page-wrapper::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    bottom: -5%;
    right: 10%;
    animation-delay: -4s;
}

body.dark-theme .designer-page-wrapper::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

body.dark-theme .designer-page-wrapper::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

@keyframes designer-orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

body.sidebar-collapsed .designer-page-wrapper {
    margin-left: 64px;
}

@media (max-width: 768px) {
    .designer-page-wrapper {
        margin-left: 0;
    }
}

/* Prevent global style from double-margining the grid inside our handled wrapper */
.designer-products-container .products-grid {
    margin-left: 0 !important;
    margin-top: 20px !important;
}

.designer-cover-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
}

.designer-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #4c1d95 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

.designer-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z" /%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.designer-content-container,
.designer-profile-container {
    padding: 0 40px;
    max-width: 1000px;
    margin: -120px auto 0;
    position: relative;
    z-index: 10;
}

.designer-profile-card {
    /* Glassmorphism Light Mode */
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.designer-profile-card.designer-page-card {
    margin-bottom: 60px;
}

.designer-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.designer-avatar-wrapper {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
}

.designer-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #d946ef, #f43f5e);
    z-index: -1;
    opacity: 0.8;
}

.designer-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f8fafc;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 800;
    color: #cbd5e1;
}

.designer-info {
    flex: 1;
}

.designer-name {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.designer-page-card .designer-name {
    margin: 0 0 12px 0;
}

.user-handle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.verified-badge {
    color: #3b82f6;
    font-size: 22px;
}

.designer-bio {
    font-size: 17px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 600px;
    font-weight: 400;
}

.designer-actions-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.designer-stat-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 12px 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.designer-stat-pill i {
    font-size: 24px;
    color: #6366f1;
    background: #e0e7ff;
    padding: 12px;
    border-radius: 14px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.designer-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    height: 64px;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.share-btn {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.05);
}

.share-btn i {
    font-size: 18px;
    color: #64748b;
}

.like-btn {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236, 72, 153, .35);
}

.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, .5);
}

.like-btn.liked {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.like-btn i {
    font-size: 18px;
}

/* WIDE PRODUCTS SECTION */
.designer-products-container {
    max-width: 1700px;
    margin: 20px auto 0;
    padding: 0 50px;
}

.designer-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.designer-products-section {
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    position: relative;
    padding-left: 20px;
    letter-spacing: -0.01em;
}

.designer-products-section .section-title {
    font-size: 26px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 32px;
    background: linear-gradient(to bottom, #6366f1, #a855f7);
    border-radius: 6px;
}

.designer-products-section .section-title::before {
    height: 28px;
}

.products-count-badge {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.wide-products-grid {
    width: 100%;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: #64748b;
    font-weight: 500;
}

.empty-products-state {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.empty-products-state i {
    font-size: 64px;
    margin-bottom: 24px;
    color: #cbd5e1;
}

.empty-products-state p {
    font-size: 18px;
    font-weight: 500;
}

.modern-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e7ff;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .designer-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 24px;
        margin-bottom: 40px;
    }

    .designer-name {
        justify-content: center;
    }

    .designer-bio {
        margin: 0 auto 24px;
    }

    .designer-actions-stats {
        flex-direction: column;
        gap: 16px;
    }

    .designer-info {
        width: 100%;
    }

    .designer-stat-pill {
        width: 100%;
        justify-content: center;
    }

    .designer-action-btn {
        width: 100%;
        justify-content: center;
    }

    .designer-content-container,
    .designer-profile-container {
        padding: 0 20px;
        margin-top: -80px;
    }

    .designer-cover-wrapper {
        border-radius: 0;
    }

    .designer-products-section {
        padding: 24px;
        border-radius: 20px;
    }

    .designer-products-container {
        padding: 0 20px;
    }
}

/* =========================================
   DARK THEME — PROJENİN KENDİ RENKLERİYLE
   body bg   : #181818
   kart bg   : #252525
   border    : #2a2a2a
   hover bg  : #374151
   text pri  : #f9fafb
   text sec  : #9ca3af
   accent : #10b981
========================================= */

/* Sayfa genel arka planı */
body.dark-theme .profile-main,
body.dark-theme .main-content.profile-main,
body.dark-theme .designer-page-wrapper {
    background: #181818 !important;
}

/* Ürünler alanının arka planı */
body.dark-theme .designer-products-container {
    background: transparent;
}

/* Ürün listesi separator */
body.dark-theme .designer-products-header {
    border-bottom-color: #2a2a2a;
}

/* Section title metnin arka planını temizle */
body.dark-theme .section-title-wrapper h2,
body.dark-theme .section-title {
    background: transparent;
}




/* Profil kartı */
body.dark-theme .designer-profile-card {
    /* Glassmorphism Dark Mode */
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 16px 32px rgba(0, 0, 0, 0.2);
}

body.dark-theme .designer-profile-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Yazılar */
body.dark-theme .designer-name,
body.dark-theme .stat-value,
body.dark-theme .section-title {
    color: #f9fafb;
}

body.dark-theme .user-handle,
body.dark-theme .designer-bio,
body.dark-theme .stat-label,
body.dark-theme .loading-state {
    color: #9ca3af;
}

/* İstatistik pilleri */
body.dark-theme .designer-stat-pill {
    background: #323232;
    border-color: #2a2a2a;
}

body.dark-theme .designer-stat-pill i {
    background: #1f2937;
    color: #10b981;
}

/* Paylaş butonu */
body.dark-theme .share-btn {
    background: #323232;
    border-color: #2a2a2a;
    color: #f9fafb;
}

body.dark-theme .share-btn:hover {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-theme .share-btn i {
    color: #9ca3af;
}

/* Boş durum */
body.dark-theme .empty-products-state {
    background: #252525;
    border: 1px dashed #2a2a2a;
    border-radius: 20px;
}

body.dark-theme .empty-products-state p,
body.dark-theme .empty-products-state i {
    color: #9ca3af;
}

/* Yükleniyor */
body.dark-theme .loading-state p {
    color: #9ca3af;
}

body.dark-theme .modern-spinner {
    border-color: #374151;
    border-top-color: #10b981;
}

/* Avatar */
body.dark-theme .designer-avatar-wrapper {
    background: #252525;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

body.dark-theme .designer-avatar-img {
    background: #2a2a2a;
    border-color: #252525;
}

body.dark-theme .avatar-placeholder {
    background: #2a2a2a;
    border-color: #252525;
    color: #4b5563;
}

body.dark-theme .designer-avatar-wrapper::after {
    opacity: 0.5;
}

/* Ürünler bölümü paneli */
body.dark-theme .designer-products-section {
    background: #252525;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.dark-theme .designer-products-header,
body.dark-theme .section-header {
    border-bottom-color: #2a2a2a;
}

/* Ürün sayısı rozeti */
body.dark-theme .products-count-badge {
    background: #1f2937;
    color: #10b981;
}

/* Ürün kartları — style.css'deki kurallarla uyumlu */
body.dark-theme .product-card {
    background: #252525;
    border-color: #2a2a2a;
}

body.dark-theme .product-card:hover {
    border-color: #2a2a2a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .product-details h3 {
    color: #f9fafb;
}

body.dark-theme .product-details p {
    color: #9ca3af;
}

/* ===================================================
   DESIGNER PROFILE SKELETON
   =================================================== */
.designer-skeleton-overlay {
    position: absolute;
    inset: 0;
    background: #f8fafc;
    z-index: 50;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
}

body.dark-theme .designer-skeleton-overlay {
    background: #181818;
}

.csk-cover {
    height: 320px;
    width: 100%;
    background: linear-gradient(90deg, #e2e8f0 25%, #d1d9e6 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: designerSkeleton 1.5s ease-in-out infinite;
}

body.dark-theme .csk-cover {
    background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
    background-size: 400% 100%;
}

.csk-profile-card {
    height: 250px;
    max-width: 1000px;
    width: calc(100% - 80px);
    /* Padding compensation */
    margin: -120px auto 40px;
    border-radius: 28px;
    background: linear-gradient(90deg, #e2e8f0 25%, #d1d9e6 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: designerSkeleton 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

body.dark-theme .csk-profile-card {
    background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
    background-size: 400% 100%;
}

.csk-products {
    max-width: 1000px;
    width: calc(100% - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.csk-box {
    border-radius: 14px;
    background: linear-gradient(90deg, #e2e8f0 25%, #d1d9e6 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: designerSkeleton 1.5s ease-in-out infinite;
    height: 320px;
    width: 100%;
}

body.dark-theme .csk-box {
    background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
    background-size: 400% 100%;
}

@keyframes designerSkeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}