/* ======================================
   Makbul Fikirler - Blog CSS
   minimal, clean design
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&display=swap');

/* -- Variables -- */
:root {
    --blog-primary: #2c3e50;
    --blog-accent: #c8a96e;
    --blog-accent-light: #f5efe4;
    --blog-bg: #ffffff;
    --blog-bg-alt: #f8f8f8;
    --blog-text: #333333;
    --blog-text-light: #777777;
    --blog-border: #e8e8e8;
    --blog-radius: 12px;
    --blog-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    --blog-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.08);
    --blog-transition: 0.3s ease;
    --blog-max-width: 1320px;
    --blog-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* -- Category Hero Slider -- */
.blog-hero-slider-section {
    position: relative;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 40px;
}

.blog-hero-header-overlay {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 20;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 32px;
    border-radius: var(--blog-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.blog-hero-header-overlay h1 {
    font-family: var(--blog-font);
    font-size: 32px;
    font-weight: 800;
    color: var(--blog-primary);
    margin: 0 0 12px;
    line-height: 1.2;
}

.blog-hero-header-overlay p {
    font-size: 15px;
    color: var(--blog-text-light);
    margin: 0;
    line-height: 1.6;
}

.blog-hero-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    background-color: transparent;
}

.blog-hero-slide {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 40 / 9;
    /* 2000x450 proportion */
    overflow: hidden;
    border-radius: var(--blog-radius);
    text-decoration: none;
    background: transparent;
}

.blog-hero-slide::before {
    display: none;
}

.blog-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--blog-radius);
    transition: transform 0.6s ease;
    opacity: 1 !important;
}

.blog-hero-swiper .swiper-slide-active .blog-hero-slide img {
    transform: scale(1.03);
}

.blog-hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 var(--blog-radius) var(--blog-radius);
}

.blog-hero-slide-name {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--blog-font);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
}

/* Navigation arrows */
.blog-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: var(--blog-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.blog-hero-prev {
    left: 16px;
}

.blog-hero-next {
    right: 16px;
}

.blog-hero-nav:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.08);
}



/* Responsive */
@media (max-width: 768px) {
    .blog-hero-slide {
        aspect-ratio: 16 / 9;
    }

    .blog-hero-header-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        margin-bottom: 20px;
        padding: 24px;
    }

    .blog-hero-header-overlay h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .blog-hero-header-overlay p {
        font-size: 14px;
        line-height: 1.4;
    }

    .blog-hero-slide-name {
        font-size: 20px;
        bottom: 20px;
    }

    .blog-hero-nav {
        width: 36px;
        height: 36px;
    }

    .blog-hero-prev {
        left: 10px;
    }

    .blog-hero-next {
        right: 10px;
    }

    .blog-hero-nav svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .blog-hero-slide {
        aspect-ratio: 16 / 10;
    }

    .blog-hero-header-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        margin-bottom: 16px;
        padding: 20px;
    }

    .blog-hero-header-overlay h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .blog-hero-header-overlay p {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    .blog-hero-slide-name {
        font-size: 16px;
        bottom: 16px;
    }

    .blog-hero-fraction {
        font-size: 11px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }
}

/* -- Kategoriye Ait Yazı Bölümleri -- */
.blog-category-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--blog-border);
}

.blog-category-section:last-of-type {
    border-bottom: none;
}

.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.blog-section-title {
    font-family: var(--blog-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 0;
    position: relative;
    padding-left: 16px;
}

.blog-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--blog-accent);
    border-radius: 2px;
}

.blog-section-viewall {
    font-family: var(--blog-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--blog-accent);
    text-decoration: none;
    transition: color var(--blog-transition);
    white-space: nowrap;
}

.blog-section-viewall:hover {
    color: var(--blog-primary);
    text-decoration: none;
}

/* Swiper overrides for section post sliders */
.blog-section-swiper {
    position: relative;
    padding: 0 40px;
}

.blog-section-swiper .swiper-button-prev,
.blog-section-swiper .swiper-button-next {
    color: var(--blog-accent);
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-section-swiper .swiper-button-prev::after {
    content: '\f104';
    /* FontAwesome fa-angle-left */
    font-family: 'FontAwesome';
    font-size: 20px;
    font-weight: 700;
}

.blog-section-swiper .swiper-button-next::after {
    content: '\f105';
    /* FontAwesome fa-angle-right */
    font-family: 'FontAwesome';
    font-size: 20px;
    font-weight: 700;
}

/* -- Blog Posts Section -- */
.blog-posts-section {
    padding-top: 32px;
    padding-bottom: 60px;
}

/* -- Category Hero Banner -- */
.blog-category-hero {
    position: relative;
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    border-radius: var(--blog-radius);
    margin-bottom: 32px;
}

.blog-category-hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.blog-category-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.blog-category-hero-overlay h2 {
    font-family: var(--blog-font);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* -- Category Header (Fallback without image) -- */
.blog-category-header {
    margin-bottom: 24px;
}

.blog-category-header h2 {
    font-family: var(--blog-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blog-accent);
    display: inline-block;
}

/* -- Blog Grid -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* -- Blog Card -- */
.blog-card {
    background: var(--blog-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
    transition: transform var(--blog-transition), box-shadow var(--blog-transition), border-color var(--blog-transition);
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-hover);
    border-color: transparent;
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}

/* Reading time overlay on image (Karaca style) */
.blog-card-reading-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    line-height: 1;
}

.blog-card-reading-overlay svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.blog-card-body {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-family: var(--blog-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--blog-primary);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
    min-height: 44px;
    /* 2 lines * 1.45 * 15px */
}

.blog-card-summary {
    font-size: 13px;
    color: var(--blog-text-light);
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 41px;
    /* 2 lines * 1.55 * 13px */
}

/* Card bottom: categories + date (Karaca style) */
.blog-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--blog-border);
    font-size: 12px;
}

.blog-card-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.blog-card-category-link {
    display: inline-block;
    color: var(--blog-accent);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-date {
    color: var(--blog-text-light);
    white-space: nowrap;
    font-size: 12px;
}

/* -- Blog Empty -- */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--blog-text-light);
}

.blog-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--blog-primary);
}

/* ========================================
   DETAIL PAGE
   ======================================== */

/* -- Breadcrumb -- */
.blog-breadcrumb {
    max-width: 820px;
    margin: 24px auto 0;
    padding: 0 20px;
    font-size: 13px;
    color: var(--blog-text-light);
}

.blog-breadcrumb a {
    color: var(--blog-accent);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb-separator {
    margin: 0 6px;
    color: #ccc;
}

/* -- Article -- */
.blog-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 20px;
}

.blog-article-header {
    margin-bottom: 32px;
}

.blog-article-header h1 {
    font-family: var(--blog-font);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--blog-primary);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.blog-article-category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.blog-article-category-tag {
    display: inline-block;
    background: var(--blog-accent-light);
    color: var(--blog-accent);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--blog-transition);
}

.blog-article-category-tag:hover {
    background: var(--blog-accent);
    color: #fff;
    text-decoration: none;
}

.blog-article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--blog-text-light);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--blog-border);
}

/* -- Featured Image -- */
.blog-featured-image {
    width: 100%;
    max-height: 460px;
    border-radius: var(--blog-radius);
    margin-bottom: 32px;
    object-fit: cover;
}

/* -- Content -- */
.blog-content {
    font-family: var(--blog-font);
    font-size: 17px;
    line-height: 1.85;
    color: var(--blog-text);
    letter-spacing: 0.1px;
}

.blog-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--blog-primary);
    letter-spacing: -0.3px;
}

.blog-content h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--blog-primary);
}

.blog-content p {
    margin: 0 0 20px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius);
    margin: 20px 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--blog-accent);
    background: var(--blog-bg-alt);
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
    color: var(--blog-text-light);
    font-style: italic;
}

.blog-content ul,
.blog-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.blog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* -- Previous / Next Navigation -- */
.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--blog-border);
}

.blog-post-nav-item {
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    border-radius: var(--blog-radius);
    background: var(--blog-bg-alt);
    transition: background var(--blog-transition);
}

.blog-post-nav-item:hover {
    background: var(--blog-accent-light);
    text-decoration: none;
}

.blog-post-nav-label {
    font-size: 12px;
    color: var(--blog-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.blog-post-nav-title {
    font-family: var(--blog-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-primary);
    line-height: 1.4;
}

.blog-post-nav-next {
    text-align: right;
}

/* -- Related Posts -- */
.blog-related {
    padding: 48px 20px 60px;
    overflow: hidden;
}

.blog-related-swiper {
    overflow: hidden;
    padding: 0;
    position: relative;
}

.blog-related-swiper .swiper-button-prev,
.blog-related-swiper .swiper-button-next {
    top: 40%;
}

.blog-related-swiper .swiper-button-prev {
    left: 0;
}

.blog-related-swiper .swiper-button-next {
    right: 0;
}

.blog-related h3 {
    font-family: var(--blog-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blog-accent);
    display: inline-block;
}

/* -- Author Bio -- */
.blog-author-bio {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--blog-bg-alt);
    border-radius: var(--blog-radius);
    margin-top: 40px;
}

.blog-author-bio img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--blog-primary);
    margin-bottom: 4px;
}

.blog-author-about {
    font-size: 13px;
    color: var(--blog-text-light);
    line-height: 1.5;
}

/* -- Social Share -- */
.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.blog-share-label {
    font-family: var(--blog-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-text-light);
    margin-right: 4px;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blog-bg-alt);
    color: var(--blog-text-light);
    text-decoration: none;
    transition: all var(--blog-transition);
    font-size: 16px;
}

.blog-share-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-share-whatsapp:hover {
    background: #25D366;
}

.blog-share-facebook:hover {
    background: #1877F2;
}

.blog-share-twitter:hover {
    background: #1DA1F2;
}

.blog-share-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.blog-share-linkedin:hover {
    background: #0A66C2;
}

.blog-share-pinterest:hover {
    background: #E60023;
}

.blog-share-email:hover {
    background: var(--blog-text-light);
}

.blog-share-copy:hover {
    background: var(--blog-accent);
}

/* -- Product Tags -- */
.blog-product-tags {
    margin-top: 48px;
    padding: 32px;
    background: var(--blog-bg-alt);
    border-radius: var(--blog-radius);
    border: 1px solid var(--blog-border);
}

.blog-product-tags h3 {
    font-family: var(--blog-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 0 0 20px;
}

.blog-product-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.blog-product-item {
    flex: 0 0 140px;
    text-align: center;
}

.blog-product-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-product-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--blog-radius);
    border: 1px solid var(--blog-border);
    margin-bottom: 8px;
    transition: box-shadow var(--blog-transition);
}

.blog-product-item:hover img {
    box-shadow: var(--blog-shadow-hover);
}

.blog-product-item .product-name {
    font-family: var(--blog-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--blog-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-card-title {
        font-size: 14px;
    }

    .blog-card-summary {
        display: none;
    }

    .blog-article-header h1 {
        font-size: 24px;
    }

    .blog-post-navigation {
        flex-direction: column;
    }

    .blog-category-swiper,
    .blog-section-swiper {
        padding: 0 28px;
    }

    .blog-category-swiper .swiper-button-prev,
    .blog-category-swiper .swiper-button-next,
    .blog-section-swiper .swiper-button-prev,
    .blog-section-swiper .swiper-button-next {
        width: 28px;
        height: 28px;
    }

    .blog-category-swiper .swiper-button-prev::after,
    .blog-category-swiper .swiper-button-next::after,
    .blog-section-swiper .swiper-button-prev::after {
        content: '\f104';
        /* FontAwesome fa-angle-left */
        font-family: 'FontAwesome';
        font-size: 20px;
        font-weight: 700;
    }

    .blog-section-swiper .swiper-button-next::after {
        content: '\f105';
        /* FontAwesome fa-angle-right */
        font-family: 'FontAwesome';
        font-size: 20px;
        font-weight: 700;
    }

    .blog-category-slide-image-wrap {
        width: 64px;
        height: 64px;
    }

    .blog-category-slide-name {
        font-size: 12px;
    }

    .blog-section-title {
        font-size: 18px;
    }

    .blog-share-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-category-swiper,
    .blog-section-swiper {
        padding: 0 20px;
    }

    .blog-category-swiper .swiper-button-prev,
    .blog-category-swiper .swiper-button-next,
    .blog-section-swiper .swiper-button-prev,
    .blog-section-swiper .swiper-button-next {
        width: 24px;
        height: 24px;
    }

    .blog-category-slide-image-wrap {
        width: 56px;
        height: 56px;
    }

    .blog-category-slide {
        min-width: 72px;
        gap: 6px;
    }

    .blog-category-slide-name {
        font-size: 11px;
    }

    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-share-label {
        display: none;
    }
}