/* All Water - Blog Pages CSS */

/* ============================================
   Blog Hero Section
   ============================================ */
.blog-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
    opacity: 0.3;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   Blog Filters
   ============================================ */
.blog-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    padding: 12px 30px;
    border: none;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

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

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

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    transform: translateY(-1px);
}

.date {
    color: #6b7280;
    font-size: 0.875rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #3b82f6;
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.author {
    color: #6b7280;
    font-size: 0.875rem;
}

.read-more {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #2563eb;
    gap: 8px;
}

.read-more i {
    transition: transform 0.2s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ============================================
   Blog Sidebar
   ============================================ */
.blog-sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #1f2937;
    display: flex;
    align-items: center;
}

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

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s ease;
}

.category-list a:hover,
.category-list a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.category-list .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.recent-posts-list a {
    text-decoration: none;
    color: inherit;
}

.recent-posts-list h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.recent-posts-list a:hover h4 {
    color: #3b82f6;
}

.recent-posts-list .date {
    font-size: 0.8125rem;
}

/* ============================================
   Blog Pagination
   ============================================ */
.blog-pagination .pagination {
    gap: 0.5rem;
}

.blog-pagination .page-link {
    border: none;
    background: white;
    color: #6b7280;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.blog-pagination .page-link:hover {
    background: #f3f4f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   Blog Detail Page
   ============================================ */
.breadcrumb-section {
    background: #f9fafb;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #3b82f6;
}

.breadcrumb-item.active {
    color: #1f2937;
    font-weight: 600;
}

.blog-post-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Post Hero Banner (Arka Plan Görsel)
   ============================================ */
.post-hero-banner {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}

.post-hero-content .post-meta {
    margin-bottom: 1rem;
}

.post-hero-content .post-meta span,
.post-hero-content .post-meta .date,
.post-hero-content .post-meta .reading-time,
.post-hero-content .post-meta .views {
    color: rgba(255, 255, 255, 0.9);
}

.post-hero-content .post-meta i {
    color: rgba(255, 255, 255, 0.8);
}

.post-hero-content .category-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    backdrop-filter: blur(4px);
}

.post-hero-content .post-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.post-hero-content .post-excerpt {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.post-header {
    position: relative;
    z-index: 10;
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-meta span,
.post-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta .category-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.post-meta .category-badge:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.post-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: #1f2937;
    font-weight: 600;
}

.author-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Author Section - İçerik Sonunda */
.post-author-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

/* Blog Post Content - TinyMCE İçerik Stilleri */
.post-content {
    position: relative;
    z-index: 5;
    display: block;
    clear: both;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
}

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

.post-content h4 {
    font-size: 1.25rem;
}

.post-content h5 {
    font-size: 1.125rem;
}

.post-content h6 {
    font-size: 1rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #2563eb;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content table th,
.post-content table td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.post-content table th {
    background: #f9fafb;
    font-weight: 600;
}

.post-content pre,
.post-content code {
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 6px;
}

.post-content code {
    padding: 2px 6px;
    font-size: 0.875em;
}

.post-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    padding: 0;
    background: transparent;
}

/* Blog Content Wrapper - TinyMCE uyumu */
.blog-content-wrapper {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tags Section */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags i {
    color: #6b7280;
    margin-right: 4px;
}

.post-tags .tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-tags .tag:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Share Section */
.post-share {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.post-share h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c66d8 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00669c 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

/* ============================================
   Related Posts
   ============================================ */
.related-posts {
    margin-top: 3rem;
}

.related-posts .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.related-post-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.related-post-card img,
.related-post-placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

.related-post-info {
    padding: 1rem;
}

.related-post-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    line-height: 1.4;
}

.related-post-card:hover h4 {
    color: #3b82f6;
}

.related-post-info .date {
    font-size: 0.8125rem;
}

/* ============================================
   Newsletter Form
   ============================================ */
.newsletter-form input {
    border: 1px solid #e5e7eb;
}

.newsletter-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================
   Sticky Sidebar
   ============================================ */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .blog-card-image {
        height: 200px;
    }

    .post-title {
        font-size: 2rem;
    }

    .sticky-sidebar {
        position: static;
    }

    /* Hero Banner Tablet */
    .post-hero-banner {
        min-height: 280px;
        margin: -1.25rem -1.25rem 1.5rem -1.25rem;
    }

    .post-hero-content {
        padding: 1.5rem;
    }

    .post-hero-content .post-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .blog-card-meta {
        font-size: 0.8125rem;
    }

    .blog-filters,
    .blog-post-detail {
        padding: 1.25rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        gap: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-pagination .page-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    /* Hero Banner Mobile */
    .post-hero-banner {
        min-height: 240px;
        margin: -1.25rem -1.25rem 1.25rem -1.25rem;
        border-radius: 0;
    }

    .post-hero-content {
        padding: 1.25rem;
    }

    .post-hero-content .post-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    .post-hero-content .post-excerpt {
        font-size: 0.9375rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-hero-content .post-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 575px) {
    .blog-hero {
        padding: 60px 0 40px;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .post-content {
        font-size: 1rem;
    }
}