/* ========================================
   BLOG PAGE STYLES
   SEO Odaklı, B2B Dönüşüm Hedefli
   Tam Responsive Tasarım
======================================== */

/* ========================================
   BLOG HERO SECTION
======================================== */
.blog-hero {
    background: linear-gradient(135deg, rgba(139,69,19,0.9) 0%, rgba(101,67,33,0.95) 100%), 
                url('../images/fabrika.jpg') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.7;
}

.blog-hero .hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ========================================
   BLOG CATEGORIES SECTION
======================================== */
.blog-categories-section {
    background: white;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.categories-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.category-nav-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(139,69,19,0.3);
    z-index: 2;
}

.category-nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.category-nav-btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.category-nav-btn i {
    font-size: 0.9rem;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 5px 0;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-btn i {
    font-size: 0.85rem;
}

/* ========================================
   MAIN BLOG SECTION
======================================== */
.blog-main-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* ========================================
   BLOG TOOLBAR
======================================== */
.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.toolbar-left .results-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sort-dropdown select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* ========================================
   BLOG GRID
======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ========================================
   BLOG CARD
======================================== */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
}

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

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

.blog-card.featured .blog-card-image img {
    height: 100%;
    min-height: 320px;
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-editor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.blog-card.featured .blog-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card.featured .blog-title {
    font-size: 1.5rem;
}

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

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

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card.featured .blog-excerpt {
    -webkit-line-clamp: 4;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* ========================================
   BLOG PAGINATION
======================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* ========================================
   BLOG SIDEBAR
======================================== */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.sidebar-cta .cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sidebar-cta .cta-icon i {
    font-size: 2rem;
    color: white;
}

.sidebar-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.sidebar-cta p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* Sidebar Widget */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.widget-title i {
    color: var(--primary-color);
}

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

.popular-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.popular-post:hover {
    background: var(--bg-light);
}

.popular-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.quick-links a i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* ========================================
   BOTTOM CTA SECTION
======================================== */
.blog-bottom-cta {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.bottom-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bottom-cta-content > i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.bottom-cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.bottom-cta-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.bottom-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
======================================== */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-card-image img {
        height: 250px;
        min-height: auto;
    }
}

/* ========================================
   RESPONSIVE - TABLET SMALL (max-width: 900px)
======================================== */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-cta {
        grid-column: span 2;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
======================================== */
@media (max-width: 768px) {
    .blog-hero {
        min-height: auto;
        padding: 60px 15px;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-hero .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-hero .hero-cta-group .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .blog-categories-section {
        padding: 15px 0;
    }
    
    .categories-wrapper {
        gap: 10px;
    }
    
    .category-nav-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .blog-main-section {
        padding: 30px 0;
    }
    
    .blog-toolbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: auto;
    }
    
    .blog-card.featured .blog-title {
        font-size: 1.25rem;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-cta {
        grid-column: auto;
    }
    
    .bottom-cta-content h2 {
        font-size: 1.4rem;
    }
    
    .bottom-cta-content p {
        font-size: 0.95rem;
    }
    
    .bottom-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bottom-cta-buttons .btn,
    .bottom-cta-buttons .btn-whatsapp,
    .bottom-cta-buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 576px)
======================================== */
@media (max-width: 576px) {
    .blog-hero {
        padding: 50px 15px;
    }
    
    .blog-hero h1 {
        font-size: 1.4rem;
    }
    
    .blog-hero p {
        font-size: 0.95rem;
    }
    
    .categories-scroll {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .category-btn i {
        display: none;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.05rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .blog-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .popular-post img {
        width: 60px;
        height: 60px;
    }
    
    .popular-post-title {
        font-size: 0.9rem;
    }
    
    .bottom-cta-content > i {
        font-size: 2.5rem;
    }
    
    .bottom-cta-content h2 {
        font-size: 1.25rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .blog-hero,
    .blog-categories-section,
    .blog-sidebar,
    .blog-bottom-cta,
    .blog-pagination {
        display: none;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* ========================================
   CATEGORY FILTER (Ek Stiller)
======================================== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-filter .category-btn .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.category-filter .category-btn.active .count {
    background: rgba(255,255,255,0.2);
}

/* Sidebar Widget Ek Stiller */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-list li a:hover,
.category-list li.active a {
    background: var(--bg-light);
    color: var(--primary-color);
}

.category-list li a .count {
    margin-left: auto;
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Popular Posts Widget */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts li a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.popular-posts li a:hover {
    background: var(--bg-light);
}

.popular-posts li a img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-posts .post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-posts .post-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-posts .post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.cta-widget .widget-title i {
    color: white;
}

.cta-widget .cta-content {
    text-align: center;
}

.cta-widget .cta-content i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.cta-widget .cta-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cta-widget .cta-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.cta-widget .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-widget .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Newsletter Widget */
.newsletter-widget .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-widget .newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-widget .newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.newsletter-widget .newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Search Widget */
.search-widget .search-form {
    display: flex;
    gap: 0;
}

.search-widget .search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
}

.search-widget .search-form button {
    padding: 12px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-widget .search-form button:hover {
    background: var(--primary-dark);
}

/* Hero Section Ek Stiller */
.blog-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.blog-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1rem;
    }
}
