/* ============================================
   BLOG MODULE CSS
   Tüm blog sayfaları için merkezi stil dosyası
   ============================================ */

/* ============================================
   BLOG LIST PAGE - Hero Section
   ============================================ */
.blog-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 80px 0;
    color: white;
}

.blog-hero .hero-content {
    padding-top: 0 !important;
}

.hero-subtitle {
    font-size: 14px;
    color: #e9ecef;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    color: white;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 0;
}

.hero-image {
    text-align: center;
}

.image-frame {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: white;
    padding: 25px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================
   BLOG LIST PAGE - Posts Grid
   ============================================ */
.blog-posts {
    padding: 80px 0;
    background: #fafafa;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    height: 100%;
    border: none;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

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

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

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

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 13px;
    color: #dc3545;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.blog-excerpt {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
}

.read-more {
    color: #dc3545;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: #c82333;
    transform: translateX(5px);
}

/* ============================================
   BLOG DETAIL PAGE - Hero Section
   ============================================ */
.blog-detail-hero-section {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 80px 0;
    color: white;
}

.blog-detail-hero-content {
    position: relative;
    z-index: 2;
}

.blog-detail-breadcrumb {
    margin-bottom: 24px;
}

.blog-detail-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px;
    margin: 0;
    justify-content: flex-start;
    display: inline-flex;
}

.blog-detail-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.blog-detail-breadcrumb .breadcrumb-item.active {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 2px 0;
    display: flex;
    align-items: center;
}

.blog-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.7);
    padding: 0 12px;
}

.blog-detail-hero-content .hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-detail-hero-content .hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.blog-detail-hero-content .hero-meta i {
    margin-right: 5px;
}

/* ============================================
   BLOG DETAIL PAGE - Content Section
   ============================================ */
.blog-detail-content-section {
    padding: 80px 0;
    background: #fff;
}

.blog-detail-main {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.blog-detail-cover {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.blog-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-body {
    padding: 40px;
}

.blog-detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    color: #000;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-detail-content h1 {
    font-size: 2.5rem;
}

.blog-detail-content h2 {
    font-size: 1.25rem;
}

.blog-detail-content h3 {
    font-size: 1.5rem;
}

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

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

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

.blog-detail-content li {
    margin-bottom: 10px;
}

.blog-detail-content a {
    color: #dc3545;
    text-decoration: none;
}

.blog-detail-content a:hover {
    text-decoration: underline;
}

/* ============================================
   BLOG DETAIL PAGE - Sidebar
   ============================================ */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.blog-sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-sidebar-card .sidebar-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-sidebar-card .sidebar-title i {
    color: #dc3545;
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.blog-sidebar-list a:hover {
    color: #dc3545;
}

.blog-sidebar-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-sidebar-list .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.pagination .page-link {
    border: none;
    color: #6c757d;
    padding: 12px 16px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: transparent;
}

/* ============================================
   LEGACY STYLES (Global CSS'ten taşınan)
   ============================================ */
.blog-breadcrumb {
    font-size: .75rem;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
}

.card-blog {
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    border-radius: 1rem;
    font-size: .875rem;
}

.card-blog h2 {
    font-size: 1rem;
    line-height: 1.25rem;
    margin-bottom: .25rem;
}

.card-blog .stretched-link {
    font-weight: 600;
}

.card-blog .text-primary {
    color: #101935 !important;
}

.blog-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 0 .5rem;
}

.blog-detail .blog-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.blog-detail .blog-cover img {
    border-radius: 1rem;
    height: 300px;
    width: 100%;
}

.blog-detail .blog-tags {
    margin: 1rem 0;
}

.blog-tags .tag {
    background-color: #f4f4f4;
    padding: .5rem;
    border-radius: .5rem;
    color: #000;
    display: inline-block;
    margin-right: 1rem;
}

.blog-detail .blog-content h2 {
    font-size: 1.25rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .image-frame {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }
    
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-posts {
        padding: 60px 0;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 768px) {
    .blog-detail-hero-content .hero-title {
        font-size: 32px;
    }

    .blog-detail-body {
        padding: 30px 20px;
    }

    .blog-detail-cover {
        height: 250px;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .image-frame {
        width: 200px;
        height: 200px;
    }
    
    .blog-card {
        margin-bottom: 30px;
    }
    
    .blog-image {
        height: 250px;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
}

