/**
 * Sentinel — Page-Specific Styles
 * Extends products.css with Sentinel forensics page components:
 * - Fraud type cards grid
 * - Stat highlight cards
 * - Pipeline visualization
 * - Results table
 */

/* ==========================================================================
   Fraud Type Cards — "What we detect" grid
   ========================================================================== */

.sentinel-fraud-cards {
    padding: var(--space-16) var(--space-4);
    text-align: center;
}

.sentinel-fraud-cards__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.sentinel-fraud-cards__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: var(--text-max-width);
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

.sentinel-fraud-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .sentinel-fraud-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .sentinel-fraud-cards__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sentinel-fraud-card {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sentinel-fraud-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sentinel-fraud-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(91, 154, 139, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: #357a6b;
}

[data-theme="dark"] .sentinel-fraud-card__icon {
    background: rgba(74, 156, 136, 0.15);
    color: #4a9c88;
}

.sentinel-fraud-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.sentinel-fraud-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Full-width breakout */
.product-container > .sentinel-fraud-cards {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    max-width: none;
}

.sentinel-fraud-cards--alt {
    background: var(--bg-tertiary);
}

/* ==========================================================================
   Stat Highlights — Key numbers row
   ========================================================================== */

.sentinel-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.sentinel-stat {
    text-align: center;
    min-width: 120px;
}

.sentinel-stat__value {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
    font-family: var(--font-family-mono);
}

.sentinel-stat__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ==========================================================================
   Pipeline Steps — Visual architecture
   ========================================================================== */

.sentinel-pipeline {
    padding: var(--space-16) var(--space-4);
    text-align: center;
}

.sentinel-pipeline__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.sentinel-pipeline__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: var(--text-max-width);
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

.sentinel-pipeline__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sentinel-pipeline__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .sentinel-pipeline__grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sentinel-pipeline-card {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sentinel-pipeline-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sentinel-pipeline-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(91, 154, 139, 0.15);
    color: #357a6b;
    font-weight: 700;
    font-size: var(--text-sm);
    font-family: var(--font-family-mono);
    flex-shrink: 0;
}

[data-theme="dark"] .sentinel-pipeline-card__step {
    background: rgba(74, 156, 136, 0.15);
    color: #4a9c88;
}

.sentinel-pipeline-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sentinel-pipeline-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Full-width breakout */
.product-container > .sentinel-pipeline {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    max-width: none;
}

/* ==========================================================================
   Results Table — Test case demonstration
   ========================================================================== */

.sentinel-results {
    padding: var(--space-16) var(--space-4);
    text-align: center;
}

.sentinel-results__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.sentinel-results__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: var(--text-max-width);
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

.sentinel-results__table-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.sentinel-results__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    text-align: left;
}

.sentinel-results__table th {
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-3) var(--space-4);
    border-bottom: 2px solid var(--border-primary);
    white-space: nowrap;
}

.sentinel-results__table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.sentinel-results__table tr:last-child td {
    border-bottom: none;
}

.sentinel-risk--low {
    color: var(--accent-primary);
    font-weight: 600;
}

.sentinel-risk--high {
    color: #c0392b;
    font-weight: 600;
}

[data-theme="dark"] .sentinel-risk--high {
    color: #e74c3c;
}

/* Full-width breakout */
.product-container > .sentinel-results {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    max-width: none;
    background: var(--bg-tertiary);
}

/* ==========================================================================
   Integration Options — API vs LENS
   ========================================================================== */

.sentinel-integration {
    padding: var(--space-16) var(--space-4);
    text-align: center;
}

.sentinel-integration__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.sentinel-integration__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: var(--text-max-width);
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

.sentinel-integration__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sentinel-integration__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sentinel-integration-card {
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sentinel-integration-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sentinel-integration-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(91, 154, 139, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #357a6b;
    flex-shrink: 0;
}

[data-theme="dark"] .sentinel-integration-card__icon {
    background: rgba(74, 156, 136, 0.15);
    color: #4a9c88;
}

.sentinel-integration-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sentinel-integration-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sentinel-integration-card .content-section__checklist {
    margin-top: var(--space-2);
}

/* ==========================================================================
   Content Section Checklist (if not already loaded from sentio.css)
   ========================================================================== */

.content-section__checklist {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.content-section__checklist li {
    position: relative;
    padding-left: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-section__checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: rgba(91, 154, 139, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23357a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}
