/* Blog Sayfası Stilleri */


/* Breadcrumb Alanı */
.breadcrumb-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0;
    height: 350px;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.breadcrumb-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.breadcrumb-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.breadcrumb-title {
    font-size: 70px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 16px;
    position: relative;
    z-index: 2;
    justify-content: center;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-color);
    transition: width 0.3s ease;
}

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

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb .separator {
    margin: 0 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Blog İçerik Düzeni */
.blog-content {
    padding: 80px 0; /* Üst boşluğu artırıldı */
}

/* Arama Kutusu */
.blog-search-container {
    margin-bottom: 30px;
}

.blog-search-form {
    position: relative;
    width: 100%;
}

.blog-search-form input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.blog-search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-search-form button:hover {
    color: var(--primary-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Yazısı Kartı */
.blog-post {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

.blog-post-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    z-index: 2;
}

.blog-post-date .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.blog-post-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 2px;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.blog-post-category {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.blog-post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.blog-post-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-post-read-more:hover {
    color: var(--primary-color-dark);
}

.blog-post-read-more:hover i {
    transform: translateX(5px);
}

/* Sayfalama */
.blog-pagination {
    margin-top: 30px;
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 30px;
    gap: 5px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #eee;
}

.pagination a.active {
    background-color: var(--red-color);
    color: white;
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* Blog Detay Sayfası Stilleri */
.blog-detay-content {
    padding: 80px 0; /* Üst boşluğu artırıldı */
}

.blog-detay-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Blog Detay İki Sütunlu Düzen */
.blog-detay-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Ana içerik 2/3, sidebar 1/3 oranında */
    gap: 40px;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .blog-detay-layout {
        grid-template-columns: 1fr; /* Tek sütun */
    }
    
    .blog-detay-sidebar {
        margin-top: 40px;
    }
}

/* Ana İçerik Alanı */
.blog-detay-main {
    width: 100%;
}

/* Yan Menü (Sidebar) */
.blog-detay-sidebar {
    width: 100%;
    position: sticky;
    top: 180px; /* Header'dan sonra başlaması için daha yüksek bir değer */
    max-height: calc(100vh - 200px); /* Ekran yüksekliğinden header yüksekliğini çıkarıp biraz daha kısa olmasını sağlar */
    overflow-y: auto; /* İçerik çok uzunsa kaydırma çubuğu gösterir */
    align-self: flex-start; /* Grid içinde üste hizalar */
    padding-bottom: 20px; /* Alt kısımda biraz boşluk bırakır */
}

.sidebar-widget {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Sidebar Benzer Yazılar */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-post {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-image {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

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

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

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sidebar-post-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.sidebar-post-date {
    font-size: 13px;
    color: #777;
    display: block;
}

/* Sidebar Kategoriler */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid #eee;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.sidebar-categories a span {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    color: #777;
}

.blog-detay-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.blog-detay-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-color);
}

.blog-detay-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #777;
}

.blog-detay-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-detay-category a {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-detay-category a:hover {
    text-decoration: underline;
}

.blog-detay-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-detay-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-detay-body {
    line-height: 1.7;
    color: #555;
}

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

.blog-detay-body h2, 
.blog-detay-body h3, 
.blog-detay-body h4 {
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.blog-detay-body blockquote {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: #666;
}

.blog-detay-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-detay-share h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.blog-detay-share .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-detay-share .social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Yorumlar ve Benzer Yazılar */
.blog-detay-comments, 
.blog-detay-related {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.blog-detay-comments h3, 
.blog-detay-related h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-posts-grid .blog-post {
    margin-bottom: 0; /* blog.css'ten gelen margin'i sıfırla */
}

.related-posts-grid .blog-post-image {
    height: 180px;
}

.related-posts-grid .blog-post-title {
    font-size: 18px;
}

/* Duyarlı Tasarım */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 60px 0;
    }
    
    .breadcrumb-title {
        font-size: 28px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-image {
        height: 220px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
    
    .blog-detay-title {
        font-size: 26px;
    }
    .blog-detay-wrapper {
        padding: 20px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blog-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .blog-post-image {
        height: 180px;
    }
    
    .blog-post-title {
        font-size: 18px;
    }
}
