/* =========================================
   Case Study Detail Page — Shared Styles
   ========================================= */

.case-hero {
    padding: 140px 24px 48px;
    max-width: 900px;
    margin: 0 auto;
}
.case-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}
.case-breadcrumb a {
    color: #2997ff;
    text-decoration: none;
}
.case-breadcrumb a:hover { text-decoration: underline; }
.case-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.case-tag {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.case-tag.blue { background: rgba(41,151,255,0.15); color: #2997ff; }
.case-tag.gold { background: rgba(212,168,67,0.15); color: #D4A843; }
.case-tag.red { background: rgba(255,69,58,0.12); color: #ff453a; }
.case-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.case-hero h1 .highlight {
    background: linear-gradient(135deg, #2997ff, #64d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.case-hero-subtitle {
    font-size: 16px;
    color: #b0b0b5;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 720px;
}
.case-meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
}
.case-meta-item { text-align: center; }
.case-meta-item .val {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2997ff;
}
.case-meta-item .val.gold { color: #D4A843; }
.case-meta-item .val.red { color: #ff453a; }
.case-meta-item .lbl {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* Content sections */
.case-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.case-section { margin-bottom: 48px; }
.case-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
}
.case-section h2 .num {
    color: #D4A843;
    margin-right: 8px;
}
.case-section p, .case-section li {
    font-size: 15px;
    color: #b0b0b5;
    line-height: 1.7;
}
.case-section ul {
    list-style: none;
    padding: 0;
}
.case-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.case-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #2997ff;
    border-radius: 50%;
}

/* Cost alert box */
.cost-alert {
    background: linear-gradient(135deg, rgba(255,69,58,0.08), rgba(255,69,58,0.03));
    border: 1px solid rgba(255,69,58,0.2);
    border-left: 4px solid #ff453a;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}
.cost-alert h3 {
    color: #ff453a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.cost-alert .cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cost-item .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.cost-item .desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Solution box */
.solution-box {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.solution-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.solution-step:last-child { margin-bottom: 0; }
.solution-step .step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2997ff, #0077ed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.solution-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.solution-step p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Image gallery */
.case-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.case-gallery.single { grid-template-columns: 1fr; }
.gallery-item {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.gallery-item .caption {
    padding: 10px 14px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #222;
}
.gallery-item .caption strong { color: #2997ff; }

/* Results table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
}
.results-table th {
    background: #111;
    color: #D4A843;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #333;
}
.results-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
}
.results-table tr:hover td { background: rgba(41,151,255,0.03); }
.results-table .pass { color: #30d158; font-weight: 600; }
.results-table .fail { color: #ff453a; font-weight: 600; }
.results-table .warn { color: #ffd60a; font-weight: 600; }
.results-table .val { font-family: 'JetBrains Mono', monospace; text-align: right; }

/* Result cards */
.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.result-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.result-card .big {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
}
.result-card .big.blue { color: #2997ff; }
.result-card .big.green { color: #30d158; }
.result-card .big.gold { color: #D4A843; }
.result-card .label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* CTA */
.case-cta {
    background: linear-gradient(135deg, rgba(41,151,255,0.08), rgba(41,151,255,0.02));
    border: 1px solid rgba(41,151,255,0.15);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}
.case-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}
.case-cta p {
    color: #888;
    margin-bottom: 20px;
    font-size: 14px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2997ff;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.btn-primary:hover { background: #0077ed; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #2997ff;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid #2997ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-left: 12px;
    transition: all 0.2s;
}
.btn-outline:hover { background: rgba(41,151,255,0.1); }

@media (max-width: 768px) {
    .case-gallery { grid-template-columns: 1fr; }
    .cost-alert .cost-grid { grid-template-columns: 1fr; }
    .case-cta { padding: 24px; }
    .btn-outline { margin-left: 0; margin-top: 12px; }
}
