/**
 * Single Post - Premium Layout
 * Left: Content | Right: Sticky Featured Image
 */

/* ===== Container Ayarları ===== */
.single-post-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* ===== Başlık Alanı (Tam Genişlik) ===== */
.single-post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(60, 72, 212, 0.1);
}

.single-post-header .post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.single-post-header .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666;
}

.single-post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post-header .post-meta i {
    color: #3c48d4;
}

.single-post-header .post-category {
    background: linear-gradient(135deg, #3c48d4 0%, #5a6de9 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== İki Kolon Düzeni ===== */
.single-post-body {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 60px;
    align-items: start;
}

/* ===== Sol Taraf - İçerik ===== */
.single-post-content {
    min-height: 100vh;
}

.single-post-content .content-inner {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.single-post-content .content-inner p {
    margin-bottom: 1.5em;
}

.single-post-content .content-inner h2,
.single-post-content .content-inner h3,
.single-post-content .content-inner h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #1a1a2e;
    font-weight: 600;
}

.single-post-content .content-inner h2 {
    font-size: 1.75rem;
}

.single-post-content .content-inner h3 {
    font-size: 1.4rem;
}

.single-post-content .content-inner ul,
.single-post-content .content-inner ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.single-post-content .content-inner li {
    margin-bottom: 0.5em;
}

.single-post-content .content-inner blockquote {
    margin: 2em 0;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(60, 72, 212, 0.05) 0%, rgba(90, 109, 233, 0.08) 100%);
    border-left: 4px solid #3c48d4;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
}

.single-post-content .content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.single-post-content .content-inner a {
    color: #3c48d4;
    text-decoration: none;
    border-bottom: 1px solid rgba(60, 72, 212, 0.3);
    transition: all 0.3s ease;
}

.single-post-content .content-inner a:hover {
    color: #5a6de9;
    border-bottom-color: #5a6de9;
}

/* ===== Sağ Taraf - Sticky Görsel ===== */
.single-post-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
    margin-top: 40px;
}

.single-post-featured-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(60, 72, 212, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.single-post-featured-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(60, 72, 212, 0.2);
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Görsel Altı Bilgi Kartı */
.single-post-info-card {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(60, 72, 212, 0.08);
}

.single-post-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(60, 72, 212, 0.1);
}

.single-post-info-card .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #555;
}

.single-post-info-card .info-item:last-child {
    margin-bottom: 0;
}

.single-post-info-card .info-item i {
    color: #3c48d4;
    width: 18px;
    text-align: center;
}

/* ===== Etiketler ve Paylaşım ===== */
.single-post-footer {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(60, 72, 212, 0.1);
}

.post-tags-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags-wrap a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(60, 72, 212, 0.08);
    color: #3c48d4;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags-wrap a:hover {
    background: #3c48d4;
    color: #fff;
}

/* ===== Responsive Tasarım ===== */
@media screen and (max-width: 1200px) {
    .single-post-body {
        grid-template-columns: 1fr 450px;
        gap: 40px;
    }
}

@media screen and (max-width: 992px) {
    .single-post-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-post-sidebar {
        position: relative;
        top: 0;
        order: -1;
        /* Mobilde görsel üste gelsin */
    }

    .single-post-featured-image {
        max-height: 400px;
    }

    .single-post-featured-image img {
        max-height: 400px;
        object-fit: cover;
    }

    .single-post-layout {
        padding: 40px 20px;
    }

    .single-post-header .post-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .single-post-layout {
        padding: 30px 15px;
    }

    .single-post-header {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }

    .single-post-header .post-category {
        margin-bottom: 16px;
        display: inline-block;
    }

    .single-post-header .post-title {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .single-post-content .content-inner {
        font-size: 1rem;
        line-height: 1.8;
    }

    .single-post-content .content-inner blockquote {
        padding: 20px;
        font-size: 1rem;
    }
}

/* ===== Navigasyon (Önceki/Sonraki Yazı) ===== */
.post-navigation {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.post-navigation .nav-item {
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(60, 72, 212, 0.08);
    transition: all 0.3s ease;
}

.post-navigation .nav-item:hover {
    border-color: rgba(60, 72, 212, 0.2);
    box-shadow: 0 15px 50px rgba(60, 72, 212, 0.1);
}

.post-navigation .nav-item a {
    text-decoration: none;
    color: inherit;
}

.post-navigation .nav-label {
    font-size: 0.85rem;
    color: #3c48d4;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ===== Sidebar Gizleme ===== */
.single-post #pxl-sidebar-area {
    display: none !important;
}

.single-post #pxl-content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}