/**
 * Blog Single - Native Mobile App Style
 * Modern mobil uygulama görünümü
 */

/* ================================================
   MOBİL GÖRÜNÜM (768px ve altı)
   ================================================ */
@media (max-width: 768px) {
    
    /* Body ve Container Reset */
    body.single-post {
        background: #f8f9fa;
        padding: 0;
        margin: 0;
    }
    
    /* Container - Full width mobile */
    .single-post .container,
    .single-post .content-container {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
    
    /* ================================================
       HEADER - iOS Style Sticky
       ================================================ */
    .blog-single-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px;
    }
    
    /* Back Button */
    .blog-back-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #f3f4f6;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1f2937;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .blog-back-btn:active {
        transform: scale(0.95);
        background: #e5e7eb;
    }
    
    /* Header Title */
    .blog-header-title {
        flex: 1;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        padding: 0 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Share Button */
    .blog-share-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .blog-share-btn:active {
        transform: scale(0.95);
    }
    
    /* ================================================
       FEATURED IMAGE - Full Width Card
       ================================================ */
    .blog-featured-image {
        margin: 0;
        padding: 0;
        position: relative;
        background: white;
        border-radius: 0 0 24px 24px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .blog-featured-image img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        display: block;
    }
    
    /* Image Overlay Gradient */
    .blog-featured-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        pointer-events: none;
    }
    
    /* ================================================
       POST META - Card Style
       ================================================ */
    .blog-post-meta {
        background: white;
        margin: -20px 16px 16px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 10;
    }
    
    .blog-post-title {
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .blog-meta-info {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }
    
    .blog-meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #6b7280;
    }
    
    .blog-meta-item i {
        font-size: 14px;
        color: #10b981;
    }
    
    /* Category Tags */
    .blog-categories {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .blog-category-tag {
        display: inline-block;
        padding: 6px 12px;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border: 1px solid #86efac;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: #059669;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .blog-category-tag:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border-color: transparent;
    }
    
    /* ================================================
       CONTENT - Clean Reading Experience
       ================================================ */
    .blog-content-wrapper {
        padding: 0 16px 80px;
    }
    
    .blog-content {
        background: white;
        border-radius: 16px;
        padding: 24px 20px;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    
    /* Typography */
    .blog-content p {
        font-size: 16px;
        line-height: 1.8;
        color: #374151;
        margin-bottom: 20px;
    }
    
    .blog-content h2 {
        font-size: 22px;
        font-weight: 700;
        color: #1f2937;
        margin: 32px 0 16px;
        padding-left: 12px;
        border-left: 4px solid #10b981;
    }
    
    .blog-content h3 {
        font-size: 19px;
        font-weight: 600;
        color: #1f2937;
        margin: 24px 0 12px;
    }
    
    .blog-content ul,
    .blog-content ol {
        padding-left: 24px;
        margin-bottom: 20px;
    }
    
    .blog-content li {
        font-size: 16px;
        line-height: 1.8;
        color: #374151;
        margin-bottom: 8px;
    }
    
    .blog-content blockquote {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-left: 4px solid #10b981;
        padding: 20px;
        margin: 24px 0;
        border-radius: 12px;
        font-style: italic;
        color: #059669;
    }
    
    .blog-content img {
        width: calc(100% + 40px);
        margin: 24px -20px;
        border-radius: 0;
        height: auto;
    }
    
    /* ================================================
       AUTHOR BOX - Card Style
       ================================================ */
    .blog-author-box {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    
    .blog-author-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .blog-author-avatar {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .blog-author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .blog-author-info {
        flex: 1;
    }
    
    .blog-author-name {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
    }
    
    .blog-author-role {
        font-size: 13px;
        color: #6b7280;
    }
    
    .blog-author-bio {
        font-size: 14px;
        line-height: 1.6;
        color: #4b5563;
    }
    
    /* ================================================
       RELATED POSTS - Horizontal Scroll Cards
       ================================================ */
    .blog-related-posts {
        margin-bottom: 24px;
    }
    
    .blog-related-header {
        padding: 0 16px;
        margin-bottom: 16px;
    }
    
    .blog-related-title {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
    }
    
    .blog-related-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 16px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-related-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .blog-related-card {
        flex: 0 0 280px;
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        scroll-snap-align: start;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .blog-related-card:active {
        transform: scale(0.98);
    }
    
    .blog-related-image {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }
    
    .blog-related-content {
        padding: 16px;
    }
    
    .blog-related-card-title {
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .blog-related-date {
        font-size: 12px;
        color: #9ca3af;
    }
    
    /* ================================================
       COMMENTS - Chat Style
       ================================================ */
    .blog-comments {
        background: white;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px;
        margin-top: 24px;
    }
    
    .blog-comments-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .blog-comments-title {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
    }
    
    .blog-comments-count {
        background: #f3f4f6;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
    }
    
    .blog-comment-item {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .blog-comment-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .blog-comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .blog-comment-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .blog-comment-meta {
        flex: 1;
    }
    
    .blog-comment-author {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
    }
    
    .blog-comment-date {
        font-size: 12px;
        color: #9ca3af;
    }
    
    .blog-comment-content {
        font-size: 14px;
        line-height: 1.6;
        color: #4b5563;
        padding-left: 52px;
    }
    
    /* ================================================
       FLOATING ACTION BUTTONS
       ================================================ */
    .blog-fab-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 90;
    }
    
    .blog-fab {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .blog-fab-share {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }
    
    .blog-fab-top {
        background: white;
        color: #6b7280;
        border: 1px solid #e5e7eb;
    }
    
    .blog-fab:active {
        transform: scale(0.9);
    }
    
    /* ================================================
       SIDEBAR - Hidden on Mobile
       ================================================ */
    .blog-sidebar,
    .sidebar {
        display: none !important;
    }
    
    /* ================================================
       ANIMATIONS
       ================================================ */
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .blog-content-wrapper > * {
        animation: slideInUp 0.5s ease forwards;
    }
    
    .blog-content-wrapper > *:nth-child(1) { animation-delay: 0.1s; }
    .blog-content-wrapper > *:nth-child(2) { animation-delay: 0.2s; }
    .blog-content-wrapper > *:nth-child(3) { animation-delay: 0.3s; }
}

/* ================================================
   KÜÇÜK MOBİL (480px ve altı)
   ================================================ */
@media (max-width: 480px) {
    .blog-featured-image img {
        height: 240px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
    
    .blog-content {
        padding: 20px 16px;
    }
    
    .blog-content p {
        font-size: 15px;
    }
    
    .blog-related-card {
        flex: 0 0 240px;
    }
}

/* ================================================
   DARK MODE SUPPORT (Opsiyonel)
   ================================================ */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    body.single-post {
        background: #111827;
    }
    
    .blog-single-header {
        background: rgba(17, 24, 39, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .blog-header-title,
    .blog-post-title,
    .blog-content h2,
    .blog-content h3 {
        color: #f3f4f6;
    }
    
    .blog-content,
    .blog-post-meta,
    .blog-author-box,
    .blog-related-card,
    .blog-comments {
        background: #1f2937;
    }
    
    .blog-content p,
    .blog-content li {
        color: #d1d5db;
    }
    
    .blog-back-btn,
    .blog-fab-top {
        background: #374151;
        color: #f3f4f6;
    }
}