/* SOZLUKPRO Blog CSS */
/* Modern ve responsive blog tasarımı */

/* Blog Container */
.blog-container {
    margin: 2rem 0;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    margin-right: 0.5rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2d3436;
    border-bottom: 3px solid #0984e3;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-title i {
    margin-right: 0.5rem;
    color: #0984e3;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.blog-card.featured {
    border: 2px solid #f39c12;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.875rem;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-card-meta .category {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.blog-card-meta .date {
    color: #636e72;
    font-size: 0.875rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.blog-card-title a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #0984e3;
}

.blog-card-excerpt {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.author {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #636e72;
}

.author i {
    margin-right: 0.5rem;
}

.stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #636e72;
}

.views, .comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Blog Sidebar */
.blog-sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2d3436;
    border-bottom: 2px solid #0984e3;
    padding-bottom: 0.5rem;
}

.widget-title i {
    margin-right: 0.5rem;
    color: #0984e3;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #636e72;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-item:hover,
.category-item.active {
    background: #0984e3;
    color: white;
    border-color: #0984e3;
    text-decoration: none;
}

.category-item .category-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.category-name {
    flex-grow: 1;
}

.post-count {
    background: #e9ecef;
    color: #636e72;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-item:hover .post-count,
.category-item.active .post-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Blog Post Detail */
.blog-post-detail {
    margin: 2rem 0;
}

.post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-date {
    font-size: 0.875rem;
    opacity: 0.9;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.badge-category {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
}

/* Post Content */
.post-content {
    margin: 3rem 0;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
    margin-bottom: 3rem;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content-body blockquote {
    border-left: 4px solid #0984e3;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #636e72;
}

.content-body code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.content-body pre {
    background: #2d3436;
    color: #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Post Tags */
.post-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.post-tags h6 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.tag-link {
    display: inline-block;
    background: #0984e3;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.875rem;
    margin: 0.25rem;
    transition: background 0.3s ease;
}

.tag-link:hover {
    background: #74b9ff;
    color: white;
    text-decoration: none;
}

/* Social Share */
.social-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.social-share h6 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-twitter { background: #1da1f2; border-color: #1da1f2; }
.btn-facebook { background: #3b5998; border-color: #3b5998; }
.btn-linkedin { background: #0077b5; border-color: #0077b5; }
.btn-whatsapp { background: #25d366; border-color: #25d366; }

.btn-twitter:hover,
.btn-facebook:hover,
.btn-linkedin:hover,
.btn-whatsapp:hover {
    opacity: 0.8;
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 3rem 0;
}

.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-bio-content h5 {
    margin-bottom: 0.5rem;
    color: #2d3436;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
    padding: 3rem 0;
    background: #f8f9fa;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-3px);
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h6 {
    margin-bottom: 0.5rem;
}

.related-post-content h6 a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h6 a:hover {
    color: #0984e3;
}

/* Comments Section */
.comments-section {
    margin: 4rem 0;
    padding: 3rem 0;
}

.comment-form-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.comment-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: #0984e3;
    box-shadow: 0 0 0 0.2rem rgba(9, 132, 227, 0.25);
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.comment-date {
    font-size: 0.875rem;
    color: #636e72;
}

.comment-body {
    color: #2d3436;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-comments i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .blog-container {
        margin: 1rem 0;
    }
    
    .blog-header {
        padding: 2rem 0;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}