/* ============================================================
   PROFILE — Premium editorial profile page
   ============================================================ */

.profile-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px 56px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ============================================================
   HERO COVER
   ============================================================ */
.profile-hero {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: 22px;
    overflow: hidden;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 32px rgba(10, 10, 10, 0.12);
}

.profile-hero--empty {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.1) 65%,
        rgba(0, 0, 0, 0) 100%);
}

.profile-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
    min-height: 280px;
}

@media (max-width: 720px) {
    .profile-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
    }
}

.profile-hero-avatar {
    position: relative;
    width: 132px;
    height: 132px;
    min-width: 132px;
    border-radius: 999px;
    background: linear-gradient(135deg, #444, #222);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 36px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.profile-hero-verified {
    position: absolute;
    bottom: 0;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f5b400;
    color: #fff;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.profile-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    max-width: 520px;
    min-width: 0;
}

.profile-hero-name {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}

.profile-hero-handle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.005em;
}

.profile-hero-bio {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 4px 0 0;
    max-width: 480px;
}

.profile-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.profile-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
   ACTION BAR
   ============================================================ */
.profile-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 10, 10, 0.04);
    margin-top: -32px;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
}

.profile-actionbar-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-actionstat {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.profile-actionstat-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-ink, #0a0a0a);
    letter-spacing: -0.015em;
}

.profile-actionstat-lbl {
    font-size: 10.5px;
    font-weight: 500;
    color: #8a8a8a;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 1px;
}

.profile-actionbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    background: transparent;
    color: var(--color-ink, #0a0a0a);
    white-space: nowrap;
}

.profile-btn--primary {
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    border-color: var(--color-ink, #0a0a0a);
}
.profile-btn--primary:hover { background: #1a1a1a; transform: translateY(-1px); }

.profile-btn--ghost {
    background: #fff;
    color: var(--color-ink, #0a0a0a);
    border-color: #ececec;
}
.profile-btn--ghost:hover { border-color: var(--color-ink, #0a0a0a); }
.profile-btn--ghost.is-following {
    background: #fafafa;
}

.profile-btn--icon {
    width: 38px;
    padding: 0;
    background: #fff;
    border-color: #ececec;
    color: #525252;
}
.profile-btn--icon:hover { background: #f5f5f5; color: var(--color-ink, #0a0a0a); }

/* ============================================================
   LAYOUT GRID
   ============================================================ */
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

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

.profile-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    position: sticky;
    top: 16px;
}

@media (max-width: 1024px) {
    .profile-side { position: static; }
}

/* ============================================================
   TABS
   ============================================================ */
.profile-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    flex-wrap: wrap;
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b6b6b;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-tab:hover { color: var(--color-ink, #0a0a0a); }

.profile-tab.is-active {
    background: #fff;
    color: var(--color-ink, #0a0a0a);
    box-shadow: 0 1px 3px rgba(10, 10, 10, 0.08);
}

.profile-tabs-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #525252;
    cursor: pointer;
}

.profile-view-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 2px;
}

.profile-view {
    width: 28px;
    height: 26px;
    border: none;
    background: transparent;
    border-radius: 6px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #8a8a8a;
}

.profile-view.is-active {
    background: var(--color-ink, #0a0a0a);
    color: #fff;
}

/* ============================================================
   POST GRID — bento masonry
   ============================================================ */
.profile-posts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 8px;
}

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

.profile-post {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
    grid-column: span 1;
    grid-row: span 1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease;
    will-change: transform;
}

.profile-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(10, 10, 10, 0.22);
}

.profile-post--md { grid-column: span 2; grid-row: span 1; }
.profile-post--lg { grid-column: span 2; grid-row: span 2; }

.profile-post img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-post:hover img { transform: scale(1.04); }

.profile-post-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-ink, #0a0a0a);
    text-transform: uppercase;
    z-index: 2;
}

.profile-post-badge--ai {
    background: linear-gradient(135deg, #0a0a0a, #2a2a2a);
    color: #fff;
}

.profile-post-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.profile-post-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    letter-spacing: -0.005em;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-post--lg .profile-post-title { font-size: 18px; }

.profile-post-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.profile-post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.profile-post-stats svg { fill: currentColor; }

/* ============================================================
   COLLECTIONS GRID
   ============================================================ */
.profile-collections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 720px) { .profile-collections { grid-template-columns: repeat(2, 1fr); } }

.profile-collection {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-collection:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(10, 10, 10, 0.16);
}

.profile-collection-cover {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f5f5, #ececec);
    overflow: hidden;
}

.profile-collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-collection-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px 14px;
}

.profile-collection-name {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-ink, #0a0a0a);
    letter-spacing: -0.01em;
}

.profile-collection-meta {
    font-size: 11.5px;
    color: #8a8a8a;
    font-weight: 500;
}

/* ============================================================
   FORUM TOPICS
   ============================================================ */
.profile-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-topic {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.profile-topic:hover {
    border-color: var(--color-ink, #0a0a0a);
    transform: translateX(3px);
}

.profile-topic-info {
    flex: 1;
    min-width: 0;
}

.profile-topic-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    margin: 0 0 2px;
}

.profile-topic-meta {
    font-size: 11px;
    color: #8a8a8a;
}

.profile-topic-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 50px;
    text-align: center;
}

.profile-topic-stat strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-ink, #0a0a0a);
}

.profile-topic-stat span {
    font-size: 10px;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 60px 20px;
    background: #fafafa;
    border: 1px dashed #d8d8d8;
    border-radius: 16px;
    text-align: center;
}

.profile-empty-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.profile-empty h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--color-ink, #0a0a0a);
}

.profile-empty p {
    font-size: 13px;
    color: #8a8a8a;
    margin: 0;
}

/* ============================================================
   SIDE WIDGETS
   ============================================================ */
.profile-widget {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
}

.profile-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-widget-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.profile-widget-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--color-ink, #0a0a0a);
    letter-spacing: -0.01em;
}

.profile-widget-link {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #8a8a8a;
    text-decoration: none;
}

.profile-widget-link:hover { color: var(--color-ink, #0a0a0a); }

/* ----- Stil Profili ----- */
.profile-style-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 12px;
    align-items: center;
}

.profile-style-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-style-eyebrow {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #8a8a8a;
    text-transform: uppercase;
}

.profile-style-name {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink, #0a0a0a);
    letter-spacing: -0.01em;
}

.profile-style-desc {
    font-size: 11.5px;
    line-height: 1.45;
    color: #6b6b6b;
    margin: 4px 0 6px;
}

.profile-style-link {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
}

.profile-style-ring {
    --p: 0;
    --size: 92px;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--color-ink, #0a0a0a) calc(var(--p) * 1%), #ececec 0);
    position: relative;
}

.profile-style-ring::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 999px;
}

.profile-style-ring-num {
    position: relative;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink, #0a0a0a);
    line-height: 1;
}

.profile-style-ring-lbl {
    position: relative;
    font-size: 9px;
    font-weight: 600;
    color: #8a8a8a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ----- Öne Çıkan Koleksiyonlar ----- */
.profile-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profile-featured-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.profile-featured-card:hover { transform: translateY(-2px); }

.profile-featured-cover {
    aspect-ratio: 1 / 1.1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #ececec);
}

.profile-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-featured-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-top: 2px;
}

.profile-featured-meta {
    font-size: 10px;
    color: #8a8a8a;
}

/* ----- İlham Panosu ----- */
.profile-moodboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.profile-moodboard-cell {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.profile-moodboard-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.profile-moodboard-cell:hover img { transform: scale(1.05); }

.profile-moodboard-meta {
    font-size: 11px;
    color: #8a8a8a;
}
