/* ==========================================================================
   TIDYSETUP GUIDES & KNOWLEDGE HUB STYLESHEET
   Page: /blogs/ (Desk Setup Guides & Knowledge Hub)
   ========================================================================== */

/* Main Container & Layout */
.tidysetup-hub-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    font-family: inherit;
    color: #0f172a;
}

/* Breadcrumbs */
.tidysetup-hub-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 500;
}

.tidysetup-hub-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tidysetup-hub-breadcrumbs a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.tidysetup-hub-breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.tidysetup-hub-breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

/* Hero Section */
.tidysetup-hub-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 36px;
    padding: 24px 20px 0;
}

.tidysetup-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.tidysetup-hub-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #059669;
}

.tidysetup-hub-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.tidysetup-hub-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: #475569;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 720px;
}

/* Unified Floating Filter Deck */
.tidysetup-hub-deck {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 24px 18px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    margin: 0 auto 40px;
    max-width: 820px;
}

.tidysetup-hub-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.tidysetup-hub-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.tidysetup-hub-search-input {
    width: 100%;
    padding: 13px 44px 13px 48px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tidysetup-hub-search-input:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.tidysetup-hub-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    color: #64748b;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.tidysetup-hub-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Quick-Jump Navigation Pills */
.tidysetup-hub-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.tidysetup-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.tidysetup-hub-pill:hover {
    border-color: #0f172a;
    color: #0f172a;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.tidysetup-hub-pill.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.tidysetup-hub-pill .pill-count {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
}

.tidysetup-hub-pill.is-active .pill-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Section Header Common Styles */
.tidysetup-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.tidysetup-section-title-wrap {
    max-width: 800px;
}

.tidysetup-section-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.tidysetup-section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 5px;
    line-height: 1.25;
}

.tidysetup-section-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.tidysetup-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.2s ease;
}

.tidysetup-section-link:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.tidysetup-section-link .arrow {
    transition: transform 0.2s ease;
}

.tidysetup-section-link:hover .arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   7 TOPIC PILLAR ACCENT COLORS & TOKENS
   ========================================================================== */

/* 1. Ergonomic Desk Setup (Emerald #059669) */
[data-pillar="ergonomic-desk-setup"] .tidysetup-section-badge,
[data-category="ergonomic-desk-setup"] .tidysetup-card-cat {
    background: #ecfdf5;
    color: #059669;
}
[data-pillar="ergonomic-desk-setup"] .tidysetup-guide-card:hover {
    border-color: #a7f3d0;
    box-shadow: 0 10px 20px -3px rgba(5, 150, 105, 0.1);
}

/* 2. Cable Management (Tech Blue #0284c7) */
[data-pillar="cable-management"] .tidysetup-section-badge,
[data-category="cable-management"] .tidysetup-card-cat {
    background: #f0f9ff;
    color: #0284c7;
}
[data-pillar="cable-management"] .tidysetup-guide-card:hover {
    border-color: #bae6fd;
    box-shadow: 0 10px 20px -3px rgba(2, 132, 199, 0.1);
}

/* 3. Health & Wellness (Rose/Coral #e11d48) */
[data-pillar="health-wellness"] .tidysetup-section-badge,
[data-category="health-wellness"] .tidysetup-card-cat {
    background: #fff1f2;
    color: #e11d48;
}
[data-pillar="health-wellness"] .tidysetup-guide-card:hover {
    border-color: #fecdd3;
    box-shadow: 0 10px 20px -3px rgba(225, 29, 72, 0.1);
}

/* 4. Workspace Productivity (Purple #7c3aed) */
[data-pillar="workspace-productivity"] .tidysetup-section-badge,
[data-category="workspace-productivity"] .tidysetup-card-cat {
    background: #faf5ff;
    color: #7c3aed;
}
[data-pillar="workspace-productivity"] .tidysetup-guide-card:hover {
    border-color: #ddd6fe;
    box-shadow: 0 10px 20px -3px rgba(124, 58, 237, 0.1);
}

/* 5. Product Guides (Amber #d97706) */
[data-pillar="product-guides"] .tidysetup-section-badge,
[data-category="product-guides"] .tidysetup-card-cat {
    background: #fffbeb;
    color: #d97706;
}
[data-pillar="product-guides"] .tidysetup-guide-card:hover {
    border-color: #fde68a;
    box-shadow: 0 10px 20px -3px rgba(217, 119, 6, 0.1);
}

/* 6. Workspace Environment (Cyan #0891b2) */
[data-pillar="workspace-environment"] .tidysetup-section-badge,
[data-category="workspace-environment"] .tidysetup-card-cat {
    background: #ecfeff;
    color: #0891b2;
}
[data-pillar="workspace-environment"] .tidysetup-guide-card:hover {
    border-color: #a5f3fc;
    box-shadow: 0 10px 20px -3px rgba(8, 145, 178, 0.1);
}

/* 7. Workspace Audits (Indigo #4f46e5) */
[data-pillar="workspace-audits"] .tidysetup-section-badge,
[data-category="workspace-audits"] .tidysetup-card-cat {
    background: #eef2ff;
    color: #4f46e5;
}
[data-pillar="workspace-audits"] .tidysetup-spotlight-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 14px 28px -4px rgba(79, 70, 229, 0.12);
}

/* ==========================================================================
   FLAGSHIP / START HERE FEATURED SECTION
   ========================================================================== */
.tidysetup-flagship-section {
    margin-bottom: 56px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.tidysetup-flagship-section .tidysetup-section-badge {
    background: #fef3c7;
    color: #b45309;
}

.tidysetup-flagship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tidysetup-flagship-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04);
}

.tidysetup-flagship-card:hover {
    transform: translateY(-4px);
    border-color: #0f172a;
    box-shadow: 0 16px 26px -6px rgba(15, 23, 42, 0.12);
}

.tidysetup-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.tidysetup-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tidysetup-flagship-card:hover .tidysetup-card-thumb img,
.tidysetup-guide-card:hover .tidysetup-card-thumb img,
.tidysetup-spotlight-card:hover .tidysetup-spotlight-thumb img {
    transform: scale(1.04);
}

.tidysetup-card-flagship-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    z-index: 2;
}

.tidysetup-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 22px;
}

.tidysetup-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tidysetup-card-cat {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.tidysetup-card-dot {
    color: #cbd5e1;
}

.tidysetup-card-readtime {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

.tidysetup-card-time {
    color: #94a3b8;
    font-size: 0.75rem;
}

.tidysetup-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 10px;
    transition: color 0.15s ease;
}

.tidysetup-flagship-card:hover .tidysetup-card-title,
.tidysetup-guide-card:hover .tidysetup-card-title {
    color: #0369a1;
}

.tidysetup-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 16px;
    flex-grow: 1;
}

.tidysetup-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: auto;
}

.tidysetup-card-cta .arrow {
    transition: transform 0.2s ease;
}

.tidysetup-flagship-card:hover .tidysetup-card-cta .arrow,
.tidysetup-guide-card:hover .tidysetup-card-cta .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   STANDARD 3-COLUMN PILLAR GRIDS (SYMMETRICAL)
   ========================================================================== */
.tidysetup-pillars-container {
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-bottom: 64px;
}

.tidysetup-pillar-section {
    scroll-margin-top: 100px;
}

.tidysetup-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tidysetup-guide-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
}

.tidysetup-guide-card:hover {
    transform: translateY(-3px);
}

.tidysetup-guide-card .tidysetup-card-body {
    padding: 16px 18px;
}

.tidysetup-guide-card .tidysetup-card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tidysetup-guide-card .tidysetup-card-excerpt {
    font-size: 0.84rem;
    margin-bottom: 12px;
}

/* ==========================================================================
   SCHEDULED / UPCOMING CARDS STYLING
   ========================================================================== */
.tidysetup-card-scheduled-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(147, 197, 253, 0.3);
    z-index: 2;
}

.tidysetup-guide-card.is-scheduled-card {
    opacity: 0.94;
    background: #fbfcfd;
    border: 1px dashed #cbd5e1;
}

.tidysetup-guide-card.is-scheduled-card:hover {
    opacity: 1;
    background: #ffffff;
    border: 1px solid #94a3b8;
}

.tidysetup-card-cta.is-scheduled {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: auto;
}

/* Empty Search State */
.tidysetup-hub-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    margin: 20px 0;
}

.tidysetup-hub-empty h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 8px;
}

.tidysetup-hub-empty p {
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .tidysetup-flagship-grid,
    .tidysetup-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tidysetup-hub-wrap {
        padding: 16px 14px 60px;
    }

    .tidysetup-hub-hero {
        padding: 16px 10px 0;
    }

    .tidysetup-hub-deck {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .tidysetup-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .tidysetup-section-link {
        width: 100%;
        justify-content: center;
    }

    .tidysetup-flagship-section {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .tidysetup-flagship-grid,
    .tidysetup-guide-grid {
        grid-template-columns: 1fr;
    }

    .tidysetup-hub-pills-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tidysetup-hub-pills-wrap::-webkit-scrollbar {
        display: none;
    }
}
