﻿/* Blog Modülü CSS Dosyası */
/* wwwroot/css/blog.css */

/* Blog Header Styles */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative; /* Badge için gerekli */
}

    /* Blog header içindeki flex container */
    .blog-header .d-flex {
        align-items: flex-start !important;
        gap: 1rem;
    }

    /* Blog header'daki flex-grow-1 elementi */
    .blog-header .flex-grow-1 {
        min-width: 0; /* Flexbox truncation için */
    }

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: none;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.blog-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Blog Detail Image - Enhanced */
.blog-content .blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-category {
    top: 10px;
    left: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced Blog Meta */
.blog-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

    .meta-item i {
        margin-right: 0.5rem;
        color: #667eea;
    }

.category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-excerpt {
    color: #495057;
    line-height: 1.6;
}

.btn-read-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .btn-read-more:hover {
        opacity: 0.9;
        color: white;
    }

/* Blog Content Styles - Enhanced */
.blog-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-content-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

    .blog-content-text h1,
    .blog-content-text h2,
    .blog-content-text h3,
    .blog-content-text h4,
    .blog-content-text h5,
    .blog-content-text h6 {
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        color: #2c3e50;
        font-weight: 600;
    }

    .blog-content-text h1 {
        font-size: 2rem;
    }

    .blog-content-text h2 {
        font-size: 1.75rem;
    }

    .blog-content-text h3 {
        font-size: 1.5rem;
    }

    .blog-content-text p {
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .blog-content-text img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 2rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .blog-content-text blockquote {
        border-left: 4px solid #667eea;
        padding: 1.5rem;
        margin: 2rem 0;
        font-style: italic;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 0 8px 8px 0;
        position: relative;
    }

        .blog-content-text blockquote::before {
            content: '"';
            font-size: 4rem;
            color: #667eea;
            position: absolute;
            top: -10px;
            left: 15px;
            opacity: 0.3;
        }

    .blog-content-text ul, .blog-content-text ol {
        margin-bottom: 1.5rem;
        padding-left: 2rem;
    }

    .blog-content-text li {
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }

    .blog-content-text a {
        color: #667eea;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }

        .blog-content-text a:hover {
            color: #764ba2;
            border-bottom-color: #764ba2;
        }

/* Empty Content State */
.empty-content {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-style: italic;
}

/* Blog Actions */
.blog-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

/* Related Posts */
.related-posts {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.related-post-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 1rem;
}

    .related-post-card:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        color: inherit;
        text-decoration: none;
        transform: translateY(-2px);
    }

/* Back to Blog */
.back-to-blog {
    position: sticky;
    top: 1rem;
}

/* Sidebar Styles */
.blog-sidebar {
    /* Add any specific sidebar styles here */
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.widget-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.widget-content {
    padding: 1rem;
}

.popular-post, .recent-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

    .popular-post:last-child, .recent-post:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Alternatif satır renkleri - Zebra Striping */
    .popular-post:nth-child(even), .recent-post:nth-child(even) {
        background-color: #f8f9fa;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 6px;
    }

    .popular-post:nth-child(odd), .recent-post:nth-child(odd) {
        background-color: white;
    }

    /* Hover effects */
    .popular-post:hover, .recent-post:hover {
        background-color: #e3f2fd !important;
        transform: translateX(3px);
    }

.list-group-item.active {
    background-color: #667eea;
    border-color: #667eea;
}

.popular-post h6 a:hover,
.recent-post h6 a:hover {
    color: #667eea !important;
}

/* Eğer card-body içinde liste varsa */
.card-body .list-group-item:nth-child(even) {
    background-color: #f8f9fa;
}

.card-body .list-group-item:nth-child(odd) {
    background-color: white;
}

/* Related posts için de alternatif renkler */
.related-post-card:nth-child(even) {
    background-color: #f8f9fa;
}

.related-post-card:nth-child(odd) {
    background-color: white;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-secondary {
    border-radius: 8px;
    padding: 0.75rem 2rem;
}

.character-count {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: right;
    margin-top: 0.25rem;
}

    .character-count.warning {
        color: #fd7e14;
    }

    .character-count.danger {
        color: #dc3545;
    }

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.preview-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px dashed #dee2e6;
    display: none;
}

.form-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.tips-card {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

    .file-upload-area:hover {
        border-color: #667eea;
        background-color: #f8f9fa;
    }

    .file-upload-area.dragover {
        border-color: #667eea;
        background-color: #e7f3ff;
    }

.uploaded-image, .current-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 1rem;
}

.current-image {
    border: 2px solid #e9ecef;
    padding: 4px;
}

/* TinyMCE Custom Styling */
.tox-tinymce {
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
}

    .tox-tinymce:focus-within {
        border-color: #667eea !important;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    }

/* Filter Styles */
.filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    /* Flexbox içinde doğru konumlandırma için */
    flex-shrink: 0;
    align-self: flex-start;
}

/* Blog header içindeki status badge */
/* Eğer status-badge2 class'ı kullanıyorsan */
.blog-header .status-badge2 {
 
    top: auto !important;
    right: auto !important;
    margin-left: 1rem;
    border-radius: 25px !important; /* Yuvarlak border radius */
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.status-onaylandi {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.status-bekliyor {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

.status-reddedildi {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

/* Enhanced Social Share Styles */
.social-share {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 3rem;
}

.share-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .share-btn:hover {
        opacity: 0.9;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1da1f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-copy {
    background: #6c757d;
}

/* Blog Actions Dropdown */
.blog-actions-dropdown .dropdown-toggle {
    border-radius: 6px;
    font-size: 0.875rem;
}

.blog-actions-dropdown .dropdown-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.blog-actions-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

    .blog-actions-dropdown .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .blog-actions-dropdown .dropdown-item.text-danger:hover {
        background-color: #f8d7da;
        color: #721c24 !important;
    }

    .blog-actions-dropdown .dropdown-item.text-success:hover {
        background-color: #d1e7dd;
        color: #0f5132 !important;
    }

    .blog-actions-dropdown .dropdown-item.text-warning:hover {
        background-color: #fff3cd;
        color: #664d03 !important;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

/* Image Section for Edit */
.image-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-notification {
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 1.5rem;
        text-align: center;
    }

    .status-badge {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }

    .blog-card {
        margin-bottom: 2rem;
    }

    .form-container {
        padding: 1rem;
    }

    .form-header {
        padding: 1rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content-text {
        font-size: 1rem;
    }

    .sidebar-widget {
        margin-bottom: 1.5rem;
    }

    .file-upload-area {
        padding: 1rem;
    }

    .tips-card {
        padding: 0.75rem;
    }

    .meta-item {
        margin-right: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .blog-meta {
        padding: 1rem;
    }

    .related-posts {
        padding: 1.5rem;
    }

    .social-share {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .share-btn {
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .blog-header h1 {
        font-size: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.25rem;
    }

    .blog-image {
        height: 150px;
    }

    .form-actions .row > div {
        margin-bottom: 0.5rem;
    }

    .character-count {
        text-align: left;
        margin-top: 0.5rem;
    }

    .blog-content-text h1 {
        font-size: 1.5rem;
    }

    .blog-content-text h2 {
        font-size: 1.25rem;
    }

    .blog-content-text h3 {
        font-size: 1.125rem;
    }

    .meta-item {
        display: block;
        margin-bottom: 0.5rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .back-to-blog {
        position: static;
        margin-top: 1rem;
    }

    .related-post-card {
        padding: 0.75rem;
    }

    .toast-notification {
        min-width: 250px;
        margin: 0 10px;
    }

    /* Blog Detail Specific Styles */
    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .status-badge {
        margin-top: 1rem;
        align-self: flex-start;
        position: relative !important;
        top: auto !important;
        right: auto !important;
    }

    /* Blog header'ı mobilde column yap */
    .blog-header .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .blog-header .flex-grow-1 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
}

/* Blog Detail Specific Styles */
.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.related-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-card:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

* ====================================
RESİM BÜYÜTME ÖZELLİĞİ CSS KODLARI - DÜZELTILMIŞ
==================================== */
/* Image Container Styles */
.blog-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Zoom Button Styles */
.image-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10;
}

    .image-zoom-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
        color: #fff;
    }

    .image-zoom-btn:active {
        transform: scale(0.95);
    }

/* Modal Styles - DÜZELTILMIŞ ORTALAMA */
#imagePreviewModal {
    z-index: 1060;
}

    #imagePreviewModal .modal-dialog {
        margin: 0;
        width: 100vw;
        max-width: none;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    #imagePreviewModal .modal-content {
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(20px);
        border: none;
        border-radius: 0;
        width: auto;
        max-width: 95vw;
        max-height: 95vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #imagePreviewModal .modal-header {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
        background: none;
        border: none;
        padding: 0;
    }

    #imagePreviewModal .modal-body {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 100%;
        max-height: 100%;
        overflow: hidden;
    }

#previewImage {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-out;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

    #previewImage:hover {
        transform: scale(1.02);
    }

.image-info {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 20px;
    max-width: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#previewTitle {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.image-actions {
    margin-top: 15px;
}

    .image-actions .btn {
        border-radius: 25px;
        padding: 8px 20px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

        .image-actions .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.5);
        }

/* Close button styling */
#imagePreviewModal .btn-close {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #imagePreviewModal .btn-close:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-zoom-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 14px;
    }

    #imagePreviewModal .modal-dialog {
        padding: 0.5rem;
    }

    #imagePreviewModal .modal-body {
        padding: 1rem;
    }

    #previewImage {
        max-width: 95vw;
        max-height: 60vh;
    }

    .image-info {
        margin-top: 15px;
        padding: 12px 15px;
        max-width: 90vw;
    }

    #previewTitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .image-actions {
        margin-top: 10px;
    }

        .image-actions .btn {
            padding: 6px 15px;
            font-size: 14px;
            margin: 0 5px 5px 0;
        }

    #imagePreviewModal .btn-close {
        width: 35px;
        height: 35px;
        top: 5px;
        right: 5px;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    #previewImage {
        max-width: 85vw;
        max-height: 65vh;
    }

    .image-info {
        max-width: 80vw;
    }
}

/* Animation for modal appearance - DÜZELTILMIŞ */
#imagePreviewModal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-out;
}

#imagePreviewModal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Loading state */
#previewImage.loading {
    opacity: 0.3;
    filter: blur(2px);
    transition: all 0.3s ease;
}

/* Backdrop styling */
#imagePreviewModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.95);
}

/* Image container within modal */
.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50vh;
}

    #imagePreviewModal .btn-close:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-zoom-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 14px;
    }

    #imagePreviewModal .modal-dialog {
        padding: 0.5rem;
    }

    #imagePreviewModal .modal-body {
        padding: 1rem;
    }

    #previewImage {
        max-width: 95vw;
        max-height: 60vh;
    }

    .image-info {
        margin-top: 15px;
        padding: 12px 15px;
        max-width: 90vw;
    }

    #previewTitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .image-actions {
        margin-top: 10px;
    }

        .image-actions .btn {
            padding: 6px 15px;
            font-size: 14px;
            margin: 0 5px 5px 0;
        }

    #imagePreviewModal .btn-close {
        width: 35px;
        height: 35px;
        top: 5px;
        right: 5px;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    #previewImage {
        max-width: 85vw;
        max-height: 65vh;
    }

    .image-info {
        max-width: 80vw;
    }
}

/* Animation for modal appearance - DÜZELTILMIŞ */
#imagePreviewModal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-out;
}

#imagePreviewModal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Loading state */
#previewImage.loading {
    opacity: 0.5;
    filter: blur(2px);
}

/* Backdrop styling */
#imagePreviewModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.95);
}

/* Mobil Blog Detay Düzeltmeleri - blog.css dosyasına eklenecek */

/* Blog Image Container - Mobil Düzeltme */
.blog-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    background: #f8f9fa; /* Fallback background */
}

.blog-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Image Zoom Button */
.image-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

    .image-zoom-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
        color: white;
    }

/* Blog Content Text Formatting */
.blog-content-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

    .blog-content-text img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .blog-content-text p {
        margin-bottom: 1.5rem;
    }

    .blog-content-text h1,
    .blog-content-text h2,
    .blog-content-text h3,
    .blog-content-text h4,
    .blog-content-text h5,
    .blog-content-text h6 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

/* Status Badge Düzeltme */
.status-badge2 {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-onaylandi {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-bekliyor {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-reddedildi {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Fixes for Mobile */
#imagePreviewModal .modal-dialog {
    margin: 0;
    height: 100vh;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imagePreviewModal .modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#imagePreviewModal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#imagePreviewModal .image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    #imagePreviewModal .image-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Blog Header Mobile */
    .blog-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

        .blog-header .d-flex {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 1rem;
        }

        .blog-header .flex-grow-1 {
            margin-right: 0 !important;
            margin-bottom: 0;
            width: 100%;
        }

        .blog-header .flex-shrink-0 {
            width: 100%;
            display: flex;
            justify-content: flex-start;
        }

    /* Blog Title Mobile */
    .blog-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    /* Blog Meta Mobile */
    .blog-meta {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

        .blog-meta .row {
            flex-direction: column;
        }

        .blog-meta .col-md-8,
        .blog-meta .col-md-4 {
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .blog-meta .col-md-4 {
            text-align: left !important;
            margin-top: 0 !important;
        }

    .meta-item {
        display: flex;
        align-items: center;
        margin-right: 1rem;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }

    /* Blog Image Mobile */
    .blog-image-container {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .blog-image {
        min-height: 200px;
        border-radius: 8px;
    }

    /* Blog Content Mobile */
    .blog-content {
        margin-bottom: 1.5rem;
    }

    .blog-content-text {
        font-size: 1rem;
        line-height: 1.7;
    }

        .blog-content-text h1 {
            font-size: 1.5rem;
        }

        .blog-content-text h2 {
            font-size: 1.3rem;
        }

        .blog-content-text h3 {
            font-size: 1.2rem;
        }

    /* Social Share Mobile */
    .social-share {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

        .social-share .d-flex {
            flex-wrap: wrap;
            gap: 0.5rem;
        }

    .share-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    /* Cards Mobile */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .card-body {
        padding: 1rem;
    }

    /* Related Posts Mobile */
    .related-post-card {
        padding: 1rem;
    }

    .related-post-image {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }

    /* Toast Mobile */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast-notification {
        min-width: auto;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile */
    .blog-header {
        padding: 1rem;
        border-radius: 8px;
    }

    .blog-title {
        font-size: 1.5rem !important;
    }

    .blog-meta {
        padding: 0.75rem;
    }

    .meta-item {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .blog-content-text {
        font-size: 0.95rem;
    }

    .image-zoom-btn {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .share-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .status-badge2 {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Loading States */
.blog-image.loading {
    opacity: 0.5;
    background: #f8f9fa;
}

    .blog-image.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty Content State */
.empty-content {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

    .empty-content i {
        color: #dee2e6;
        margin-bottom: 1rem;
    }

/* Blog Tags Mobile */
.blog-tags {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

    .blog-tags .badge {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }