/* ===================================
   NoBreaksAllowed Case Studies Styles
   =================================== */

.case-page {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 100px;
    padding-bottom: 80px;
}

.case-hero {
    padding: 48px 0 64px 0;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.7) 100%);
    position: relative;
}

.case-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.case-breadcrumb:hover {
    color: var(--accent);
    transform: translateX(-2px);
}

.case-badge-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.case-client-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.case-pill-agency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.case-pill-award {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.case-client-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.case-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    max-width: 840px;
    letter-spacing: -0.02em;
}

.case-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 780px;
}

/* KPIs Ribbon */
.kpi-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

@media (max-width: 900px) {
    .kpi-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .kpi-ribbon {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.8;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.kpi-val {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.kpi-val.highlight-accent {
    color: var(--accent);
}

.kpi-val.highlight-green {
    color: #10b981;
}

.kpi-val.highlight-purple {
    color: #8b5cf6;
}

.kpi-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Case Body Layout */
.case-body {
    padding: 60px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

@media (max-width: 900px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

.case-section {
    margin-bottom: 48px;
}

.case-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-section h2 i {
    color: var(--accent);
    font-size: 22px;
}

.case-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.case-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.case-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.case-feature-list li i {
    color: #10b981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Visual Highlights / Mockups */
.case-media-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin: 32px 0;
}

.case-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.case-data-table th {
    background: var(--bg-surface-alt);
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.case-data-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

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

.case-data-table tr:hover td {
    background: rgba(99, 102, 241, 0.02);
}

.case-data-table td.metric-cell {
    text-align: right;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.case-data-table td.metric-cell strong {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 17px;
}

.case-data-table td.metric-cell.highlight strong {
    color: #10b981;
}

.case-data-table .metric-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 4px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.comparison-table th, .comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.comparison-table th {
    background: var(--bg-surface-alt);
    font-weight: 700;
    color: var(--text-primary);
}

.comparison-table td.bad {
    color: #ef4444;
    font-weight: 600;
}

.comparison-table td.good {
    color: #10b981;
    font-weight: 700;
}

/* Sidebar Info Card */
.case-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.meta-item {
    margin-bottom: 16px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Press & Awards Banner */
.award-badge-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.award-badge-box::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.award-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.award-content {
    flex: 1;
}

.award-content .award-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    background: rgba(245, 158, 11, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.award-content h4 {
    font-size: 18px;
    font-weight: 800;
    color: #78350f;
    margin-bottom: 6px;
}

.award-content p {
    font-size: 14px;
    color: #92400e;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.award-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.award-link-btn:hover {
    color: #78350f;
    transform: translateX(3px);
}

/* Press Grid & Press Cards */
.press-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .press-cards-grid {
        grid-template-columns: 1fr;
    }
}

.press-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.press-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.press-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.press-source-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.press-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 10px;
}

.press-card-quote {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 14px;
    flex: 1;
}

.press-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

/* Visual Proofs Grid (Video & Screenshot) */
.media-proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 28px 0;
}

.case-screenshot-container {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-screenshot-container:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.case-screenshot-header {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-screenshot-dots {
    display: flex;
    gap: 6px;
}

.case-screenshot-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.case-screenshot-dots span:nth-child(1) { background: #ef4444; }
.case-screenshot-dots span:nth-child(2) { background: #f59e0b; }
.case-screenshot-dots span:nth-child(3) { background: #10b981; }

.case-screenshot-img,
.case-video-player {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background: #000000;
}

.case-screenshot-caption {
    padding: 16px 20px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.55;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.case-screenshot-caption i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Status Badges for Tables */
.badge-status-cert {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Bottom CTA Banner */
.case-bottom-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin-top: 40px;
}

.case-bottom-cta h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 12px;
}

.case-bottom-cta p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 28px auto;
    font-size: 16px;
}
