/**
 * Blog Sayfası CSS
 */

/* Base Styles */
.blog-hero,
.blog-section {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.blog-hero h1,
.blog-hero h2,
.blog-hero h3,
.blog-hero p,
.blog-section h1,
.blog-section h2,
.blog-section h3,
.blog-section h4,
.blog-section p,
.blog-section span,
.blog-section a,
.blog-section label,
.blog-section input,
.blog-section button {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.blog-hero h1,
.blog-hero h2,
.blog-hero h3,
.blog-section h1,
.blog-section h2,
.blog-section h3,
.blog-section h4 {
    line-height: 1.3;
    margin: 0;
}

/* Font Awesome icons - don't override */
.blog-hero i,
.blog-section i,
.blog-hero .fa,
.blog-section .fa,
.blog-hero [class*="fa-"],
.blog-section [class*="fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* Blog Page Breadcrumb Override */
body:has(.blog-hero) .breadcrumb-section {
    background: linear-gradient(147deg, #4f92dc38 0%, #b9c9e600 100%);
    border-bottom: none;
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-list a {
    color: rgba(38, 38, 38, 0.9);
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-list a:hover {
    color: #303030;
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-list li {
    color: rgba(255, 255, 255, 0.7);
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-list li:last-child {
    color: #333;
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-list li::after {
    color: rgba(255, 255, 255, 0.5);
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-home-btn {
    background: rgba(255, 255, 255, 0.2);
}

body:has(.blog-hero) .breadcrumb-section .breadcrumb-home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Section - SSS tarzı */
.blog-hero {
    background: linear-gradient(135deg, #1e3a6e 0%, #2a5298 100%);
    padding: 10px 10px;
    margin: 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 50%);
    animation: blogHeroRotate 30s linear infinite;
}

@keyframes blogHeroRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blog-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero .hero-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.blog-hero .hero-subtitle {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Blog Section */
.blog-section {
    padding: 40px 0;
    background: #f5f7fa;
    min-height: 60vh;
    margin: 0;
}

.blog-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.filter-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d458b !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    line-height: 1.4 !important;
}

/* Search Form */
.search-form {
    width: 100% !important;
}

.search-input-wrapper {
    display: flex !important;
    gap: 8px !important;
}

.search-input {
    flex: 1 !important;
    padding: 10px 14px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    outline: none !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
}

.search-input:focus {
    border-color: #1d458b !important;
}

.search-input::placeholder {
    color: #999 !important;
    font-weight: 400 !important;
}

.search-btn {
    padding: 10px 14px !important;
    background: #1d458b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.search-btn:hover {
    background: #15346a !important;
}

/* Category List */
.category-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.category-list li {
    margin-bottom: 4px !important;
}

.category-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    gap: 10px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.category-link:hover {
    background: #f5f7fa !important;
}

.category-link.active {
    background: #1d458b !important;
    color: #fff !important;
}

.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.category-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.category-name {
    flex: 1 !important;
    line-height: 1.4 !important;
}

.category-count {
    background: #f0f0f0 !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    line-height: 1 !important;
}

/* Popular Posts */
.popular-posts {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.popular-posts li {
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.popular-posts li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.popular-post {
    display: flex !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.popular-post:hover h4 {
    color: #1d458b !important;
}

.popular-post-img {
    width: 70px !important;
    height: 50px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.popular-post-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.popular-post-content h4 {
    font-size: 15px !important;
    font-weight: 500 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.post-date {
    font-size: 11px !important;
    color: #888 !important;
    line-height: 1.3 !important;
}

/* Content Area */
.content-area {
    min-height: 400px;
}

.search-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-results-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.clear-filters {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-filters:hover {
    color: #c82333;
}

/* Blog Grid */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* Blog Card */
.blog-card {
    background: #fff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: box-shadow 0.3s ease !important;
}

.blog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.card-image {
    position: relative !important;
    height: 180px !important;
    overflow: hidden !important;
    display: block !important;
}

.card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.blog-card:hover .card-image img {
    opacity: 0.95 !important;
}

.card-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #e0e5eb 0%, #f0f2f5 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-image-placeholder i {
    font-size: 48px !important;
    color: #b0b8c4 !important;
}

.card-category {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1 !important;
    z-index: 2 !important;
    letter-spacing: 0.3px !important;
}

.card-content {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.card-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    color: #888 !important;
    line-height: 1.4 !important;
}

.card-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.blog-section .card-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
    min-height: auto !important;
}

.blog-section .card-title a {
    color: #222 !important;
    text-decoration: none !important;
    display: block !important;
    line-height: inherit !important;
}

.blog-section .card-title a:hover {
    color: #1d458b !important;
}

.card-excerpt {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.55 !important;
    margin: 0 0 auto 0 !important;
}

.read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1d458b !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 14px !important;
    line-height: 1 !important;
}

.read-more:hover {
    gap: 12px !important;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 12px 0;
}

.no-results p {
    color: #666;
    margin: 0 0 24px 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #1d458b;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary:hover {
    background: #15346a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

.page-btn:hover {
    background: #f5f7fa;
    border-color: #1d458b;
    color: #1d458b;
}

.page-btn.active {
    background: #1d458b;
    border-color: #1d458b;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .blog-section .main-layout {
        grid-template-columns: 1fr !important;
    }
    
    .blog-section .filters-sidebar {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .blog-section .filters-sidebar .filter-card {
        margin-bottom: 0 !important;
    }
    
    .blog-section .filters-sidebar .filter-card:first-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 36px !important;
    }
    
    .blog-hero {
        padding: 40px 0 !important;
    }
    
    .blog-section {
        padding: 40px 0 !important;
    }
    
    .blog-section .filters-sidebar {
        grid-template-columns: 1fr !important;
    }
    
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .search-results-info {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .blog-hero .hero-title {
        font-size: 28px !important;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 15px !important;
    }
    
    .card-content {
        padding: 16px !important;
    }
    
    .blog-section .card-title {
        font-size: 15px !important;
    }
}

