/*
 * Case-study page styles (/use-cases/<slug>).
 * Loaded only by includes/case-study-template.php.
 */

/* =========================================================================
   Hero
   ========================================================================= */

.case-study-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #ffffff;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.case-study-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

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

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* "Example workflow" label: deliberately distinct from the industry badge. */
.hero-badge--example {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-example-note {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.hero-image-container {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
}

.trust-badge {
    margin-top: 2rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.trust-badge i {
    color: #10b981;
    margin-inline-end: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: #94a3b8;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #60a5fa;
}

.breadcrumb-item.active {
    color: #e2e8f0;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* =========================================================================
   Content sections
   ========================================================================= */

.content-section {
    padding: 4rem 0;
}

.content-section:nth-of-type(even) {
    background-color: #f8fafc;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
}

.section-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
}

.section-content p {
    margin-bottom: 1.5rem;
}

/* Setup: settings as label/value rows; output: export columns. */
.case-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
}

.case-table th,
.case-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: start;
    vertical-align: top;
    color: #475569;
}

.case-table thead th {
    background-color: #eff6ff;
    color: #1e293b;
    font-weight: 700;
}

.case-table tbody th {
    color: #1e293b;
    font-weight: 600;
    width: 32%;
}

.case-table tr:last-child th,
.case-table tr:last-child td {
    border-bottom: none;
}

.case-table code {
    color: #1e40af;
    background: #eff6ff;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.section-note {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #64748b;
}

.workflow-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-inline-start: 0;
}

.workflow-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-inline-start: 4rem;
    margin-bottom: 2rem;
    color: #475569;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.workflow-steps li::before {
    content: counter(step-counter);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.workflow-steps li strong {
    color: #1e293b;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* "Fits well if…" list. */
.icon-list {
    list-style: none;
    padding-inline-start: 0;
    margin: 0;
}

.icon-list li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #475569;
    line-height: 1.6;
}

[dir="rtl"] .icon-list li {
    padding: 1rem 3rem 1rem 1rem;
}

.icon-list li i {
    position: absolute;
    inset-inline-start: 1rem;
    top: 1.2rem;
}

.icon-list--fits li i {
    color: #10b981;
}

/* =========================================================================
   Closing call to action
   ========================================================================= */

.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}
