/* =========================================================== 
   BLOG STİLLERİ - MODERNİZE EDİLMİŞ CAM (GLASSMORPHISM) TASARIM
   =========================================================== */

/* ---------- TEMEL BLOG YAPISI ---------- */
.blog-container {
    background-color: #f9f9fc;
    min-height: 100vh;
    padding-top: 0.5rem;
    position: relative;
    margin-top: 65px; /* Header yüksekliği azaltıldı */
}

.blog-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/pattern-light.png');
    background-size: 200px;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.blog-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    font-weight: 300;
    position: relative;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
}

/* ---------- BLOG KARTLARI ---------- */
.blog-post-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 1rem;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
}

.blog-post-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        #FDC83D 0%, 
        #39A8E0 50%, 
        #FDC83D 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover:after {
    opacity: 1;
    animation: gradient-shift 5s linear infinite;
}

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

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

.blog-post-card .card-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.blog-post-card .card-title a {
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
    background-image: linear-gradient(transparent calc(100% - 2px), #39A8E0 2px);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    display: inline;
}

.blog-post-card .card-title a:hover {
    color: #39A8E0;
    background-size: 100% 100%;
}

/* ---------- BLOG SIDEBAR ---------- */
.blog-sidebar {
    position: sticky;
    top: 75px; /* Header yüksekliğine göre ayarlandı */
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 168, 224, 0.3) transparent;
}

.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(57, 168, 224, 0.3);
    border-radius: 10px;
}

.blog-sidebar .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-sidebar .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.08);
}

.blog-sidebar .card-header {
    background: linear-gradient(135deg, #39A8E0, #0d6efd);
    color: white;
    font-weight: 700;
    padding: 0.8rem 1.25rem;
    border: none;
    font-size: 1rem;
}

.blog-sidebar .card-body {
    padding: 1.2rem;
}

/* Tag cloud modern style */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin: 0 2px 6px 0;
}

.tag-cloud a:hover {
    text-decoration: none;
}

.tag-cloud .tag-item {
    position: relative;
    color: #444;
    background-color: #f0f7fc;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    margin: 0 3px 8px 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(57, 168, 224, 0.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.tag-cloud .tag-item:hover {
    background-color: #39A8E0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 168, 224, 0.3);
}

.tag-cloud .tag-item.tag-active {
    background-color: #39A8E0;
    color: white;
    border-color: #39A8E0;
    position: relative;
}

.tag-cloud .tag-item.tag-active::before {
    content: '✓';
    margin-right: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
}

.tag-cloud .tag-item.tag-active .tag-count {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.tag-cloud .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.05);
    color: #777;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.tag-cloud .tag-item:hover .tag-count {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

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

.categories-list li {
    margin-bottom: 0.4rem;
    position: relative;
}

.categories-list a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    font-weight: 500;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.categories-list a:before {
    content: '\f07b';
    font-family: 'Font Awesome 5 Free';
    margin-right: 10px;
    color: #39A8E0;
    font-weight: 900;
    font-size: 0.9rem;
}

.categories-list a:hover {
    color: #39A8E0;
    background-color: rgba(57, 168, 224, 0.05);
    border-left: 3px solid #39A8E0;
    transform: translateX(3px);
}

.categories-list a.active-category {
    color: #39A8E0;
    font-weight: 700;
    background-color: rgba(57, 168, 224, 0.08);
    border-left: 3px solid #39A8E0;
    transform: translateX(3px);
}

.categories-list a.active-category:before {
    content: '\f07c';
}

.categories-list .badge {
    background-color: rgba(57, 168, 224, 0.1);
    color: #39A8E0;
    border-radius: 30px;
    padding: 3px 7px;
    font-weight: 500;
    font-size: 0.7rem;
    min-width: 22px;
    text-align: center;
    transition: all 0.3s ease;
}

.categories-list a:hover .badge {
    background-color: #39A8E0;
    color: white;
}

/* ---------- TEK BLOG YAZISI SAYFASI ---------- */
.blog-single-container {
    background-color: #f9f9fc;
    min-height: 100vh;
    position: relative;
    padding-top: 0.5rem;
    margin-top: 65px; /* Header yüksekliğine göre ayarlandı */
}

.blog-single-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/pattern-light.png');
    background-size: 200px;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.blog-post-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.blog-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.03);
}

.blog-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

.blog-post-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.blog-post-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #39A8E0, #FDC83D);
}

.blog-post-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    padding: 0 0.5rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #222;
    position: relative;
}

.blog-post-content h2::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #39A8E0, rgba(57, 168, 224, 0.3));
}

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

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-post-navigation {
    margin: 3rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.blog-post-navigation a {
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.blog-post-navigation a:hover {
    color: #39A8E0;
}

/* ---------- BLOG ÇAĞRI ALANI (CTA) ---------- */
.blog-cta {
    background: linear-gradient(135deg, #39A8E0, #1a6ca9);
    border-radius: 14px;
    padding: 2rem 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(57, 168, 224, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.blog-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(253, 200, 61, 0.15);
    z-index: 0;
}

.blog-cta-content {
    position: relative;
    z-index: 1;
}

.blog-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.blog-cta-btn {
    background-color: #FDC83D;
    color: #333;
    font-weight: 700;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.blog-cta-btn:hover {
    background-color: #fff;
    color: #39A8E0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ---------- RESPONSIVE AYARLARI ---------- */
@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .blog-container, .blog-single-container {
        margin-top: 60px;
    }
}

@media (max-width: 767.98px) {
    .blog-card-img {
        height: 200px;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-cta {
        padding: 1.8rem 1.3rem;
    }
    
    .blog-cta h3 {
        font-size: 1.4rem;
    }

    .blog-container, .blog-single-container {
        margin-top: 55px;
        padding-top: 0.3rem;
    }

    .blog-post-content {
        padding: 0 0.5rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-post-card .card-body {
        padding: 1rem;
    }

    .blog-sidebar .card {
        margin-bottom: 1rem;
    }

    .blog-sidebar .card-header {
        padding: 0.8rem 1rem;
    }

    .blog-sidebar .card-body {
        padding: 1.2rem;
    }
}

/* ---------- TİPOGRAFİ İYİLEŞTİRMELERİ ---------- */
.blog-post-content blockquote {
    border-left: 4px solid #39A8E0;
    padding: 1.5rem 2rem;
    font-style: italic;
    color: #444;
    margin: 2rem 0;
    background-color: rgba(57, 168, 224, 0.05);
    border-radius: 0 12px 12px 0;
}

.blog-post-content blockquote p:last-child {
    margin-bottom: 0;
}

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

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

.blog-post-content a,
.blog-category-link {
    color: #39A8E0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-image: linear-gradient(transparent calc(100% - 2px), #39A8E0 2px);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    display: inline;
}

.blog-post-content a:hover,
.blog-category-link:hover {
    color: #39A8E0;
    background-size: 100% 100%;
}

/* Blog meta styling */
.blog-meta-item {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Modern read more link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: #39A8E0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.blog-read-more:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #39A8E0;
    transition: width 0.3s ease;
}

.blog-read-more:hover {
    color: #1a6ca9;
    transform: translateX(3px);
}

.blog-read-more:hover:after {
    width: 100%;
}

.blog-post-content code {
    background-color: #f4f4f8;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.blog-post-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Modern kategori pills */
.categories-visual {
    margin-top: 1.5rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background-color: #f8f9fa;
    border-radius: 30px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.category-pill:hover {
    background-color: rgba(57, 168, 224, 0.1);
    color: #39A8E0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(57, 168, 224, 0.15);
}

.category-pill.category-active {
    background-color: #39A8E0;
    color: white;
    border-color: #39A8E0;
}

.category-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.05);
    color: inherit;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.category-pill:hover .category-pill-count {
    background-color: rgba(255,255,255,0.15);
}

.category-pill.category-active .category-pill-count {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

/* Featured tag cloud for tag page */
.tag-cloud-featured .tag-item {
    padding: 6px 15px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tag-cloud-featured .tag-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(57, 168, 224, 0.2);
}

.tag-cloud-featured .tag-count {
    width: 24px;
    height: 24px;
}

/* Modern hover effects for blog cards */
.blog-post-card:hover .card-title a {
    color: #39A8E0;
}
