/**
 * TopServ Blog Styles
 * Following the TopServ design system
 */

/* ==========================================================================
   Blog Hero Section
   ========================================================================== */

.blog-hero {
    background-color: var(--black, #001831);
    padding: 80px 0;
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-label {
    display: inline-block;
    color: var(--orange-medium, #ffb703);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.blog-hero-title {
    color: var(--white, #fff);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.blog-hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Blog Posts Grid Section
   ========================================================================== */

.blog-posts-section {
    background-color: var(--white, #fff);
    padding: 80px 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ==========================================================================
   Blog Card
   ========================================================================== */

.blog-card {
    background: var(--white, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-image-link {
    display: block;
    text-decoration: none;
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--kütüp-library--dark-slate-grey, #264653);
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.blog-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-card-date {
    color: var(--kütüp-library--dim-grey, #6e6e6e);
    font-size: 14px;
    font-weight: 500;
}

.blog-card-separator {
    color: var(--kütüp-library--dim-grey, #6e6e6e);
    font-size: 14px;
}

.blog-card-category {
    color: var(--blue-medium, #219ebc);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-category:hover {
    color: var(--orange-medium, #ffb703);
}

.blog-card-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--black, #001831);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--blue-medium, #219ebc);
}

.blog-card-excerpt {
    color: var(--kütüp-library--dim-grey, #6e6e6e);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-medium, #219ebc);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.blog-card-link:hover {
    color: var(--orange-medium, #ffb703);
    gap: 12px;
}

.blog-card-link svg {
    transition: transform 0.2s ease;
}

.blog-card-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Blog Pagination
   ========================================================================== */

.blog-pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination-links a,
.blog-pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination-links a {
    color: var(--black, #001831);
    background: rgba(0, 0, 0, 0.05);
}

.blog-pagination-links a:hover {
    background: var(--blue-medium, #219ebc);
    color: var(--white, #fff);
}

.blog-pagination-links .current {
    background: var(--blue-medium, #219ebc);
    color: var(--white, #fff);
}

.blog-pagination-links .prev,
.blog-pagination-links .next {
    gap: 8px;
}

.blog-pagination-links .dots {
    background: transparent;
    color: var(--kütüp-library--dim-grey, #6e6e6e);
}

/* ==========================================================================
   No Posts State
   ========================================================================== */

.blog-no-posts {
    text-align: center;
    padding: 80px 0;
}

.blog-no-posts h2 {
    color: var(--black, #001831);
    font-size: 32px;
    margin-bottom: 16px;
}

.blog-no-posts p {
    color: var(--kütüp-library--dim-grey, #6e6e6e);
    font-size: 18px;
}

/* ==========================================================================
   Single Post Header
   ========================================================================== */

.single-post-header {
    background-color: var(--black, #001831);
    padding: 60px 0 40px;
}

.single-post-header-content {
    max-width: 800px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-post-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.single-post-separator {
    color: rgba(255, 255, 255, 0.4);
}

.single-post-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.single-post-category {
    color: var(--orange-medium, #ffb703);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-post-category:hover {
    color: var(--white, #fff);
}

.single-post-title {
    color: var(--white, #fff);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.single-post-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1.6;
}

.single-post-excerpt p {
    margin: 0;
}

/* ==========================================================================
   Single Post Featured Image
   ========================================================================== */

.single-post-featured-image {
    margin-top: -40px;
    margin-bottom: 60px;
}

.single-post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Single Post Content
   ========================================================================== */

.single-post-content {
    max-width: 1230px;
    margin: 0 auto;
}

/* Reset max-width on all blocks inside single post content */
.single-post-content > *,
.single-post-content .w-layout-blockcontainer,
.single-post-content .container-1230,
.single-post-content .grid,
.single-post-content section {
    max-width: unset;
}

/* ==========================================================================
   Single Post Footer (Tags & Navigation)
   ========================================================================== */

.single-post-footer {
    padding: 60px 0;
    background-color: var(--white, #fff);
}

/* ==========================================================================
   Single Post Tags
   ========================================================================== */

.single-post-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.single-post-tags-label {
    color: var(--black, #001831);
    font-size: 16px;
    font-weight: 600;
}

.single-post-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.single-post-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(33, 158, 188, 0.1);
    color: var(--blue-medium, #219ebc);
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-post-tag:hover {
    background: var(--blue-medium, #219ebc);
    color: var(--white, #fff);
}

/* ==========================================================================
   Single Post Navigation
   ========================================================================== */

.single-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background: rgba(33, 158, 188, 0.1);
}

.post-nav-placeholder {
    background: transparent;
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-medium, #219ebc);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-nav-title {
    color: var(--black, #001831);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */

.related-posts-section {
    background-color: #f5f5f5;
    padding: 80px 0;
    overflow: visible;
}

.related-posts-section .container-1230 {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Use theme's standard .heading-line and .standart-heading classes */

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

.related-post-card .blog-card-image {
    height: 180px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet */
@media screen and (max-width: 991px) {
    .blog-hero {
        padding: 60px 0;
    }

    .blog-hero-title {
        font-size: 36px;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .single-post-title {
        font-size: 36px;
    }

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

/* Mobile Landscape */
@media screen and (max-width: 767px) {
    .blog-hero {
        padding: 50px 20px;
    }

    .blog-hero-title {
        font-size: 32px;
    }

    .blog-hero-description {
        font-size: 16px;
    }

    .blog-posts-section {
        padding: 50px 20px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-image {
        height: 200px;
    }

    .single-post-header {
        padding: 50px 20px 40px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .single-post-excerpt {
        font-size: 18px;
    }

    .single-post-featured-image {
        padding: 0 20px;
        margin-top: -30px;
        margin-bottom: 40px;
    }

    .single-post-footer {
        padding: 40px 20px;
    }

    .single-post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
        align-items: flex-start;
    }

    .related-posts-section {
        padding: 50px 0;
    }

    .related-posts-section .container-1230 {
        padding: 0 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Small Mobile */
@media screen and (max-width: 479px) {
    .blog-hero-title {
        font-size: 28px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .blog-pagination-links a,
    .blog-pagination-links span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .single-post-title {
        font-size: 24px;
    }

    .post-nav-link {
        padding: 16px;
    }

    .post-nav-title {
        font-size: 16px;
    }
}
