/* ========================================
   Flowers4U Blog — Archive & Single styles
   Design language: matches premium-store-woo-v4
   RTL-first (Hebrew storefront)
   ======================================== */

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    direction: rtl;
    text-align: right;
    background: #f6f7fb;
    font-family: Arial, 'Segoe UI', sans-serif;
    color: #111;
    margin: 0;
}

/* ---------- container ---------- */
.f4u-blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ---------- page title strip ---------- */
.f4u-blog-header {
    margin-bottom: 30px;
    text-align: center;
}

.f4u-blog-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.f4u-blog-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.f4u-blog-divider {
    width: 60px;
    height: 3px;
    background: #ff9900;
    border: none;
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ---------- layout (grid + sidebar) ---------- */
.f4u-blog-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.f4u-blog-main {
    flex: 1;
    min-width: 0;
}

/* ---------- posts grid ---------- */
.f4u-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---------- post card ---------- */
.f4u-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.f4u-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

/* image */
.f4u-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.f4u-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}

.f4u-card:hover .f4u-card-img img {
    transform: scale(1.04);
}

.f4u-cat-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.f4u-cat-badge {
    background: #ff9900;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    line-height: 1.4;
}

.f4u-cat-badge:hover {
    background: #e88b00;
}

/* no-image placeholder */
.f4u-card-no-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* body */
.f4u-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f4u-card-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 12px;
    align-items: center;
}

.f4u-card-meta svg {
    width: 13px;
    height: 13px;
    stroke: #aaa;
    fill: none;
    stroke-width: 2;
    vertical-align: middle;
    margin-left: 3px;
}

.f4u-card h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.f4u-card h2 a {
    color: #111;
    text-decoration: none;
    transition: color .2s;
}

.f4u-card h2 a:hover {
    color: #ff9900;
}

.f4u-card-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.f4u-read-more {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 20px;
    background: #ff9900;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s;
    align-self: flex-start;
}

.f4u-read-more:hover {
    background: #e88b00;
    color: #111;
}

/* ---------- no posts ---------- */
.f4u-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

/* ---------- pagination ---------- */
.f4u-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.f4u-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.f4u-pagination .page-numbers.current,
.f4u-pagination .page-numbers:hover {
    background: #ff9900;
    border-color: #ff9900;
    color: #111;
}

.f4u-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #aaa;
}

/* ---------- sidebar ---------- */
.f4u-blog-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.f4u-sidebar-widget {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    padding: 18px;
}

.f4u-sidebar-widget h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9900;
    display: inline-block;
}

/* recent posts widget */
.f4u-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f4u-recent-posts li {
    display: flex;
    gap: 10px;
    align-items: center;
}

.f4u-recent-posts li img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.f4u-recent-posts li .rp-text {
    flex: 1;
    min-width: 0;
}

.f4u-recent-posts li .rp-text a {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.f4u-recent-posts li .rp-text a:hover {
    color: #ff9900;
}

.f4u-recent-posts li .rp-date {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}

/* categories widget */
.f4u-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f4u-cat-list li a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #f5f5f5;
    transition: .2s;
}

.f4u-cat-list li a:hover {
    background: #111;
    color: #fff;
}

.f4u-cat-list li a span {
    font-size: 11px;
    background: #eee;
    padding: 2px 7px;
    border-radius: 10px;
    color: #666;
    transition: .2s;
}

.f4u-cat-list li a:hover span {
    background: #333;
    color: #ddd;
}

/* search widget */
.f4u-sidebar-search {
    display: flex;
    gap: 6px;
}

.f4u-sidebar-search input[type="search"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
}

.f4u-sidebar-search input[type="search"]:focus {
    border-color: #ff9900;
}

.f4u-sidebar-search button {
    padding: 9px 14px;
    background: #ff9900;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    transition: .2s;
}

.f4u-sidebar-search button:hover {
    background: #e88b00;
}

/* ======================================================
   SINGLE POST
   ====================================================== */

.f4u-single-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    text-align: right;
    font-family: Arial, 'Segoe UI', sans-serif;
}

/* breadcrumb */
.f4u-breadcrumb {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.f4u-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.f4u-breadcrumb a:hover {
    color: #ff9900;
}

.f4u-breadcrumb svg {
    width: 12px;
    height: 12px;
    stroke: #bbb;
    fill: none;
    stroke-width: 2;
}

.f4u-single-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* article */
.f4u-article {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
}

/* hero image */
.f4u-article-hero {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

.f4u-article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.f4u-article-body {
    padding: 28px 32px;
}

/* category badge(s) on single post */
.f4u-article-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.f4u-article-cat {
    display: inline-block;
    background: #ff9900;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
}

.f4u-article-cat:hover {
    background: #e88b00;
    color: #111;
}

.f4u-article-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.35;
    color: #111;
}

.f4u-article-meta {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: #888;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.f4u-article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.f4u-article-meta svg {
    width: 14px;
    height: 14px;
    stroke: #bbb;
    fill: none;
    stroke-width: 2;
}

/* content typography */
.f4u-article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.f4u-article-content h2 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #111;
}

.f4u-article-content h3 {
    font-size: 17px;
    margin-top: 22px;
    margin-bottom: 8px;
    color: #222;
}

.f4u-article-content p {
    margin-bottom: 16px;
}

.f4u-article-content a {
    color: #ff9900;
    text-decoration: underline;
}

.f4u-article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
}

.f4u-article-content blockquote {
    border-right: 4px solid #ff9900;
    border-left: none;
    margin: 20px 0;
    padding: 14px 20px;
    background: #fff8f0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.f4u-article-content ul,
.f4u-article-content ol {
    padding-right: 20px;
    padding-left: 0;
    margin-bottom: 16px;
}

.f4u-article-content li {
    margin-bottom: 6px;
}

/* tags */
.f4u-article-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.f4u-article-tags span {
    font-size: 12px;
    color: #888;
}

.f4u-article-tags a {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    transition: .2s;
}

.f4u-article-tags a:hover {
    background: #ff9900;
    border-color: #ff9900;
    color: #111;
}

/* nav: prev/next */
.f4u-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.f4u-post-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f8f8f8;
    transition: .2s;
    max-width: 48%;
}

.f4u-post-nav a:hover {
    background: #ff9900;
    border-color: #ff9900;
    color: #111;
}

.f4u-post-nav a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* back to blog button */
.f4u-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    padding: 9px 20px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

.f4u-back-btn:hover {
    background: #ff9900;
    color: #111;
}

.f4u-back-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1100px) {
    .f4u-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .f4u-blog-layout,
    .f4u-single-layout {
        flex-direction: column;
    }

    .f4u-blog-sidebar {
        width: 100%;
    }

    .f4u-article-body {
        padding: 20px;
    }

    .f4u-article-title {
        font-size: 20px;
    }

    .f4u-post-nav a {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .f4u-posts-grid {
        grid-template-columns: 1fr;
    }

    .f4u-blog-header h1 {
        font-size: 22px;
    }

    .f4u-article-hero img {
        height: 220px;
    }
}
