/* 
 * Blog Styles - Apple Inspired 2025 Design
 * For Blog List and Single Post Pages
 */

/* Single Post Styles */
.single-post-wrapper {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Post Header */
.post-header {
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.post-header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 22px;
}

.post-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    margin: 0 0 32px 0;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 19px;
    line-height: 1.6;
    color: #6e6e73;
    text-align: center;
    margin: 0 0 32px 0;
    padding: 0 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Post Meta Card - Kompakt Apple Tasarım */
.post-meta-card {
    position: relative;
    padding: 20px 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.post-meta-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.meta-category-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

.meta-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.5);
}

.post-meta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.author-avatar {
    border-radius: 50%;
    overflow: hidden;
    width: 56px;
    height: 56px;
    border: 2.5px solid #f5f5f7;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author-name {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name:hover {
    color: #0071e3;
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-separator {
    color: #d2d2d7;
    font-size: 12px;
}

.meta-date,
.meta-reading-time {
    font-size: 13px;
    font-weight: 500;
    color: #6e6e73;
}

.post-meta-right {
    display: flex;
    gap: 16px;
}

.post-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #fafafa 100%);
    border-radius: 12px;
    border: 1px solid #e8e8ed;
    min-width: 110px;
}

.post-date-updated {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
    border-color: #d4e8ff;
}

.date-box-label {
    font-size: 10px;
    font-weight: 700;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-date-updated .date-box-label {
    color: #0071e3;
}

.date-box-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.post-date-updated .date-box-value {
    color: #0071e3;
}

/* Featured Image */
.post-featured-image {
    padding: 0 0 60px;
    background: #ffffff;
}

.featured-image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    border-radius: 24px;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Wrapper */
.post-content-wrapper {
    padding: 0 0 80px;
    background: #ffffff;
}

.post-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* Main Content */
.post-main-content {
    min-width: 0;
}

.post-content {
    font-size: 19px;
    line-height: 1.7;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.post-content p {
    margin: 0 0 24px 0;
}

.post-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin: 48px 0 24px 0;
    scroll-margin-top: 100px;
}

.post-content h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin: 40px 0 20px 0;
    scroll-margin-top: 100px;
}

.post-content h4 {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 32px 0 16px 0;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #0077ed;
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 32px 0;
}

.post-content blockquote {
    border-left: 4px solid #0071e3;
    padding: 20px 28px;
    margin: 32px 0;
    background: #f5f5f7;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1d1d1f;
}

.post-content code {
    background: #f5f5f7;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: "SF Mono", Monaco, "Courier New", monospace;
}

.post-content pre {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Post Tags */
.post-tags {
    padding: 40px 0;
    border-top: 1px solid #e8e8ed;
    margin-top: 40px;
}

.tags-label {
    font-size: 15px;
    font-weight: 600;
    color: #6e6e73;
    margin-bottom: 12px;
    display: block;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #0071e3;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Share Buttons */
.post-share {
    padding: 40px 0;
    border-top: 1px solid #e8e8ed;
}

.post-share h3 {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 20px 0;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button.twitter {
    background: #1da1f2;
    color: #ffffff;
}

.share-button.facebook {
    background: #1877f2;
    color: #ffffff;
}

.share-button.linkedin {
    background: #0a66c2;
    color: #ffffff;
}

.share-button.whatsapp {
    background: #25d366;
    color: #ffffff;
}

.share-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.post-author-bio {
    padding: 48px;
    background: linear-gradient(135deg, #f5f5f7 0%, #fafafa 100%);
    border-radius: 24px;
    margin-top: 60px;
    border: 1px solid #e8e8ed;
}

.author-bio-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8ed;
}

.author-bio-avatar {
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.author-bio-header-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.author-bio-label {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.author-bio-header-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.02em;
}

.author-bio-header-content h3 a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-bio-header-content h3 a:hover {
    color: #0071e3;
}

.author-bio-avatar {
    display: block;
    transition: opacity 0.2s ease;
}

.author-bio-avatar:hover {
    opacity: 0.8;
}

.author-bio-role {
    font-size: 15px;
    font-weight: 500;
    color: #0071e3;
}

.author-bio-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    margin: 0 0 24px 0;
}

.author-bio-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.author-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.author-stat svg {
    color: #0071e3;
    flex-shrink: 0;
}

.author-stat a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-stat a:hover {
    color: #0077ed;
    text-decoration: underline;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 19px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 20px 0;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item a {
    display: block;
    padding: 12px 16px;
    background: #ffffff;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.toc-item a:hover {
    background: #f0f6ff;
    color: #0071e3;
    border-left-color: #0071e3;
    transform: translateX(4px);
}

.toc-item a.active {
    background: linear-gradient(90deg, #e8f2ff 0%, #f5f9ff 100%);
    color: #0071e3;
    border-left-color: #0071e3;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.toc-item a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0071e3;
    border-radius: 0 2px 2px 0;
}

.toc-h3 {
    margin-left: 16px;
}

.toc-h3 a {
    font-size: 13px;
    font-weight: 400;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.recent-post-item:hover {
    transform: translateX(4px);
}

.recent-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.recent-post-content h4 a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-content h4 a:hover {
    color: #0071e3;
}

.recent-post-date {
    font-size: 12px;
    color: #6e6e73;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: #f5f5f7;
}

.related-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.related-posts h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0 0 48px 0;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.related-post-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f7;
}

.related-post-image a {
    display: block;
    line-height: 0;
    height: 100%;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.08);
}

.related-post-content {
    padding: 24px;
}

.related-post-content h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.related-post-content h3 a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-content h3 a:hover {
    color: #0071e3;
}

.related-post-date {
    font-size: 13px;
    color: #6e6e73;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .post-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 60px 0 40px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-excerpt {
        font-size: 16px;
        margin: 0 0 24px 0;
        padding: 0 16px;
    }
    
    .post-meta-card {
        padding: 24px 20px 20px;
    }
    
    .meta-category-badge {
        left: 50%;
        transform: translateX(-50%);
        top: -10px;
    }
    
    .post-meta-card:hover .meta-category-badge {
        transform: translateX(-50%) translateY(-2px);
    }
    
    .post-meta-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .post-meta-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-info {
        align-items: center;
    }
    
    .post-meta-details {
        justify-content: center;
    }
    
    .post-meta-right {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .post-date-box {
        flex: 1;
        min-width: auto;
        padding: 10px 12px;
    }
    
    .date-box-label {
        font-size: 9px;
    }
    
    .date-box-value {
        font-size: 13px;
    }
    
    .post-content {
        font-size: 17px;
    }
    
    .post-content h2 {
        font-size: 28px;
        margin: 32px 0 16px 0;
    }
    
    .post-content h3 {
        font-size: 24px;
        margin: 28px 0 14px 0;
    }
    
    .post-author-bio {
        padding: 32px 24px;
    }
    
    .author-bio-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-bio-header-content {
        align-items: center;
    }
    
    .author-bio-stats {
        justify-content: center;
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts h2 {
        font-size: 28px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

