/* BLOG STYLES 
   Modern, Clean, and Premium Design using Ipek Hosting Blue theme 
*/

:root {
    --blog-primary: #2196F3;
    --blog-primary-dark: #1565C0;
    --blog-bg: #f8fafb;
    --blog-text-dark: #1a2035;
    --blog-text-muted: #6c757d;
    --blog-card-radius: 12px;
    --blog-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --blog-shadow-hover: 0 10px 30px rgba(33, 150, 243, 0.15);
}

.blog-page {
    background-color: var(--blog-bg);
    padding: 60px 0;
    font-family: inherit;
}

/* Page Header */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 15px;
}
.blog-header p {
    font-size: 16px;
    color: var(--blog-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Layout */
.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.blog-main {
    flex: 1;
    min-width: 0;
}
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Grid for 2 items in a row */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Adjust grid for smaller screens inside the main column */
@media (max-width: 1400px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .blog-layout { flex-direction: column; }
    .blog-sidebar { width: 100%; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-shadow-hover);
}
.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.blog-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--blog-text-muted);
}
.blog-category {
    background: rgba(33, 150, 243, 0.1);
    color: var(--blog-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}
.blog-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blog-text-dark);
    margin: 0 0 15px;
}
.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-title a:hover {
    color: var(--blog-primary);
}
.blog-readmore {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--blog-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.blog-readmore i {
    margin-left: 5px;
    transition: transform 0.2s;
}
.blog-readmore:hover i {
    transform: translateX(4px);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border-radius: var(--blog-card-radius);
    padding: 24px;
    box-shadow: var(--blog-shadow);
    margin-bottom: 30px;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--blog-text-dark);
    position: relative;
    padding-bottom: 10px;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--blog-primary);
    border-radius: 2px;
}
.search-form {
    display: flex;
}
.search-form input {
    flex: 1;
    border: 1px solid #e1e5eb;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 14px;
}
.search-form input:focus {
    border-color: var(--blog-primary);
}
.search-form button {
    background: var(--blog-primary);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.search-form button:hover {
    background: var(--blog-primary-dark);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin-bottom: 12px;
}
.category-list li:last-child {
    margin-bottom: 0;
}
.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--blog-text-dark);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    background: #f8fafb;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}
.category-list a:hover {
    background: var(--blog-primary);
    color: #fff;
}
.category-list span {
    background: #fff;
    color: var(--blog-text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.category-list a:hover span {
    color: var(--blog-primary);
}

/* Detail Page Specific */
.blog-detail-card {
    background: #fff;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
}
.blog-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.blog-detail-content {
    padding: 40px;
}
.blog-detail-content .blog-meta {
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}
.blog-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}
.blog-detail-intro {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--blog-text-muted);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--blog-primary);
}
.blog-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #3f4751;
}
.blog-detail-body p {
    margin-bottom: 20px;
}
.blog-detail-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--blog-text-dark);
}
.blog-detail-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e1e5eb;
    display: flex;
    align-items: center;
    gap: 15px;
}
.blog-share strong {
    font-size: 15px;
    color: var(--blog-text-dark);
}
.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f2f5;
    color: var(--blog-text-muted);
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.2s;
}
.share-links a.fb:hover { background: #1877f2; color: #fff; }
.share-links a.tw:hover { background: #1da1f2; color: #fff; }
.share-links a.in:hover { background: #c13584; color: #fff; }

/* Related Posts */
.related-posts {
    margin-top: 50px;
}
.related-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--blog-text-dark);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .blog-detail-content { padding: 25px; }
    .blog-detail-title { font-size: 24px; }
    .related-grid { grid-template-columns: 1fr; }
    .blog-detail-img { height: 250px; }
}

/* ─── NEW: Top Banner ─── */
.blog-top-banner {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    position: relative;
    height: 180px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--blog-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.blog-top-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(33, 150, 243, 0.15), transparent 50%);
}
.blog-top-banner::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--blog-primary), #42A5F5);
}
.blog-top-banner-content {
    position: relative;
    z-index: 1;
}
.blog-top-banner h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.blog-top-banner p {
    font-size: 16px;
    color: #94A3B8;
    margin: 0;
    font-weight: 400;
}

/* ─── NEW: Comment Area ─── */
.blog-comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e1e5eb;
}
.blog-comments-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 25px;
}
.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: #f8fafb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e1e5eb;
}
.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #e1e5eb;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.comment-content {
    flex: 1;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}
.comment-author {
    font-size: 16px;
    font-weight: 700;
    color: var(--blog-text-dark);
}
.comment-date {
    font-size: 12px;
    color: var(--blog-text-muted);
}
.reply-btn {
    font-size: 12px;
    color: var(--blog-primary);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}
.reply-btn:hover {
    color: var(--blog-primary-dark);
    text-decoration: underline;
}
.comment-text {
    font-size: 14px;
    color: #3f4751;
    line-height: 1.6;
    margin-top: 5px;
}
.comment-text .mention {
    color: var(--blog-primary);
    font-weight: 600;
    background: rgba(33, 150, 243, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
}

/* 1. Kırılım: Yorum Cevapları */
.comment-replies {
    margin-left: 65px;
    border-left: 2px solid #e1e5eb;
    padding-left: 20px;
}
.comment-replies .comment-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #f0f2f5;
}
@media (max-width: 576px) {
    .comment-replies {
        margin-left: 20px;
        padding-left: 15px;
    }
}

.comment-form {
    margin-top: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}
.comment-form h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--blog-text-dark);
}
.comment-form p.form-subtitle {
    font-size: 14px;
    color: var(--blog-text-muted);
    margin-bottom: 25px;
}
.comment-form .form-control {
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fcfdfe;
}
.comment-form .form-control:focus {
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
    background: #fff;
    outline: none;
}
.comment-submit-btn {
    background: linear-gradient(135deg, var(--blog-primary) 0%, #42A5F5 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(33,150,243,0.3);
}
.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33,150,243,0.4);
}

/* Detay sayfasından geri dönüş butonu */
.back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
    transition: color 0.2s;
}
.back-to-blogs:hover {
    color: var(--blog-primary);
}
.back-to-blogs i {
    font-size: 16px;
    transition: transform 0.2s;
}
.back-to-blogs:hover i {
    transform: translateX(-4px);
}
