/**
 * AMLR 2027 Compliance Platform — Page-Specific Styles
 * Extends products.css with AMLR-specific components:
 * - Demo-wide layout (fixed-width demo to prevent animation jumps)
 * - Content section checklists
 * - Detail cards grid (compliance pillars, operations)
 * - Sector cards grid
 * - Penalty highlight cards
 * - Compliance timeline
 */

/* ==========================================================================
   Demo-Wide Layout
   Side-by-side layout where the demo gets a fixed width to prevent
   layout jumps when demo content changes width between animation states.
   ========================================================================== */

#demo-amlkyc-frame {
    width: 100%;
}

@media (min-width: 992px) {
    .content-section__inner--demo-wide .content-section__media {
        flex: 0 0 620px;
    }

    .content-section__inner--demo-wide .content-section__text {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================================================
   Content Section Checklist
   Bullet-free checklist with check marks inside content sections
   ========================================================================== */

.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;
}

/* ==========================================================================
   Content Section Note
   Secondary paragraph below small-icons-grid with softer styling
   ========================================================================== */

.content-section__note {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.85;
}

/* ==========================================================================
   Sectors Grid — "Who Must Comply?"
   ========================================================================== */

.amlr-sectors {
    padding: var(--space-16) var(--space-4);
    text-align: center;
}

.amlr-sectors__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.amlr-sectors__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;
}

.amlr-sectors__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto var(--space-10);
}

@media (min-width: 576px) {
    .amlr-sectors__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .amlr-sectors__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amlr-sector-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;
}

.amlr-sector-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.amlr-sector-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"] .amlr-sector-card__icon {
    background: rgba(74, 156, 136, 0.15);
    color: #4a9c88;
}

.amlr-sector-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.amlr-sector-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Penalty Cards
   ========================================================================== */

.amlr-sectors__penalties {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .amlr-sectors__penalties {
        flex-direction: row;
    }
}

.amlr-penalty-card {
    flex: 1;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

[data-theme="dark"] .amlr-penalty-card {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
}

.amlr-penalty-card__amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #dc2626;
}

.amlr-penalty-card__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.amlr-penalty-card__desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ==========================================================================
   Compliance Timeline
   ========================================================================== */

.amlr-timeline {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.amlr-timeline__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-align: center;
}

.amlr-timeline__track {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: var(--space-6);
}

.amlr-timeline__track::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-primary);
}

.amlr-timeline__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) 0;
    position: relative;
}

.amlr-timeline__item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-6) + 3px);
    top: calc(var(--space-3) + 6px);
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-secondary);
    background: var(--bg-secondary);
}

.amlr-timeline__item--past::before {
    background: #357a6b;
    border-color: #357a6b;
}

.amlr-timeline__item--current::before {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.amlr-timeline__item--deadline::before {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.amlr-timeline__date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.amlr-timeline__event {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ==========================================================================
   Detail Cards — 3-column grid for compliance pillars
   Reusable card with icon, title, description, and checklist
   ========================================================================== */

.amlr-detail-cards {
    padding: var(--space-16) var(--space-4);
    text-align: center;
}

.amlr-detail-cards__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.amlr-detail-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;
}

.amlr-detail-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .amlr-detail-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .amlr-detail-cards__grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amlr-detail-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;
}

.amlr-detail-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.amlr-detail-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;
    color: #357a6b;
    flex-shrink: 0;
}

[data-theme="dark"] .amlr-detail-card__icon {
    background: rgba(74, 156, 136, 0.15);
    color: #4a9c88;
}

.amlr-detail-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.amlr-detail-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.amlr-detail-card .content-section__checklist {
    margin-top: var(--space-2);
}

/* Horizontal single-card layout: icon+title+desc left, checklist right */
.amlr-detail-card--horizontal {
    max-width: 900px;
    margin: 0 auto;
}

.amlr-detail-card--horizontal .amlr-detail-card__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .amlr-detail-card--horizontal {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-8);
    }

    .amlr-detail-card--horizontal .amlr-detail-card__left {
        flex: 1;
        min-width: 0;
    }

    .amlr-detail-card--horizontal .content-section__checklist {
        flex: 1;
        min-width: 0;
        margin-top: 0;
    }
}

/* Breakout for detail-cards sections */
.product-container > .amlr-detail-cards {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    max-width: none;
}

.amlr-detail-cards--alt {
    background: var(--bg-tertiary);
}

/* ==========================================================================
   Full-Width Breakout for AMLR-Specific Sections
   Same pattern as products.css for --alt sections
   ========================================================================== */

.product-container > .amlr-sectors {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    max-width: none;
}

.amlr-sectors {
    background: var(--bg-tertiary);
}
