/* =================================================================
   AI Flight Results - New Ticket Standalone Entegrasyonu
   ntx-results içinde çalışacak şekilde
   ================================================================= */

/* Results Box Styling */
.ntx-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    border: 1px solid #334155;
}

.ntx-results[hidden] {
    display: none;
}

/* AI Loading */
.ai-loading {
    text-align: center;
    padding: 3rem;
}

.spinner-ai {
    width: 50px;
    height: 50px;
    border: 3px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AI Summary */
.ai-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 12px;
    border: 1px solid #3b82f6;
}

.ai-avatar {
    font-size: 2rem;
}

.ai-summary p {
    margin: 0;
    font-size: 1.1rem;
}

/* Hero Cards Grid */
.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hero Card */
.hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--card-color);
}

/* Card Types */
.hero-card.economic { --card-color: #10b981; }
.hero-card.balanced { --card-color: #3b82f6; }
.hero-card.comfort { --card-color: #8b5cf6; }

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.75rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header .tag {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Airline */
.airline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.airline img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 2px;
}

/* Price */
.price {
    text-align: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.price .usd {
    font-size: 2rem;
    font-weight: 700;
    color: var(--card-color);
}

.price .uzs {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Route */
.route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.route .stops {
    background: var(--card-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Value Section */
.value {
    margin: 1rem 0;
}

.value h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--card-color);
}

.value ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.value .tradeoffs li {
    color: #f87171;
}

/* WhatsApp Button */
.whatsapp-btn {
    width: 100%;
    padding: 0.875rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.75rem;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.02);
}

/* Alternatives Section */
.alternatives-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #334155;
}

.alternatives-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alt-item {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.alt-airline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alt-airline img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.alt-route small {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
}

.alt-price {
    text-align: right;
}

.alt-price strong {
    color: #10b981;
    font-size: 1.1rem;
}

.alt-price small {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
}

.alt-wa {
    background: #25d366;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

/* Status Box */
.ntx-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.ntx-status.loading {
    background: #1e3a8a;
    color: white;
}

.ntx-status.error {
    background: #7f1d1d;
    color: #fca5a5;
}

.ntx-status.success {
    background: #064e3b;
    color: #6ee7b7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .alt-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
