/**
 * Travel Pro AI Engine - Frontend Styles
 * Version: 1.0.0
 */

/* ==================================
   URGENCY ALERTS
   ================================== */

.tpai-urgency-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    margin: 0 0 30px 0;
    border-radius: 8px;
    border-left: 4px solid;
    animation: tpai-slide-in 0.3s ease-out;
}

@keyframes tpai-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Urgency Levels */
.tpai-urgency-alert.urgency-critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #dc2626;
}

.tpai-urgency-alert.urgency-high {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left-color: #ea580c;
}

.tpai-urgency-alert.urgency-medium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}

.tpai-urgency-alert.urgency-low {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: #0ea5e9;
}

/* Alert Icon */
.tpai-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tpai-urgency-alert.urgency-critical .tpai-alert-icon {
    background: #dc2626;
    color: #fff;
}

.tpai-urgency-alert.urgency-high .tpai-alert-icon {
    background: #ea580c;
    color: #fff;
}

.tpai-urgency-alert.urgency-medium .tpai-alert-icon {
    background: #f59e0b;
    color: #fff;
}

.tpai-urgency-alert.urgency-low .tpai-alert-icon {
    background: #0ea5e9;
    color: #fff;
}

/* Alert Content */
.tpai-alert-content {
    flex: 1;
}

.tpai-alert-message {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.tpai-urgency-alert.urgency-critical .tpai-alert-message {
    color: #991b1b;
}

.tpai-urgency-alert.urgency-high .tpai-alert-message {
    color: #9a3412;
}

.tpai-urgency-alert.urgency-medium .tpai-alert-message {
    color: #92400e;
}

.tpai-urgency-alert.urgency-low .tpai-alert-message {
    color: #075985;
}

.tpai-alert-detail {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Alert Badge */
.tpai-alert-badge {
    flex-shrink: 0;
}

.tpai-confidence {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
}

/* ==================================
   RESPONSIVE
   ================================== */

@media (max-width: 768px) {
    .tpai-urgency-alert {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        gap: 10px;
    }
    
    .tpai-alert-message {
        font-size: 15px;
    }
    
    .tpai-alert-detail {
        font-size: 12px;
    }
}

/* ==================================
   ACCESSIBILITY
   ================================== */

.tpai-urgency-alert:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tpai-urgency-alert {
        animation: none;
    }
}





