/**
 * Blog Detail Page Styles - Minimal & Professional
 * 
 * @package Falscript
 * @author Senior PHP Developer
 * @version 2.0.0
 */

/* Minimal Page Header */
.minimal-page-header {
    padding: 100px 0 20px;
    background: var(--background-color);
    border-bottom: 1px solid #E5E7EB;
}

.minimal-page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.minimal-page-header .breadcrumb-item {
    color: var(--text-color);
    opacity: 0.7;
}

.minimal-page-header .breadcrumb-item a {
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.minimal-page-header .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.minimal-page-header .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-color);
    opacity: 0.5;
    padding: 0 0.5rem;
}

/* Content Section */
.blog-content-section {
    background: var(--background-color);
    padding: 60px 0;
}

/* Body background for blog detail */
body.blog-detail-page {
    background-color: var(--background-color) !important;
}

/* Main Article */
.blog-article {
    background: var(--background-color);
    /* Eğer arka plan koyu ise, makale alanını beyaz yapmak için */
    background: color-mix(in srgb, var(--background-color) 5%, white);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Article Header */
.article-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta .meta-item i {
    font-size: 0.875rem;
    opacity: 0.6;
}

.article-meta .meta-divider {
    color: #D1D5DB;
    font-size: 0.75rem;
}

.article-meta .category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.article-meta .category-link:hover {
    opacity: 0.8;
}

/* Featured Image */
.featured-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 3rem;
}

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

/* Article Summary */
.article-summary {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #4B5563;
    font-weight: 400;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 3rem;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111827;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.875rem;
}

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

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

.article-content p {
    margin-bottom: 1.75rem;
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.75rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: #F9FAFB;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: #4B5563;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

.article-content pre {
    background: #1F2937;
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.article-content code {
    background: #F3F4F6;
    color: #DC2626;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Consolas', 'Monaco', monospace;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Tags */
.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.tags-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #F3F4F6;
    color: #4B5563;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* Share Section */
.share-section {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #6B7280;
}

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

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: #F9FAFB;
    border-radius: 12px;
    align-items: center;
}

.author-avatar i {
    font-size: 3.5rem;
    color: #9CA3AF;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.author-bio {
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
    font-size: 0.875rem;
}


/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.widget-title {
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #E5E7EB;
}

/* Search Widget */
.search-widget .search-form {
    padding: 1.5rem;
    position: relative;
}

.search-widget .form-control {
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-widget .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.search-widget .search-btn {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #6B7280;
    border: none;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.search-widget .search-btn:hover {
    color: var(--primary-color);
}

/* Categories Widget */
.categories-widget .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget .category-list li {
    border-bottom: 1px solid #F3F4F6;
}

.categories-widget .category-list li:last-child {
    border-bottom: none;
}

.categories-widget .category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.categories-widget .category-list a:hover {
    background: #F9FAFB;
    color: var(--primary-color);
}

.categories-widget .category-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.categories-widget .category-count {
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* Popular Posts Widget */
.popular-posts {
    padding: 0;
}

.popular-post {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.popular-post:last-child {
    border-bottom: none;
}

.post-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.popular-post:nth-child(1) .post-number {
    background: var(--primary-color);
    color: white;
}

.popular-post .post-content {
    flex: 1;
    min-width: 0;
}

.popular-post .post-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popular-post .post-title a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.popular-post .post-meta {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Recent Posts Widget */
.recent-posts {
    padding: 0;
}

.recent-post {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post .post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    background: #F3F4F6;
}

.recent-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post .post-content {
    flex: 1;
    min-width: 0;
}

.recent-post .post-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-post .post-title a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.recent-post .post-meta {
    font-size: 0.75rem;
    color: #9CA3AF;
}

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

.cta-content {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: white;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cta-desc {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-widget .btn {
    background: white;
    color: var(--primary-color);
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cta-widget .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: white;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-title {
        font-size: 2rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .minimal-page-header {
        padding: 80px 0 15px;
    }
    
    .blog-content-section {
        padding: 40px 0;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        font-size: 0.813rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-header {
        padding-bottom: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .author-box {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}