/* ==========================================================================
   VIUCraft Use Cases Page Styles
   ========================================================================== */

/* ---------- Hero ---------- */
.uc-hero {
    background: var(--gradient-brand);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.uc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.uc-hero .container {
    position: relative;
    z-index: 1;
}

.uc-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.uc-hero p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Use case sections ---------- */
.uc-section {
    padding: 80px 0;
}

.uc-section-alt {
    background: var(--neutral-50);
}

/* ---------- Grid layout ---------- */
.uc-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.uc-inner-reverse .uc-text {
    order: 2;
}

.uc-inner-reverse .uc-visual {
    order: 1;
}

/* ---------- Icon ---------- */
.uc-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.uc-icon-blue   { background: linear-gradient(135deg, #4268e6, #5a78f0); }
.uc-icon-green  { background: linear-gradient(135deg, #36b37e, #4cc98e); }
.uc-icon-purple { background: linear-gradient(135deg, #7161ef, #8a7cf5); }
.uc-icon-orange { background: linear-gradient(135deg, #e69f00, #ffab00); }

/* ---------- Text content ---------- */
.uc-text h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.uc-subtitle {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

/* ---------- Problem / Solution ---------- */
.problem-solution {
    margin: 1.25rem 0;
}

.ps-block {
    margin-bottom: 1rem;
}

.ps-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.ps-label.problem  { color: var(--primary-red, #ef4444); }
.ps-label.solution { color: var(--primary-green); }

.ps-text {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ---------- URL example code blocks ---------- */
.uc-url-example {
    background: #1e293b;
    border-radius: var(--radius-md);
    padding: 1rem 1.125rem;
    margin-top: 1.25rem;
}

.uc-url-example .url-label {
    font-size: var(--font-size-xs);
    color: #64748b;
    margin-bottom: 6px;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

.uc-url-example code {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.82rem;
    color: #93c5fd;
    word-break: break-all;
    display: block;
    line-height: 1.7;
}

.uc-url-example code .op {
    color: #fbbf24;
}

/* ---------- Visual card ---------- */
.uc-visual {
    background: var(--neutral-0, #fff);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.uc-visual-header {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-400);
    margin-bottom: 1rem;
}

/* ---------- Numbered steps ---------- */
.uc-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uc-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-100);
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
}

.uc-steps li:last-child {
    border-bottom: none;
}

.uc-steps .step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uc-steps code {
    background: rgba(113, 97, 239, 0.08);
    color: var(--primary-purple);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

/* ---------- Operations flow chips ---------- */
.ops-flow {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.op-chip {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
}

.op-chip i {
    width: 20px;
    text-align: center;
    color: var(--primary-purple);
}

.op-chip code {
    background: rgba(113, 97, 239, 0.08);
    color: var(--primary-purple);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

.op-arrow {
    text-align: center;
    color: var(--neutral-300);
    font-size: 0.85rem;
}

/* ---------- CTA section ---------- */
.cta-section-uc {
    background: var(--gradient-brand);
    color: #fff;
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section-uc::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cta-section-uc .container {
    position: relative;
    z-index: 1;
}

.cta-section-uc h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section-uc p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.cta-section-uc .btn-light {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--primary-purple);
}

.cta-section-uc .btn-light:hover {
    background: #f0f0f0;
}

.cta-section-uc .btn-outline-light {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .uc-section {
        padding: 56px 0;
    }
}

@media (max-width: 767px) {
    .uc-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .uc-inner-reverse .uc-text {
        order: 1;
    }

    .uc-inner-reverse .uc-visual {
        order: 2;
    }

    .uc-hero {
        padding: 60px 0 48px;
    }

    .uc-section {
        padding: 40px 0;
    }

    .uc-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 16px;
    }

    .cta-section-uc {
        padding: 56px 0;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .uc-visual,
    .op-chip {
        transition: none;
    }
}
