/**
 * custom.css — Pixwell Food specific styles for stol-z-krzeslami.pl
 * Author: Damian Zięba | https://semtak.pl
 */

/* ═══ SLIDER ═══ */
.stb-slider-section {
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-xl);
}

.stb-slider {
    position: relative;
}

.stb-slider-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stb-slider-track::-webkit-scrollbar {
    display: none;
}

.stb-slide {
    flex: 0 0 20%;
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.stb-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.stb-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stb-slide:hover img {
    transform: scale(1.05);
}

.stb-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-l) var(--space-m);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.stb-slide-cat .stb-cat-badge {
    color: #fff;
    font-size: 15px;
}

.stb-slide-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.375rem;
    color: #fff;
    line-height: 1.25;
    margin-top: var(--space-xs);
}

.stb-slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-s);
    padding: var(--space-m) 0;
}

.stb-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.stb-slider-dot.active {
    background: var(--color-primary);
}

/* ═══ BANNERS ═══ */
.stb-banners {
    margin-bottom: var(--space-xl);
}

.stb-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
}

.stb-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/7;
    background: #f0ebe4;
    position: relative;
    overflow: hidden;
}

.stb-banner:nth-child(1) { background: #f0ebe4; }
.stb-banner:nth-child(2) { background: #e8e0d6; }
.stb-banner:nth-child(3) { background: #ddd5cb; }

.stb-banner-label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stb-banner:hover .stb-banner-label {
    opacity: 0.7;
}

/* ═══ CB BILLBOARD ═══ */
.stb-cb-billboard {
    margin: var(--space-l) auto;
}

.stb-cb-inline {
    margin: var(--space-xl) auto;
}

/* ═══ FEATURED SECTION (4 cards grid) ═══ */
.stb-featured-section {
    padding: var(--space-xl) 0;
}

.stb-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
    margin-top: var(--space-l);
}

.stb-featured-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
    margin-bottom: var(--space-s);
}

.stb-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stb-featured-thumb:hover img {
    transform: scale(1.05);
}

.stb-featured-cat .stb-cat-badge {
    font-size: 14px;
}

.stb-featured-card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.25;
    margin: var(--space-xs) 0 var(--space-s);
}

.stb-featured-card-title a:hover {
    opacity: 0.7;
}

/* ═══ GUIDES SECTION (3 cards) ═══ */
.stb-guides-section {
    padding: var(--space-xl) 0;
}

.stb-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
}

.stb-guide-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: var(--space-m);
}

.stb-guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stb-guide-thumb:hover img {
    transform: scale(1.05);
}

.stb-guide-cat .stb-cat-badge {
    font-size: 14px;
}

.stb-guide-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.25;
    margin-top: var(--space-xs);
}

/* ═══ MASONRY GRID ═══ */
.stb-latest-section {
    padding: var(--space-xl) 0;
}

.stb-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
}

.stb-masonry-large {
    grid-column: span 1;
}

.stb-masonry-card {
    margin-bottom: var(--space-l);
}

.stb-masonry-thumb {
    display: block;
    overflow: hidden;
    margin-bottom: var(--space-m);
}

.stb-masonry-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.stb-masonry-thumb:hover img {
    transform: scale(1.03);
}

.stb-masonry-cat .stb-cat-badge,
.stb-masonry-cat .stb-cat-badges .stb-cat-badge {
    font-size: 14px;
}

.stb-masonry-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: var(--space-xs) 0 var(--space-s);
}

.stb-masonry-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-s);
}

/* ═══ ARCHIVE ═══ */
.stb-archive-header {
    text-align: center;
    padding: var(--space-l) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.stb-archive-header .stb-breadcrumbs {
    margin-bottom: var(--space-s);
}

.stb-archive-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2.5rem;
}

.stb-archive-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-s);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stb-archive-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.stb-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-l);
}

/* Archive large cards */
.stb-card--large {
    display: flex;
    flex-direction: column;
}

.stb-card--large .stb-card-thumb {
    display: block;
    overflow: hidden;
    margin-bottom: var(--space-m);
}

.stb-card--large .stb-card-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.stb-card--large .stb-card-thumb:hover img {
    transform: scale(1.03);
}

.stb-card--large .stb-card-overlay {
    display: none;
}

.stb-card--large .stb-card-body {
    padding: 0 var(--space-m);
}

.stb-card--large .stb-card-cat .stb-cat-badge {
    font-size: 15px;
}

.stb-card--large .stb-card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.2;
    margin: var(--space-xs) 0 var(--space-s);
}

.stb-card--large .stb-card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-s);
}

/* Medium cards */
.stb-card--medium {
    display: flex;
    flex-direction: column;
}

.stb-card--medium .stb-card-thumb {
    display: block;
    overflow: hidden;
    margin-bottom: var(--space-m);
}

.stb-card--medium .stb-card-thumb img {
    width: 100%;
    height: auto;
}

.stb-card--medium .stb-card-overlay {
    display: none;
}

.stb-card--medium .stb-card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.2;
    margin: var(--space-xs) 0 var(--space-s);
}

/* Small cards */
.stb-card--small .stb-card-thumb {
    display: block;
    overflow: hidden;
    margin-bottom: var(--space-s);
}

.stb-card--small .stb-card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.2;
}

/* ═══ SINGLE ARTICLE ═══ */
.stb-article-header {
    margin-bottom: var(--space-l);
}

.stb-article-cat .stb-cat-badges .stb-cat-badge {
    font-size: 16px;
}

.stb-article-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.1;
    margin: var(--space-s) 0 var(--space-m);
}

.stb-article-featured {
    margin-bottom: var(--space-xl);
}

.stb-article-featured img {
    width: 100%;
    height: auto;
}

/* Drop cap */
.stb-drop-cap > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 0.8;
    padding-right: var(--space-s);
    padding-top: var(--space-xs);
    color: var(--color-primary);
}

/* Article content */
.stb-article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.stb-article-content p {
    margin-bottom: var(--space-m);
}

.stb-article-content h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: var(--space-xl) 0 var(--space-m);
}

.stb-article-content h3 {
    font-weight: 700;
    font-size: 1.375rem;
    margin: var(--space-l) 0 var(--space-m);
}

.stb-article-content ul,
.stb-article-content ol {
    padding-left: var(--space-l);
    margin-bottom: var(--space-m);
}

.stb-article-content ul {
    list-style: disc;
}

.stb-article-content ol {
    list-style: decimal;
}

.stb-article-content li {
    margin-bottom: var(--space-xs);
}

.stb-article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: var(--space-m) var(--space-l);
    margin: var(--space-l) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.stb-article-content img {
    margin: var(--space-l) 0;
}

.stb-article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Share */
.stb-share {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    padding: var(--space-l) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.stb-share-label {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    text-transform: uppercase;
}

.stb-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

.stb-share-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
    opacity: 1;
}

/* Author box */
.stb-author-box {
    display: flex;
    gap: var(--space-l);
    padding: var(--space-xl);
    background: #f9f9f9;
    margin-bottom: var(--space-xl);
}

.stb-author-box .stb-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.stb-author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: var(--space-xs);
}

.stb-author-bio {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ═══ RELATED POSTS ═══ */
.stb-related {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stb-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
    margin-top: var(--space-l);
}

.stb-related-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
    margin-bottom: var(--space-s);
}

.stb-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stb-related-thumb:hover img {
    transform: scale(1.05);
}

.stb-related-cat .stb-cat-badge {
    font-size: 14px;
}

.stb-related-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.25;
    margin-top: var(--space-xs);
}

/* ═══ PAGE CONTENT ═══ */
.stb-page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: var(--space-l);
}

.stb-page-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.stb-page-content p {
    margin-bottom: var(--space-m);
}

/* ═══ SEARCH HEADER ═══ */
.stb-search-header {
    margin-bottom: var(--space-xl);
}

/* ═══ NO RESULTS ═══ */
.stb-no-results {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.stb-no-results-title {
    font-size: 2rem;
    margin-bottom: var(--space-m);
}

.stb-no-results-search {
    max-width: 500px;
    margin: var(--space-xl) auto 0;
}

/* ═══ RESPONSIVE — CUSTOM ═══ */
@media (max-width: 1024px) {
    .stb-slide {
        flex: 0 0 33.33%;
    }

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

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

@media (max-width: 768px) {
    .stb-slide {
        flex: 0 0 50%;
    }

    .stb-banners-grid {
        grid-template-columns: 1fr;
    }

    .stb-guides-grid {
        grid-template-columns: 1fr;
    }

    .stb-archive-grid {
        grid-template-columns: 1fr;
    }

    .stb-masonry-grid {
        grid-template-columns: 1fr;
    }

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

    .stb-article-title {
        font-size: 2rem;
    }

    .stb-featured-title {
        font-size: 1.75rem;
    }

    .stb-author-box {
        flex-direction: column;
        text-align: center;
    }

    .stb-author-box .stb-author-avatar img {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .stb-slide {
        flex: 0 0 100%;
    }

    .stb-related-grid {
        grid-template-columns: 1fr;
    }

    .stb-share {
        flex-wrap: wrap;
    }

    .stb-article-title {
        font-size: 1.625rem;
    }
}
