/**
 * Blog Sayfası CSS Stilleri
 * Responsive ve modern tasarım
 */

/* Blog Page Layout */
.blog-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter */
.category-filter {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.category-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 2rem 0;
}

/* Blog Post Card */
.blog-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Post Image Container */
.post-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px 0 0 15px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Body */
.blog-post-card .card-body {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Post Meta */
.post-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.post-meta .text-muted {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Post Title */
.blog-post-card .card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-post-card .card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-post-card .card-title a:hover {
    color: #3498db;
}

/* Post Excerpt */
.blog-post-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Button */
.blog-post-card .btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-post-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: #667eea;
}

.blog-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #8e8e8e;
}

.blog-meta span {
    margin-right: 1rem;
}

.blog-meta i {
    margin-right: 0.25rem;
}

/* Sidebar */
.blog-sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popular-post {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.popular-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.popular-post-content h6 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.popular-post-content h6 a {
    color: #333;
    text-decoration: none;
}

.popular-post-content h6 a:hover {
    color: #667eea;
}

.popular-post-content small {
    color: #8e8e8e;
}

/* Blog Post Detail */
.blog-post-detail {
    padding-top: 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.breadcrumb-nav {
    padding: 1rem 0;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.post-header {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.post-title {
    color: #333;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.95rem;
}

.post-meta span {
    margin-right: 1rem;
}

.featured-image {
    text-align: center;
}

.featured-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.post-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.post-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Social Share */
.social-share {
    background: white;
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.share-buttons a {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Related Posts */
.related-posts {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Pagination */
.blog-pagination {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.pagination {
    margin-bottom: 0;
    justify-content: center;
}

.page-link {
    color: #667eea;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    text-decoration: none;
}

.page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-item.active .page-link {
    background: #667eea;
    border-color: #667eea;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: #fff;
    border-color: #dee2e6;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-posts i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-posts h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #8e8e8e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-card .card-img-top {
        height: 200px;
    }
    
    .post-header {
        padding: 2rem 1.5rem;
    }
    
    .post-content {
        padding: 2rem 1.5rem;
    }
    
    .social-share {
        padding: 1.5rem;
    }
    
    .related-posts {
        padding: 2rem 1.5rem;
    }
    
    .blog-sidebar {
        padding: 1.5rem;
    }
    
    .category-btn {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-meta span {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.75rem !important;
    }
    
    .featured-image img {
        max-height: 250px;
    }
    
    .share-buttons {
        text-align: center;
    }
    
    .share-buttons a {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading i {
    font-size: 2rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Search Box Styling */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box input {
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 0.75rem 3rem 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.search-box button:hover {
    background: #5a67d8;
}

/* Tag Cloud */
.tag-cloud .badge {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Blog Header */
    .blog-header {
        padding: 2rem 0;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }

    /* Blog Post Cards - Stack on Mobile */
    .blog-post-card .row {
        flex-direction: column;
    }
    
    .post-image {
        height: 200px;
        border-radius: 15px 15px 0 0;
        margin-bottom: 0;
    }
    
    .blog-post-card .card-body {
        padding: 1.5rem;
    }
    
    .blog-post-card .card-title {
        font-size: 1.2rem;
    }
    
    /* Post Meta - Stack on Mobile */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-meta > * {
        margin: 0;
    }
    
    /* Category Filter */
    .category-filter .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-btn {
        text-align: center;
        width: 100%;
    }

    /* Sidebar */
    .blog-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    /* Extra small screens */
    .blog-post-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-post-card .card-body {
        padding: 1rem;
    }
    
    .post-image {
        height: 180px;
    }
    
    .blog-post-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}
