/* Blog Styles - Tüm blog sayfaları için CSS stilleri */

/* ---------- Genel Blog Alanı ---------- */
.blog-area,
.blog-details-area {
    padding: 80px 0;
    background-color: var(--body-bg);
}

/* ---------- Blog Kartları ---------- */
.blog-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-card {
    transition: all 0.3s ease;
}

.single-blog-post {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.single-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background-color: #f8f9fa;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-blog-post:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted-color);
    gap: 12px;
}

.post-meta li {
    margin: 0;
    display: flex;
    align-items: center;
}

.post-meta li i {
    margin-right: 5px;
    color: var(--primary-color);
    font-size: 14px;
}

.post-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.read-more-btn:hover {
    color: var(--primary-hover-color);
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* ---------- Blog Arama Formu ---------- */
.search-form {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.search-form .form-control {
    height: 54px;
    padding-right: 110px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 3px 15px rgba(var(--primary-color-rgb), 0.1);
}

.input-group {
    display: flex; /* Flexbox kullanarak öğeleri yan yana hizalar */
    width: 100%; /* Genişliği %100 yaparak alanı doğru şekilde kullanır */
}

.input-group .form-control {
    flex: 1; /* Arama kutusunun butondan fazla yer kaplamasını sağlar */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 100%; /* Butonun yüksekliğini input ile aynı yapar */
}

.search-form .btn {
    height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    border: none;
}

.search-form .btn i {
    margin-right: 5px;
}

@media (max-width: 576px) {
    .search-form .btn {
        padding: 0 15px;
    }
    
    .search-form .btn i {
        margin-right: 0;
    }
    
    .search-form .btn span {
        display: none;
    }
}

/* ---------- Sayfalama ---------- */
.pagination-area {
    margin-top: 40px;
}

.pagination {
    flex-wrap: wrap;
    gap: 5px;
}

.pagination .page-item .page-link {
    margin: 5px;
    border-radius: 8px;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: none;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ---------- Blog Detay Sayfası ---------- */
.blog-details-desc {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.article-image {
    margin: -30px -30px 25px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-content {
    position: relative;
}

.article-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.entry-meta {
    margin-bottom: 20px;
}

.entry-meta ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.entry-meta li {
    font-size: 14px;
    color: var(--muted-color);
    display: flex;
    align-items: center;
}

.entry-meta li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.blog-content {
    margin-top: 25px;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-content h2, 
.blog-content h3, 
.blog-content h4 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
}

.blog-content h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.blog-content h3 {
    font-size: 22px;
}

.blog-content h4 {
    font-size: 20px;
}

.blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content ul, 
.blog-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content blockquote {
    padding: 25px 30px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.blog-content blockquote::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(var(--primary-color-rgb), 0.2);
    font-size: 24px;
}

.blog-content blockquote p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.blog-content pre {
    background-color: var(--code-bg);
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.blog-content code {
    font-family: monospace;
    background-color: var(--code-bg);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--code-color);
}

/* ---------- İçindekiler Tablosu ---------- */
.toc-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.5);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.toc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.toc-header h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.toggle-toc {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-toc:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.toc-content {
    padding: 15px 20px;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-item {
    margin-bottom: 12px;
    position: relative;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0 5px 15px;
    border-left: 2px solid transparent;
    font-size: 15px;
}

.toc-link:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

.toc-item.ps-3 .toc-link {
    font-size: 14px;
    color: var(--muted-color);
    padding-left: 25px;
}

.toc-item.ps-3 .toc-link:hover {
    padding-left: 30px;
}

/* ---------- Sosyal Paylaşım Butonları ---------- */
.social-share-buttons {
    margin-left: auto;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 5px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.btn-facebook {
    background-color: #3b5998;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-whatsapp {
    background-color: #25d366;
}

/* ---------- Sidebar ---------- */
.widget-area {
    position: sticky;
    top: 20px;
}

.widget {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--border-color-rgb), 0.1);
}

.widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.widget-title {
    position: relative;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
    font-weight: 600;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* Widget: Son Yazılar / Popüler Yazılar */
.widget_recent_entries ul,
.widget_popular_posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li,
.widget_popular_posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.widget_recent_entries li:hover,
.widget_popular_posts li:hover {
    transform: translateX(5px);
}

.widget_recent_entries li:last-child,
.widget_popular_posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_recent_entries a,
.widget_popular_posts a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.post-image {
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.widget .post-image {
    min-width: 70px;
    height: 70px;
    margin-right: 15px;
}

.widget .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.widget a:hover .post-image img {
    transform: scale(1.1);
}

.post-info h6 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.widget a:hover .post-info h6 {
    color: var(--primary-color);
}

.post-date,
.post-views {
    font-size: 13px;
    color: var(--muted-color);
    display: flex;
    align-items: center;
}

.post-date i,
.post-views i {
    margin-right: 5px;
    color: var(--primary-color);
    font-size: 12px;
}

/* Widget: Arama Formu */
.widget .search-form {
    margin-bottom: 0;
}

.widget .search-form .form-control {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.widget .search-form .btn {
    background-color: var(--primary-color);
    color: #fff;
    height: 54px;
}

/* ---------- Responsive Düzenlemeler ---------- */
@media (max-width: 1199px) {
    .widget-area {
        position: static;
    }
}

@media (max-width: 991px) {
    .blog-details-desc {
        margin-bottom: 40px;
    }
    
    .widget-area {
        margin-top: 40px;
    }
    
    .article-content h1 {
        font-size: 26px;
    }
    
    .blog-content h2 {
        font-size: 22px;
    }
    
    .blog-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .article-content h1 {
        font-size: 24px;
    }
    
    .entry-meta ul {
        gap: 10px;
    }
    
    .social-share-buttons {
        margin-top: 15px;
        margin-left: 0;
    }
    
    .article-image {
        margin: -30px -30px 20px;
    }
    
    .blog-details-desc {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .article-image {
        margin: -20px -20px 20px;
    }
}

@media (max-width: 576px) {
    .article-content h1 {
        font-size: 22px;
    }
    
    .entry-meta ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .entry-meta .social-share-buttons {
        margin-top: 15px;
        width: 100%;
    }
    
    .blog-content h2 {
        font-size: 20px;
    }
    
    .blog-content h3 {
        font-size: 18px;
    }
    
    .widget-title {
        font-size: 18px;
    }
}

/* AOS (Animate On Scroll) */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

body {
    overflow-x: hidden;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0);
}

[data-aos="fade-left"] {
    transform: translate3d(-30px, 0, 0);
}

[data-aos="fade-right"] {
    transform: translate3d(30px, 0, 0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="fade-up"].aos-animate,
[data-aos="fade-left"].aos-animate,
[data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Mobil cihazlarda animasyon süresini kısalt */
@media (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0s !important;
    }
    
    [data-aos] {
        transition-duration: 600ms !important;
    }
} 