/* assets/css/blog.css - Blog Sayfaları Stilleri */

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--gray-900);
    font-weight: 500;
}

/* Blog Hero */
.blog-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Layout */
.blog-content {
    padding: 60px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

/* Category List */
.category-list {
    list-style: none;
}

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

.category-list a {
    display: block;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.category-list a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.category-list a.active {
    background: var(--primary);
    color: white;
}

/* Blog Search */
.blog-search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 10px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.popular-post-item:hover {
    background: var(--gray-50);
}

.popular-post-title {
    flex: 1;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.popular-post-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: 12px;
    white-space: nowrap;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.post-image-link {
    display: block;
}

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

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

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

.post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
}

.post-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date,
.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
}

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

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-read-more:hover {
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.pagination-btn,
.pagination-number {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    min-width: 42px;
    justify-content: center;
}

.pagination-number:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.no-posts svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts h3 {
    font-size: 24px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

/* Article Page */
.article-page {
    padding: 40px 0 60px;
    background: white;
}

.article-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

/* Article Header */
.article-header {
    margin-bottom: 32px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
}

.article-category:hover {
    background: var(--primary-dark);
}

.article-date,
.article-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* Featured Image */
.article-featured-image {
    margin: 32px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-800);
}

.article-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--dark);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--dark);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--primary-dark);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 24px 0;
}

.article-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-sm);
    font-style: italic;
    color: var(--gray-700);
}

.article-body pre {
    margin: 24px 0;
    padding: 20px;
    background: #1e293b;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

.article-body code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-body :not(pre)>code {
    padding: 2px 6px;
    background: var(--gray-100);
    color: var(--danger);
    border-radius: 4px;
    font-size: 0.9em;
}

/* Table of Contents */
.table-of-contents {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 32px 0;
}

.table-of-contents h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--dark);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents li.h3 {
    padding-left: 20px;
}

.table-of-contents a {
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 6px 0;
}

.table-of-contents a:hover {
    color: var(--primary);
}

/* Share Buttons */
.article-share {
    margin: 48px 0;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.article-share h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid;
    background: white;
    cursor: pointer;
}

.share-twitter {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.share-twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-facebook {
    color: #1877F2;
    border-color: #1877F2;
}

.share-facebook:hover {
    background: #1877F2;
    color: white;
}

.share-linkedin {
    color: #0A66C2;
    border-color: #0A66C2;
}

.share-linkedin:hover {
    background: #0A66C2;
    color: white;
}

.share-copy {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.share-copy:hover {
    background: var(--gray-700);
    color: white;
    border-color: var(--gray-700);
}

/* Tags */
.article-tags {
    margin: 32px 0;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
}

.article-tags h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--gray-50);
}

.related-posts h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.related-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-post-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.related-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
}

.related-post-content {
    padding: 20px;
}

.related-post-content time {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.related-post-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.related-post-content h3 a:hover {
    color: var(--primary);
}

.related-post-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }

    .blog-main {
        order: 1;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-excerpt {
        font-size: 16px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 24px;
    }

    .post-meta {
        font-size: 12px;
        gap: 12px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}