﻿/* Homepage blog slider + cards */
.blog-section {
    --blog-gap: 1.25rem;
    --blog-visible: 1;
}

@media (min-width: 640px) {
    .blog-section {
        --blog-visible: 2;
    }
}

@media (min-width: 1024px) {
    .blog-section {
        --blog-visible: 4;
        --blog-gap: 1.5rem;
    }
}

.blog-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .blog-section__header {
        margin-bottom: 1.5rem;
    }
}

.blog-section__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .blog-section__title {
        font-size: 1.5rem;
    }
}

.blog-section__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #96633f;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: color 0.2s;
}

.blog-section__link:hover {
    color: #f37021;
}

.blog-section__slider {
    position: relative;
}

.blog-section__track {
    display: flex;
    gap: var(--blog-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
    margin: 0 2.5rem;
}

@media (min-width: 768px) {
    .blog-section__track {
        margin: 0 2.75rem;
    }
}

.blog-section__slot {
    flex: 0 0 calc((100% - (var(--blog-visible) - 1) * var(--blog-gap)) / var(--blog-visible));
    width: calc((100% - (var(--blog-visible) - 1) * var(--blog-gap)) / var(--blog-visible));
    scroll-snap-align: start;
    min-width: 0;
}

.blog-section__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-section__nav:hover {
    border-color: #96633f;
    color: #96633f;
}

.blog-section__nav--prev {
    left: 0;
}

.blog-section__nav--next {
    right: 0;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    padding: 0.875rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-post-card:hover {
    transform: translateY(-4px);
    border-color: #e5e7eb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.blog-post-card__image-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

.blog-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-post-card__date {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.75rem;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3rem 0.625rem;
    border-radius: 9999px;
    line-height: 1;
}

.blog-post-card__title {
    margin-top: 0.625rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.blog-post-card:hover .blog-post-card__title {
    color: #96633f;
}

@media (min-width: 768px) {
    .blog-post-card__title {
        font-size: 0.9375rem;
    }
}

.blog-post-card__excerpt {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-post-card__excerpt {
        font-size: 0.8125rem;
    }
}



/* ——— Blog detay ——— */
.blog-detail {
    background: #fbf8f4;
}

.blog-detail__hero {
    position: relative;
    min-height: clamp(300px, 50vw, 460px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #2f241c;
}

.blog-detail__hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail__hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 14, 10, 0.2) 0%, rgba(20, 14, 10, 0.78) 100%),
        linear-gradient(90deg, rgba(20, 14, 10, 0.45) 0%, transparent 60%);
}

.blog-detail__hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.5rem 1rem 2.25rem;
    color: #fff;
}

@media (min-width: 768px) {
    .blog-detail__hero-inner {
        padding: 5.5rem 1.5rem 2.75rem;
    }
}

.blog-detail__crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
}

.blog-detail__crumb a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
}

.blog-detail__crumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.blog-detail__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 197, 66, 0.95);
}

.blog-detail__title {
    margin: 0 0 0.9rem;
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .blog-detail__title {
        max-width: 22ch;
    }
}

.blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.82);
}

.blog-detail__dot {
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.5);
}

.blog-detail__shell {
    max-width: 1280px;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.blog-detail__grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .blog-detail__grid {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 2.25rem;
        align-items: start;
    }
}

.blog-detail__main {
    min-width: 0;
    padding: 1.5rem 1.25rem 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #eee4d8;
    box-shadow: 0 10px 28px rgba(74, 46, 22, 0.05);
}

@media (min-width: 768px) {
    .blog-detail__main {
        padding: 2.15rem 2.5rem 2.4rem;
    }
}

@media (min-width: 1100px) {
    .blog-detail__main {
        padding: 2.35rem 2.85rem 2.6rem;
    }
}

.blog-detail__lede {
    margin: 0 0 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #f0e7dc;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    font-weight: 500;
}

.blog-detail__prose {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.blog-detail__prose > *:first-child {
    margin-top: 0;
}

.blog-detail__prose p {
    margin: 0 0 1.15rem;
}

.blog-detail__prose h2,
.blog-detail__prose h3,
.blog-detail__prose h4 {
    margin: 2rem 0 0.85rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.blog-detail__prose h2 { font-size: 1.35rem; }
.blog-detail__prose h3 { font-size: 1.2rem; }

.blog-detail__prose ul,
.blog-detail__prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.blog-detail__prose li {
    margin-bottom: 0.4rem;
}

.blog-detail__prose a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.blog-detail__prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--color-primary);
    background: #faf6f2;
    color: #4b5563;
    border-radius: 0 0.75rem 0.75rem 0;
}

.blog-detail__prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.85rem;
    margin: 1.25rem 0;
}

.blog-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 2.25rem;
    padding-top: 1.4rem;
    border-top: 1px solid #f0e7dc;
}

.blog-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    text-decoration: none;
}

.blog-detail__back svg {
    width: 1rem;
    height: 1rem;
}

.blog-detail__back:hover {
    color: var(--color-primary);
}

.blog-detail__share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.blog-detail__share-btn,
.blog-detail__shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
}

.blog-detail__share-btn {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.blog-detail__share-btn:hover {
    border-color: #d1d5db;
    color: #111827;
}

.blog-detail__shop-btn {
    background: var(--color-primary);
    color: #fff;
}

.blog-detail__shop-btn:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.blog-detail__aside {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .blog-detail__aside {
        position: sticky;
        top: 6.5rem;
    }
}

.blog-detail__card {
    padding: 1.25rem 1.2rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #eee4d8;
    box-shadow: 0 8px 22px rgba(74, 46, 22, 0.05);
}

.blog-detail__card--accent {
    background: linear-gradient(180deg, #fffdfb 0%, #f7f1ea 100%);
}

.blog-detail__card-label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent, #f37021);
}

.blog-detail__card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.blog-detail__card-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.blog-detail__card-list span {
    color: #9ca3af;
    font-weight: 600;
}

.blog-detail__card-list strong {
    color: #374151;
    text-align: right;
}

.blog-detail__card-text {
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
}

.blog-detail__card-link {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

.blog-detail__card-link:hover {
    text-decoration: underline;
}

.blog-detail__related {
    padding: 2.75rem 0 3rem;
    background: #fff;
    border-top: 1px solid #f0e7dc;
}

.blog-detail__related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.blog-detail__related-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
}

.blog-detail__related-head a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.blog-detail__related-head a:hover {
    text-decoration: underline;
}

.blog-detail__related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .blog-detail__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-detail__related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
