/* assets/css/blog.css */

.blog-page,
.blog-detail-page {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Yazılar Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Post Kartı */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.2);
}

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

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

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

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.post-category a {
    color: white;
    text-decoration: none;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #888;
}

.post-meta i {
    margin-right: 4px;
    color: #667eea;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Kategori Listesi */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-list .count {
    background: white;
    color: #667eea;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

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

/* Popüler ve Son Yazılar */
.popular-posts,
.recent-posts {
    list-style: none;
    padding: 0;
}

.popular-posts li,
.recent-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-posts li:last-child,
.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-posts a,
.recent-posts a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.popular-posts a i,
.recent-posts a i {
    color: #667eea;
    font-size: 12px;
}

.popular-posts a:hover,
.recent-posts a:hover {
    color: #667eea;
}

/* Arama Formu */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 2px solid #f0f0f0;
    border-radius: 6px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #667eea;
}

.search-form button {
    width: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* Etiket Bulutu */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 5px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Boş Yazı */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.no-posts i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    color: #666;
}

/* Blog Detay Sayfası */
.blog-detail-page {
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    color: #999;
    font-size: 12px;
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.blog-post .post-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.blog-post .post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-post .post-image {
    height: 400px;
    margin-bottom: 30px;
}

.blog-post .post-content {
    padding: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-post .post-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.blog-post .post-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
}

.blog-post .post-content p {
    margin-bottom: 20px;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

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

/* Paylaş Butonları */
.post-share {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.post-share h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

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

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Yazı Navigasyonu */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    justify-content: flex-end;
}

.nav-link i {
    font-size: 16px;
    color: #667eea;
}

.nav-link:hover i {
    color: white;
}

.nav-link span {
    display: flex;
    flex-direction: column;
}

.nav-link small {
    font-size: 12px;
    color: #999;
}

.nav-link:hover small {
    color: rgba(255,255,255,0.8);
}

/* Yorumlar */
.post-comments {
    margin-top: 40px;
}

.post-comments h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.no-comments {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.comments-list {
    margin-bottom: 40px;
}

.comment {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-author i {
    margin-right: 5px;
    color: #667eea;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.comment-date i {
    margin-right: 5px;
}

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

/* Yorum Formu */
.comment-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.comment-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

/* Alertler */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid,
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        padding: 20px;
    }
    
    .blog-post .post-title {
        font-size: 24px;
    }
    
    .blog-post .post-image {
        height: 250px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
}