/* ============================================================
   HerboilGuide - Comparison Library Page Styles
   ============================================================ */

/* Hero / Header Banner */
.cl-hero {
    position: relative;
    background: linear-gradient(135deg, #1b3312 0%, #2e4f24 40%, #3e6630 70%, #4f7e3d 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0 45px;
    color: #ffffff;
    text-align: center;
}

.cl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 15% 50%, rgba(245, 158, 11, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 30%, rgba(79, 126, 61, 0.35) 0%, transparent 55%);
}

.cl-hero-side {
    position: absolute;
    top: 0; bottom: 0; width: 220px;
    background: linear-gradient(to right, rgba(20, 40, 15, 0.5), transparent);
    pointer-events: none;
}
.cl-hero-side.right {
    right: 0; left: auto;
    background: linear-gradient(to left, rgba(20, 40, 15, 0.5), transparent);
}

.cl-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.cl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.cl-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cl-hero-title span {
    color: #FBBF24;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cl-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    font-weight: 600;
}

.cl-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto 24px;
}

/* Category Navigation Pill */
.cl-nav-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1f3b16, #2d5221);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Main Section Container */
.cl-section {
    padding: 50px 0 60px;
    background: var(--bg-color);
}

.cl-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.cl-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* 8 Categories Grid Layout */
.cl-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

/* Individual Category Card */
.cl-card {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.cl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #4B6B40;
}

[data-theme="dark"] .cl-card {
    background: #1F2937;
    border-color: #374151;
}

/* Card Header */
.cl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.cl-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Icon Color Variants matching image design */
.cl-icon-botanical  { background: #eaf5e6; color: #2e7d32; }
.cl-icon-oiltype    { background: #e3f2fd; color: #1565c0; }
.cl-icon-processing { background: #fff3e0; color: #e65100; }
.cl-icon-nutrition  { background: #f3e5f5; color: #7b1fa2; }
.cl-icon-health     { background: #e0f2f1; color: #00695c; }
.cl-icon-culinary   { background: #fbe9e7; color: #d84315; }
.cl-icon-quality    { background: #e8eaf6; color: #283593; }
.cl-icon-regulatory { background: #ffebee; color: #c62828; }

[data-theme="dark"] .cl-icon-botanical  { background: #1c381e; color: #81c784; }
[data-theme="dark"] .cl-icon-oiltype    { background: #12283e; color: #64b5f6; }
[data-theme="dark"] .cl-icon-processing { background: #3d2310; color: #ffb74d; }
[data-theme="dark"] .cl-icon-nutrition  { background: #2f1836; color: #ce93d8; }
[data-theme="dark"] .cl-icon-health     { background: #103330; color: #80cbc4; }
[data-theme="dark"] .cl-icon-culinary   { background: #381e18; color: #ffab91; }
[data-theme="dark"] .cl-icon-quality    { background: #191e38; color: #7986cb; }
[data-theme="dark"] .cl-icon-regulatory { background: #38181a; color: #ef9a9a; }

.cl-card-title-wrap {
    flex: 1;
}

.cl-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cl-card-desc {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.45;
}

/* Links List */
.cl-links-list {
    list-style: none;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--mid-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[data-theme="dark"] .cl-links-list {
    border-color: #374151;
}

.cl-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

[data-theme="dark"] .cl-link-item {
    background: #111827;
    color: #F3F4F6;
}

.cl-link-item:hover {
    background: #eaf3e7;
    color: #2e7d32;
    padding-left: 16px;
}

[data-theme="dark"] .cl-link-item:hover {
    background: #1e331c;
    color: #81c784;
}

.cl-link-arrow {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-light);
    transition: all 0.2s ease;
}

[data-theme="dark"] .cl-link-arrow {
    background: rgba(255,255,255,0.08);
}

.cl-link-item:hover .cl-link-arrow {
    background: #2e7d32;
    color: #ffffff;
    transform: translateX(2px);
}

/* ============================================================
   WHY OUR COMPARISONS MATTER Section
   ============================================================ */
.cl-why-section {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: 18px;
    padding: 32px 28px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

[data-theme="dark"] .cl-why-section {
    background: #1F2937;
    border-color: #374151;
}

.cl-why-header {
    text-align: center;
    margin-bottom: 28px;
}

.cl-why-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1b3312, #2d5221);
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cl-why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cl-why-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cl-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.cl-why-icon-1 { background: #e0f2f1; color: #00695c; }
.cl-why-icon-2 { background: #fff8e1; color: #f57f17; }
.cl-why-icon-3 { background: #e3f2fd; color: #1565c0; }
.cl-why-icon-4 { background: #e8f5e9; color: #2e7d32; }
.cl-why-icon-5 { background: #f3e5f5; color: #7b1fa2; }
.cl-why-icon-6 { background: #ffebee; color: #c62828; }

[data-theme="dark"] .cl-why-icon-1 { background: #0c2b28; color: #80cbc4; }
[data-theme="dark"] .cl-why-icon-2 { background: #332b10; color: #fff59d; }
[data-theme="dark"] .cl-why-icon-3 { background: #11263d; color: #90caf9; }
[data-theme="dark"] .cl-why-icon-4 { background: #132e16; color: #a5d6a7; }
[data-theme="dark"] .cl-why-icon-5 { background: #2a132e; color: #ce93d8; }
[data-theme="dark"] .cl-why-icon-6 { background: #301114; color: #ef9a9a; }

.cl-why-item h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cl-why-item p {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================================
   HOW TO USE & ECOSYSTEM SPLIT SECTION
   ============================================================ */
.cl-info-row {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.cl-how-use-box {
    background: #fffdf5;
    border: 1.5px solid #f6e0b5;
    border-radius: 18px;
    padding: 24px;
}

[data-theme="dark"] .cl-how-use-box {
    background: #252014;
    border-color: #4a3c1e;
}

.cl-how-badge {
    display: inline-block;
    background: #d97706;
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cl-how-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cl-how-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.cl-how-step i {
    color: #d97706;
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ECOSYSTEM WORKFLOW */
.cl-eco-box {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .cl-eco-box {
    background: #1F2937;
    border-color: #374151;
}

.cl-eco-title {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.cl-eco-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: center;
    margin: auto 0;
}

.cl-eco-node {
    background: var(--light-gray);
    border: 1.5px solid var(--mid-gray);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

[data-theme="dark"] .cl-eco-node {
    background: #111827;
    border-color: #374151;
}

.cl-eco-node.active {
    border-color: #4B6B40;
    background: #f0f7ef;
    box-shadow: 0 4px 12px rgba(75, 107, 64, 0.15);
}

[data-theme="dark"] .cl-eco-node.active {
    background: #1e331c;
    border-color: #7db86e;
}

.cl-eco-icon {
    font-size: 1.3rem;
    color: #4B6B40;
    margin-bottom: 6px;
}

[data-theme="dark"] .cl-eco-icon {
    color: #7db86e;
}

.cl-eco-node h5 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.25;
}

.cl-eco-node p {
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Connector Arrow */
.cl-eco-arrow {
    display: flex;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .cl-categories-grid {
        grid-template-columns: 1fr;
    }
    .cl-why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .cl-info-row {
        grid-template-columns: 1fr;
    }
    .cl-eco-flow {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .cl-eco-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .cl-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cl-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
