/* ========================================
   BLOOMIFY SOURCING - CASE STUDIES PAGE
   ======================================== */

/* ---- PAGE HERO ---- */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0;
    line-height: 1.15;
}

.page-hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 2.5rem;
}

/* ---- HERO STATS ---- */
.cs-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cs-hero-stat {
    text-align: center;
}

.cs-hero-stat span {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.cs-hero-stat p {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.cs-hero-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

/* ---- CASE STUDY SECTION ---- */
.case-study-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.case-study-section.cs-alt {
    background: var(--bg-secondary);
}

/* ---- CS INTRO ---- */
.cs-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cs-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-purple);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--color-purple-dim);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.cs-tags {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
}

.cs-tag i {
    font-size: 0.7rem;
    color: var(--color-cyan);
}

/* ---- CS GRID ---- */
.cs-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cs-grid.reverse {
    grid-template-columns: 1fr 1.6fr;
}

/* ---- CS CONTENT ---- */
.cs-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.cs-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

/* ---- CS BLOCKS ---- */
.cs-block {
    margin-bottom: 2.5rem;
}

.cs-block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.cs-block-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cs-block-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cs-block-icon.red {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    color: #ff5050;
}

.cs-block-icon.purple {
    background: var(--color-purple-dim);
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--color-purple);
}

.cs-block-icon.green {
    background: rgba(0, 212, 100, 0.1);
    border: 1px solid rgba(0, 212, 100, 0.2);
    color: #00d464;
}

.cs-block p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.9;
    margin-bottom: 0.8rem;
}

/* ---- CS ACTIONS ---- */
.cs-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-action {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cs-action:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.action-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--gradient);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cs-action p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- CS RESULTS ---- */
.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.cs-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
}

.cs-result:hover {
    border-color: var(--border-hover);
}

.result-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.result-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ---- MOQ VISUAL ---- */
.cs-moq-visual {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.2rem 0;
}

.moq-before,
.moq-after {
    flex: 1;
    text-align: center;
}

.moq-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.moq-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.red-text {
    color: #ff5050;
}

.moq-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
    position: relative;
}

.moq-bar.full::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff5050;
    border-radius: 999px;
}

.moq-bar.reduced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: var(--gradient);
    border-radius: 999px;
}

.moq-arrow {
    color: var(--color-purple);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---- CS SIDEBAR ---- */
.cs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.cs-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
}

.cs-info-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.cs-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.cs-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

/* ---- CS PROOF CARD ---- */
.cs-proof-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
}

.cs-proof-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-cyan);
    margin-bottom: 1.2rem;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.proof-item:last-child {
    border-bottom: none;
}

.proof-item i {
    color: var(--color-cyan);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---- CS IMAGE CARD ---- */
.cs-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cs-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.cs-image-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.cs-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* ---- DIVIDER ---- */
.cs-divider {
    padding: 0;
}

.cs-divider-line {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-purple),
        var(--color-cyan),
        transparent
    );
}

/* ---- OVERALL RESULTS ---- */
.overall-results {
    padding: 100px 0;
    background: var(--bg-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.result-big-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.result-big-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.rbc-icon {
    width: 52px;
    height: 52px;
    background: var(--color-purple-dim);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-purple);
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.result-big-card:hover .rbc-icon {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.rbc-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

.rbc-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
}

.result-big-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.7;
}

/* ---- CS TESTIMONIALS ---- */
.cs-testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.cs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cs-review {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.cs-review:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.cs-review.featured-cs-review {
    border-color: rgba(108, 99, 255, 0.3);
    background: linear-gradient(135deg,
        rgba(108, 99, 255, 0.06),
        rgba(0, 212, 255, 0.03));
}

.cs-review-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    display: flex;
    gap: 0.15rem;
    margin-bottom: 1rem;
}

.cs-review p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.cs-review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cs-review-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cs-review-author h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cs-review-author span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cs-grid.reverse {
        grid-template-columns: 1fr;
    }

    .cs-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .cs-cta-btn {
        grid-column: 1 / -1;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cs-hero-stats {
        gap: 1.2rem;
        padding: 1.2rem 1.5rem;
    }

    .cs-hero-divider {
        display: none;
    }

    .cs-hero-stat span {
        font-size: 1.5rem;
    }

    .cs-sidebar {
        grid-template-columns: 1fr;
    }

    .cs-results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-reviews-grid {
        grid-template-columns: 1fr;
    }

    .cs-moq-visual {
        flex-direction: column;
        text-align: center;
    }

    .moq-arrow {
        transform: rotate(90deg);
    }

    .page-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .cs-results-grid {
        grid-template-columns: 1fr;
    }

    .cs-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}
