/* ============================================================
   POST DETAIL — Kompakt premium editorial layout
   ============================================================ */

.post-detail {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    align-items: start;
}

@media (max-width: 960px) {
    .post-detail {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 600px;
    }
}

.post-detail-left {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-height: calc(100vh - 60px);
    overflow: hidden;
}

@media (max-width: 960px) {
    .post-detail-left {
        position: static;
    }
}

.post-detail-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* ============================================================
   GALERİ — büyük görsel + altta yatay thumb strip
   ============================================================ */
.post-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-gallery-main {
    position: relative;
    width: 100%;
    min-height: 460px;
    max-height: calc(100vh - 140px);
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 20px rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-gallery-image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-gallery-image--placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 48px;
    color: #c9c9c9;
    letter-spacing: -0.04em;
}

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

.post-gallery-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    z-index: 2;
}

.post-gallery-arrow {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--color-ink, #0a0a0a);
}

.post-gallery-arrow:hover { background: rgba(0, 0, 0, 0.06); }

.post-gallery-pager {
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    letter-spacing: 0.04em;
}

/* Thumbs — yatay strip altta */
.post-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.post-gallery-thumbs::-webkit-scrollbar { display: none; }

.post-gallery-thumb {
    width: 56px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fafafa;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.post-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-gallery-thumb.is-active {
    border-color: var(--color-ink, #0a0a0a);
}

/* ============================================================
   AUTHOR ROW — kompakt
   ============================================================ */
.post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
}

.post-author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.post-author-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8e8e8, #d4d4d4);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b6b6b;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.post-author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.post-author-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author-verified {
    color: #f5b400;
    flex-shrink: 0;
}

.post-author-followers {
    font-size: 11px;
    color: #8a8a8a;
    margin-top: 1px;
}

.post-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.post-follow-btn:hover { background: #1a1a1a; }
.post-follow-btn.is-following {
    background: #fff;
    color: var(--color-ink, #0a0a0a);
    border: 1px solid #d8d8d8;
}

.post-more-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #6b6b6b;
}
.post-more-btn:hover { background: #f5f5f5; color: var(--color-ink, #0a0a0a); }

/* ============================================================
   EYEBROW + TITLE + CAPTION
   ============================================================ */
.post-eyebrow-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 8px;
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-ink, #0a0a0a);
    margin: 0;
}

.post-caption {
    font-size: 13.5px;
    line-height: 1.6;
    color: #525252;
    margin: 0;
}

/* ============================================================
   STAT STRIP — yatay tek satır inline
   ============================================================ */
.post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.post-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: #525252;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

.post-stat svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
    width: 16px;
    height: 16px;
}

.post-stat-num { font-weight: 600; color: var(--color-ink, #0a0a0a); }
.post-stat-lbl { display: none; }

.post-stat--like.is-liked { color: #e11d48; }
.post-stat--like.is-liked svg {
    fill: #e11d48;
    stroke: #e11d48;
    animation: post-heart-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.post-stat--like.is-liked .post-stat-num { color: #e11d48; }

.post-stat--save.is-saved svg {
    fill: var(--color-ink, #0a0a0a);
    animation: post-bookmark-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes post-heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@keyframes post-bookmark-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25) translateY(-2px); }
    100% { transform: scale(1); }
}

/* ============================================================
   CTA ROW — 40px kompakt
   ============================================================ */
.post-cta-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
}

.post-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.post-cta svg { width: 14px; height: 14px; }

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

.post-cta--secondary {
    background: #fff;
    color: var(--color-ink, #0a0a0a);
    border: 1px solid #d8d8d8;
}
.post-cta--secondary:hover { border-color: var(--color-ink, #0a0a0a); }
.post-cta--secondary.is-saved {
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    border-color: var(--color-ink, #0a0a0a);
}
.post-cta--secondary.is-saved svg { fill: #fff; }

/* ============================================================
   META STRIP — Stil Notları tek satır (twin panel yerine)
   ============================================================ */
.post-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.post-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 999px;
    font-size: 11px;
    color: #4a4a4a;
}

.post-meta-pill strong {
    color: var(--color-ink, #0a0a0a);
    font-weight: 600;
}

/* ============================================================
   HASHTAGS
   ============================================================ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: #525252;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.post-tag:hover {
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    border-color: var(--color-ink, #0a0a0a);
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.post-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

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

.post-section-link {
    font-size: 11px;
    font-weight: 600;
    color: #8a8a8a;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.post-section-link:hover { color: var(--color-ink, #0a0a0a); }

/* ============================================================
   KOMBİN PARÇALARI — premium yatay scroll
   ============================================================ */
.post-products-section { display: flex; flex-direction: column; }

.post-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: #d8d8d8 transparent;
}
.post-products::-webkit-scrollbar { height: 4px; }
.post-products::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 999px; }
.post-products::-webkit-scrollbar-track { background: transparent; }

.post-product {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 150px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    will-change: transform;
}

.post-product:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 12px 32px -8px rgba(10, 10, 10, 0.18),
                0 4px 12px -2px rgba(10, 10, 10, 0.06);
}

.post-product-cover {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #f5f5f5, #ececec);
    overflow: hidden;
}

.post-product-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.06));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.post-product:hover .post-product-cover::after { opacity: 1; }

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

.post-product:hover .post-product-cover img {
    transform: scale(1.06);
}

.post-product-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a4a4a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 2;
}
.post-product-flag--editor {
    background: linear-gradient(135deg, #0a0a0a, #2a2a2a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.25);
}

.post-product-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
    background: #fff;
}

.post-product-brand {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8a8a8a;
    text-transform: uppercase;
    margin-bottom: 1px;
}

.post-product-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-ink, #0a0a0a);
    line-height: 1.3;
    letter-spacing: -0.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.post-product-price {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-ink, #0a0a0a);
    margin-top: 4px;
    letter-spacing: -0.01em;
}

/* ============================================================
   YORUMLAR — kompakt
   ============================================================ */
.post-comments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-comments-empty {
    font-size: 12px;
    color: #8a8a8a;
    margin: 0;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
}

.post-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-comment {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: flex-start;
}

.post-comment-avatar {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8e8e8, #d4d4d4);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700;
    color: #6b6b6b;
    text-decoration: none;
    aspect-ratio: 1 / 1;
}

.post-comment-body { min-width: 0; }

.post-comment-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 1px;
}

.post-comment-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    text-decoration: none;
}
.post-comment-name:hover { text-decoration: underline; }

.post-comment-time {
    font-size: 10px;
    color: #8a8a8a;
}

.post-comment-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #4a4a4a;
    margin: 0;
    overflow-wrap: anywhere;
}

.post-comment-like {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 500;
}
.post-comment-like:hover { color: #e11d48; }

.post-comment-form {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 30px;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    background: #fafafa;
    border-radius: 999px;
    margin-top: 4px;
}

.post-comment-form-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8e8e8, #d4d4d4);
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700;
    color: #6b6b6b;
    aspect-ratio: 1 / 1;
}

.post-comment-form-input {
    border: none;
    background: transparent;
    font-size: 12.5px;
    outline: none;
    min-width: 0;
}

.post-comment-form-submit {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--color-ink, #0a0a0a);
    color: #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.post-comment-form-submit:hover { background: #1a1a1a; }
.post-comment-form-submit svg { fill: none; stroke: #fff; width: 14px; height: 14px; }

.post-comment-anon {
    font-size: 12px;
    color: #8a8a8a;
    text-align: center;
    margin: 0;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
}
.post-comment-anon a {
    color: var(--color-ink, #0a0a0a);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   BENZER KOMBİNLER — premium 3'lü grid
   ============================================================ */
.post-similar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
}

.post-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.post-similar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    will-change: transform;
}

.post-similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(10, 10, 10, 0.22),
                0 4px 12px -2px rgba(10, 10, 10, 0.06);
}

.post-similar-card .post-similar-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #ececec);
}

.post-similar-card .post-similar-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.08));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-similar-card:hover .post-similar-cover::after { opacity: 1; }

.post-similar-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-similar-card:hover img { transform: scale(1.06); }

.post-similar-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 11px 11px;
    background: #fff;
}

.post-similar-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    line-height: 1.3;
    letter-spacing: -0.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.post-similar-author {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #8a8a8a;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.post-similar-author svg {
    color: #f5b400;
    filter: drop-shadow(0 1px 2px rgba(245, 180, 0, 0.3));
}

/* Comment counter (post detail) */
.post-comment-form-counter {
    font-size: 11px;
    color: #a3a3a3;
    flex-shrink: 0;
    align-self: center;
    margin-right: 4px;
    white-space: nowrap;
}
.post-comment-form-counter.is-warn { color: #f59e0b; }
.post-comment-form-counter.is-over { color: #dc2626; font-weight: 600; }
