/* ===== Choice Flowers Blog Page Styles ===== */

:root {
    --cf-dark: #012B2A;
    --cf-accent: #FF8A3D;
    --cf-accent-light: #FFA05E;
    --cf-text: #1d1d1f;
    --cf-text-light: #676767;
    --cf-border: #e5e5e5;
    --cf-bg: #F5F5F7;
    --cf-white: #ffffff;
}

/* ===== HERO ===== */
.cf-blog-hero {
    background: linear-gradient(135deg, #fff7f4 0%, var(--cf-white) 60%);
    padding: 48px 24px 40px;
    border-bottom: 1px solid var(--cf-border);
}

.cf-blog-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cf-blog-hero-label {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cf-accent);
    margin-bottom: 8px;
}

.cf-blog-hero h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--cf-dark);
    line-height: 1.2;
    margin-bottom: 8px;
    font-weight: 700;
}

.cf-blog-hero p {
    color: var(--cf-text-light);
    font-size: 18px;
    margin-bottom: 0;
}

.cf-blog-search {
    margin-top: 20px;
    display: flex;
    align-items: center;
    max-width: 440px;
    background: var(--cf-white);
    border: 1.5px solid var(--cf-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cf-blog-search input {
    flex: 1;
    padding: 11px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--cf-text);
    background: transparent;
}

.cf-blog-search button {
    padding: 11px 18px;
    background: var(--cf-accent);
    border: none;
    cursor: pointer;
    color: var(--cf-white);
    font-size: 15px;
    transition: background 0.2s;
}

.cf-blog-search button:hover {
    background: var(--cf-accent-light);
}

/* ===== MAIN LAYOUT ===== */
.cf-blog-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 32px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.cf-blog-content {
    min-width: 0;
}

/* ===== FEATURED POST ===== */
.cf-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cf-border);
    margin-bottom: 40px;
    background: var(--cf-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.cf-featured-post:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cf-featured-post-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.cf-featured-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e4, #c5e3c0);
    min-height: 280px;
    font-size: 48px;
}

.cf-featured-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cf-featured-tag {
    display: inline-block;
    background: #fff3ef;
    color: var(--cf-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.cf-featured-content h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cf-dark);
    margin-bottom: 10px;
}

.cf-featured-content h2 a {
    color: var(--cf-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.cf-featured-content h2 a:hover {
    color: var(--cf-accent);
}

.cf-featured-content p {
    font-size: 16px;
    color: var(--cf-text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.cf-post-meta {
    font-size: 13px;
    color: var(--cf-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cf-post-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--cf-text-light);
    border-radius: 50%;
    display: inline-block;
}

.cf-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--cf-accent);
    font-weight: 600;
    font-size: 15px;
    margin-top: 14px;
    transition: gap 0.2s;
    text-decoration: none;
}

.cf-read-more:hover {
    gap: 8px;
    color: var(--cf-accent);
}

/* ===== SIDE LIST ===== */
.cf-side-list {
    margin-bottom: 40px;
}

.cf-side-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--cf-border);
}

.cf-side-list-item:first-child {
    padding-top: 0;
}

.cf-side-list-item:last-child {
    border-bottom: none;
}

.cf-side-num {
    font-size: 30px;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
    min-width: 32px;
    font-family: 'Inter', serif;
}

.cf-side-list-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cf-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}

.cf-side-list-item h4 a {
    color: var(--cf-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.cf-side-list-item h4 a:hover {
    color: var(--cf-accent);
}

.cf-side-list-item .cf-post-meta {
    font-size: 13px;
}

/* ===== VIDEO REELS SCROLLER ===== */
.cf-reels-section {
    margin-bottom: 36px;
}

.cf-reels-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--cf-dark);
    margin-bottom: 16px;
}

.cf-reels-wrap {
    position: relative;
    overflow: hidden;
}

.cf-reels-track {
    display: flex;
    gap: 14px;
    padding-bottom: 6px;
}

.cf-reel-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cf-reel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cf-reel-card iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    border: none;
}

.cf-reel-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.cf-reels-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 20px;
    line-height: 1;
    color: var(--cf-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.cf-reels-arrow:hover {
    background: var(--cf-accent);
    color: var(--cf-white);
    transform: translateY(-50%) scale(1.1);
}

.cf-reels-prev {
    left: -12px;
}

.cf-reels-next {
    right: -12px;
}

/* ===== CATEGORY TABS ===== */
.cf-category-tabs {
    margin-bottom: 28px;
}

.cf-tabs-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cf-text-light);
    cursor: pointer;
    border: 1.5px solid var(--cf-border);
    background: var(--cf-white);
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.cf-tab.active,
.cf-tab:hover {
    background: var(--cf-accent);
    color: var(--cf-white);
    border-color: var(--cf-accent);
}

/* ===== ARTICLES GRID ===== */
.cf-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    min-height: 200px;
}

.cf-article-card {
    border-radius: 12px;
    border: 1px solid var(--cf-border);
    background: var(--cf-white);
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cf-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #ffd4c2;
}

.cf-article-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.cf-article-card-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #e8f5e4, #c5e3c0);
}

.cf-card-body {
    padding: 18px;
}

.cf-card-body h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--cf-dark);
}

.cf-card-body h4 a {
    color: var(--cf-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.cf-card-body h4 a:hover {
    color: var(--cf-accent);
}

.cf-card-body p {
    font-size: 14px;
    color: var(--cf-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.cf-card-meta {
    font-size: 13px;
    color: var(--cf-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-card-meta .dot {
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
}

/* ===== INFINITE SCROLL SENTINEL ===== */
.cf-scroll-sentinel {
    display: none;
    text-align: center;
    padding: 24px 0 40px;
}

.cf-scroll-sentinel.active {
    display: block;
}

.cf-scroll-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--cf-border);
    border-top-color: var(--cf-accent);
    border-radius: 50%;
    animation: cf-spin 0.7s linear infinite;
}

@keyframes cf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SIDEBAR ===== */
.cf-blog-sidebar {
    position: sticky;
    top: 90px;
}

/* Sidebar CTA (Luxury) */
.cf-sidebar-cta {
    background: linear-gradient(135deg, #012B2A 0%, #01403E 100%);
    border-radius: 16px;
    padding: 28px;
    color: var(--cf-white);
    margin-bottom: 28px;
    text-align: center;
}

.cf-sidebar-cta h3 {
    font-family: 'Inter', serif;
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--cf-white);
}

.cf-sidebar-cta p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.cf-sidebar-cta-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cf-cta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.cf-cta-badge span {
    width: 20px;
    height: 20px;
    background: var(--cf-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--cf-white);
    font-weight: 700;
}

.cf-sidebar-cta .cf-cta-btn {
    display: block;
    background: var(--cf-accent);
    color: var(--cf-white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    text-decoration: none;
}

.cf-sidebar-cta .cf-cta-btn:hover {
    background: var(--cf-accent-light);
    color: var(--cf-white);
}

/* ===== TOP POSTS WIDGET ===== */
.cf-top-posts {
    background: var(--cf-white);
    border: 1px solid var(--cf-border);
    border-radius: 16px;
    padding: 20px;
}

.cf-top-posts h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--cf-dark);
}

.cf-top-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cf-border);
    align-items: center;
    text-decoration: none;
}

.cf-top-post-item:last-child {
    border-bottom: none;
}

.cf-top-post-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cf-bg);
}

.cf-top-post-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--cf-dark);
    line-height: 1.35;
    transition: color 0.2s;
}

.cf-top-post-item:hover .cf-top-post-title {
    color: var(--cf-accent);
}

.cf-view-all-posts {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cf-accent);
    margin-top: 8px;
    text-decoration: none;
}

.cf-view-all-posts:hover {
    color: var(--cf-accent-light);
}

/* ===== LOADING SPINNER ===== */
.cf-articles-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== NO POSTS ===== */
.cf-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--cf-text-light);
    font-size: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cf-blog-main {
        grid-template-columns: 1fr;
    }

    .cf-blog-sidebar {
        position: static;
    }

    .cf-featured-post {
        grid-template-columns: 1fr;
    }

    .cf-featured-post-img,
    .cf-featured-post-placeholder {
        height: 200px;
        min-height: 200px;
    }

    .cf-articles-grid {
        grid-template-columns: 1fr;
    }

    .cf-reel-card {
        flex: 0 0 150px;
    }

    .cf-reels-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .cf-blog-hero {
        padding: 32px 16px 28px;
    }

    .cf-blog-main {
        padding: 24px 16px;
    }

    .cf-featured-content {
        padding: 20px;
    }

    .cf-featured-content h2 {
        font-size: 17px;
    }
}