/* ============================================
   Use Cases Page — Custom Styles
   ============================================ */

/* ============================================
   Problem Timeline — Before/After Visual
   ============================================ */

.problem-timeline {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    max-width: 1080px;
    margin: 0 auto;
}

.problem-step {
    flex: 1;
    text-align: center;
}

.problem-step-visual {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.problem-step-visual svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.problem-step-danger .problem-step-visual {
    border-color: rgba(239, 68, 68, 0.25);
}

.problem-step-success .problem-step-visual {
    border-color: rgba(16, 185, 129, 0.30);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.08);
}

.problem-step-label h3 {
    font-size: var(--text-h4);
    margin-bottom: var(--space-1);
}

.problem-step-label p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    max-width: 260px;
    margin: 0 auto;
}

.problem-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}

.problem-step-number-danger {
    background: #f87171;
}

.problem-step-number-success {
    background: #34d399;
}

.problem-arrow {
    display: flex;
    align-items: center;
    padding-top: 80px;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
}

/* ============================================
   Use Case Cards — Illustration + Content
   ============================================ */

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7);
    max-width: 1080px;
    margin: 0 auto;
}

.usecase-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.usecase-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.usecase-illustration {
    padding: var(--space-5) var(--space-5) var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.usecase-illustration svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
}

.usecase-illustration-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.08) 100%); }
.usecase-illustration-purple { background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(99, 102, 241, 0.08) 100%); }
.usecase-illustration-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(34, 197, 94, 0.08) 100%); }
.usecase-illustration-orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.04) 0%, rgba(249, 115, 22, 0.08) 100%); }
.usecase-illustration-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.04) 0%, rgba(236, 72, 153, 0.08) 100%); }
.usecase-illustration-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.04) 0%, rgba(6, 182, 212, 0.08) 100%); }
.usecase-illustration-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(245, 158, 11, 0.08) 100%); }
.usecase-illustration-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(239, 68, 68, 0.08) 100%); }

.usecase-content {
    padding: var(--space-5) var(--space-6) var(--space-6);
}

.usecase-content h3 {
    font-size: var(--text-h3);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.usecase-content p {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.usecase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.usecase-tags li {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 100px;
}

/* ============================================
   Provides Grid — Icon-Enhanced Feature Cards
   ============================================ */

.provides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1080px;
    margin: 0 auto;
}

.provides-card {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.provides-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.provides-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.provides-icon-blue { background: rgba(59, 130, 246, 0.10); color: #60a5fa; }
.provides-icon-green { background: rgba(16, 185, 129, 0.10); color: #34d399; }
.provides-icon-purple { background: rgba(139, 92, 246, 0.10); color: #a78bfa; }
.provides-icon-orange { background: rgba(249, 115, 22, 0.10); color: #fb923c; }

.provides-card h3 {
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.provides-card p {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .problem-timeline {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }

    .problem-step {
        max-width: 400px;
        width: 100%;
    }

    .problem-arrow {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .usecase-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .provides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .problem-step-visual {
        padding: var(--space-2);
    }

    .problem-step-label h3 {
        font-size: var(--text-body);
    }

    .usecase-content {
        padding: var(--space-4) var(--space-4) var(--space-5);
    }

    .usecase-content h3 {
        font-size: var(--text-h4);
    }
}

@media (max-width: 480px) {
    .provides-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .problem-step-number {
        width: 28px;
        height: 28px;
        font-size: var(--text-xs);
    }
}
