/* ============================================
   Fire Safety Pillar — Preview Components
   /assets/css/landing/fire-safety-software-dubai.css
   ============================================ */

/* --- Preview Strip (horizontal card row) --- */
.pillar-preview-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

@media (max-width: 768px) {
    .pillar-preview-strip {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* --- Preview Card --- */
.preview-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.preview-card:hover {
    border-color: rgba(37, 211, 102, 0.25);
}

.preview-card--compact {
    padding: 1rem 1.25rem;
}

.preview-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
}

.preview-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.preview-card__dot--green { background: #25D366; }
.preview-card__dot--amber { background: #f59e0b; }
.preview-card__dot--red { background: #ef4444; }
.preview-card__dot--grey { background: #6b7280; }

.preview-card__label {
    color: rgba(241, 237, 228, 0.5);
    font-size: 0.75rem;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.02em;
}

.preview-card__badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(241, 237, 228, 0.6);
}

.preview-card__badge--active {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
}

.preview-card__badge--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.preview-card__badge--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.preview-card__title {
    color: #f1ede4;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Manrope', sans-serif;
}

.preview-card__meta {
    color: rgba(241, 237, 228, 0.4);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: 'Manrope', sans-serif;
}

.preview-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
    color: rgba(241, 237, 228, 0.5);
    font-family: 'Manrope', sans-serif;
}

.preview-card__value {
    color: #f1ede4;
    font-weight: 500;
}

.preview-card__value--warn {
    color: #f59e0b;
}

.preview-card__value--danger {
    color: #ef4444;
}

/* --- Inline Preview Block --- */
.pillar-preview-inline {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
}

/* --- Timeline Bar --- */
.preview-timeline__bar {
    display: flex;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.preview-timeline__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    color: rgba(241, 237, 228, 0.7);
    transition: opacity 0.2s ease;
}

.preview-timeline__segment--clear {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(241, 237, 228, 0.25);
}

.preview-timeline__segment--amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.preview-timeline__segment--red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.preview-timeline__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: rgba(241, 237, 228, 0.3);
    font-family: 'Manrope', sans-serif;
    padding: 0 0.25rem;
}

/* --- Checklist --- */
.preview-checklist__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8125rem;
    font-family: 'Manrope', sans-serif;
}

.preview-checklist__item:last-child {
    border-bottom: none;
}

.preview-checklist__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.preview-checklist__icon--done {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
}

.preview-checklist__icon--flag {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.preview-checklist__icon--pending {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(241, 237, 228, 0.3);
}

.preview-checklist__text {
    flex: 1;
    color: rgba(241, 237, 228, 0.7);
}

.preview-checklist__result {
    color: rgba(241, 237, 228, 0.4);
    font-size: 0.75rem;
    text-align: right;
    flex-shrink: 0;
}

.preview-checklist__result--flag {
    color: #f59e0b;
}

.preview-checklist__result--pending {
    color: rgba(241, 237, 228, 0.25);
    font-style: italic;
}

@media (max-width: 640px) {
    .preview-checklist__item {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .preview-checklist__result {
        width: 100%;
        text-align: left;
        padding-left: 2.125rem;
    }
}
