/**
 * AI Travel Itinerary Creator - Front-end Styles
 * Modern, clean design inspired by Layla.ai
 */

/* ============================================
   Container & Layout
   ============================================ */

.aiti-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   Header
   ============================================ */

.aiti-header {
    text-align: center;
    margin-bottom: 50px;
}

.aiti-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.aiti-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

/* ============================================
   Form Section
   ============================================ */

.aiti-form-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.aiti-chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.aiti-input-group {
    margin-bottom: 30px;
}

.aiti-input-group label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.input-icon {
    font-size: 24px;
    margin-right: 10px;
}

.input-label {
    flex: 1;
}

.aiti-input,
.aiti-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

.aiti-input:focus,
.aiti-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.aiti-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Interest Tags */
.aiti-interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.interest-tag {
    padding: 10px 18px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.interest-tag:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.interest-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Generate Button */
.aiti-generate-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.aiti-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.aiti-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Results Section
   ============================================ */

.aiti-results-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nepal Offer Banner */
.aiti-nepal-offer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 40px rgba(245, 87, 108, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nepal-offer-header h2 {
    font-size: 32px;
    margin: 0 0 5px 0;
}

.nepal-tagline {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.nepal-offer-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 25px;
}

.promo-badge {
    background: white;
    color: #f5576c;
    border-radius: 15px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.discount-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.discount-text {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-top: 5px;
}

.nepal-details {
    flex: 1;
}

.nepal-promo {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.nepal-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.contact-item a:hover {
    border-bottom-color: white;
}

.contact-icon {
    font-size: 18px;
}

.nepal-booking-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    color: #f5576c;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nepal-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Itinerary Card
   ============================================ */

.aiti-itinerary-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.itinerary-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.itinerary-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 16px;
}

/* Images Gallery */
.itinerary-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.itinerary-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Itinerary Content */
.itinerary-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.itinerary-content h3 {
    color: #667eea;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.itinerary-content h4 {
    color: #764ba2;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.itinerary-content p {
    margin-bottom: 15px;
}

.itinerary-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.itinerary-content li {
    margin-bottom: 10px;
}

.itinerary-content strong {
    color: #333;
    font-weight: 600;
}

/* ============================================
   Tours Section
   ============================================ */

.aiti-tours-section {
    margin-bottom: 30px;
}

.aiti-tours-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tour-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tour-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tour-content {
    padding: 20px;
}

.tour-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
}

.tour-rating {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.tour-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.tour-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.tour-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tour-btn:hover {
    background: #764ba2;
    transform: scale(1.05);
}

/* ============================================
   New Search Section
   ============================================ */

.aiti-new-search {
    text-align: center;
    margin-top: 40px;
}

.aiti-secondary-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aiti-secondary-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ============================================
   Notifications
   ============================================ */

.aiti-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.aiti-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.aiti-notification-success {
    border-left: 4px solid #4caf50;
    color: #4caf50;
}

.aiti-notification-error {
    border-left: 4px solid #f44336;
    color: #f44336;
}

.aiti-notification-info {
    border-left: 4px solid #2196f3;
    color: #2196f3;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .aiti-container {
        padding: 20px 15px;
    }
    
    .aiti-title {
        font-size: 36px;
    }
    
    .aiti-subtitle {
        font-size: 16px;
    }
    
    .aiti-form-section {
        padding: 25px;
    }
    
    .aiti-input-row {
        grid-template-columns: 1fr;
    }
    
    .nepal-offer-body {
        grid-template-columns: 1fr;
    }
    
    .promo-badge {
        margin: 0 auto;
    }
    
    .nepal-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .itinerary-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .itinerary-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .aiti-title {
        font-size: 28px;
    }
    
    .aiti-form-section,
    .aiti-itinerary-card {
        padding: 20px;
    }
    
    .aiti-nepal-offer {
        padding: 25px;
    }
    
    .nepal-offer-header h2 {
        font-size: 24px;
    }
    
    .interest-tag {
        font-size: 13px;
        padding: 8px 14px;
    }
}
