/* ===================================
   BLOG DETAIL PAGE STYLES
   OstimPro Blog Detail CSS - Extracted from blog-detail.php
   =================================== */

/* Açık Tema - Blog Detay */
.blog-detail-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

.blog-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout with Sidebar */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.blog-detail-main {
    min-width: 0;
}

/* Article Header */
.article-header {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-title {
    font-family: 'Exo', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.3;
    text-align: center;
}

.article-meta {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: #666666;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    justify-content: center;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-content p {
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.9;
    margin-bottom: 20px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Exo', sans-serif;
    color: #1a1a1a;
    margin-top: 35px;
    margin-bottom: 18px;
}

.article-content h2 {
    font-size: 28px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content ul,
.article-content ol {
    color: #333333;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.9rem;
}

.article-content a {
    color: #c01a22;
    text-decoration: none;
}

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

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

.article-content blockquote {
    border-left: 4px solid #c01a22;
    padding-left: 20px;
    margin: 25px 0;
    color: #555555;
    font-style: italic;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Back to Blog Button */
.back-to-blog {
    text-align: center;
    margin-bottom: 40px;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c01a22;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 25px;
    border: 2px solid #c01a22;
    border-radius: 8px;
    transition: all 0.3s;
    background: #ffffff;
}

.back-to-blog a:hover {
    background: #c01a22;
    color: #ffffff;
}

/* Related Posts */
.related-posts {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-posts h2 {
    font-family: 'Exo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c01a22;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    box-shadow: 0 10px 25px rgba(192, 26, 34, 0.15);
    transform: translateY(-3px);
    border-color: #c01a22;
}

.related-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #e0e0e0;
}

.related-card-content {
    padding: 18px;
}

.related-card-title {
    font-family: 'Exo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-date {
    font-size: 12px;
    color: #888888;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget-title {
    font-family: 'Exo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c01a22;
}

/* Sidebar Search */
.sidebar-search-form {
    display: flex;
    gap: 10px;
}

.sidebar-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Exo', sans-serif;
    transition: border-color 0.3s;
    background: #f8f9fa;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: #c01a22;
    background: #fff;
}

.sidebar-search-btn {
    background: #c01a22;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search-btn:hover {
    background: #a01520;
}

.sidebar-search-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Kategori Listesi */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 6px;
    margin-bottom: 5px;
}

.sidebar-categories a:hover,
.sidebar-categories a.active {
    background: rgba(192, 26, 34, 0.1);
    color: #c01a22;
}

.sidebar-categories .count {
    background: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-categories a:hover .count,
.sidebar-categories a.active .count {
    background: #c01a22;
    color: #fff;
}

/* Son Yazılar */
.sidebar-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-item:first-child {
    padding-top: 0;
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

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

.sidebar-post-title {
    font-family: 'Exo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-post-title a:hover {
    color: #c01a22;
}

.sidebar-post-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .blog-detail-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 1024px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 30px 25px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-featured-image {
        height: 250px;
    }

    .article-content {
        padding: 30px 25px;
    }

    .article-meta {
        display: none;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}
