/**
 * استایل بخش فرانت‌اند
 * 
 * @package Hoosh_Negar
 */


/* استایل‌های کلی برای چت‌بات */
* {
    box-sizing: border-box;
}

.hn-chatbot-suggestions a {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    background: #f0f4f8;
    color: #334155;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.hn-chatbot-suggestions a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: transparent;
}

/* انیمیشن برای پیام‌ها */
.hn-chatbot-message {
    opacity: 1;
    animation: fadeInMessage 0.3s ease;
}

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

/* بج منبع FAQ */
.hn-message-source {
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* FAQ Container */
.hn-faq-container {
    padding: 20px;
    animation: fadeInUp 0.5s ease;
}

.hn-faq-header {
    text-align: center;
    margin-bottom: 24px;
}

.hn-faq-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.hn-faq-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.hn-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.hn-faq-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    width: 100%;
}

.hn-faq-item:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.hn-faq-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.hn-faq-q {
    flex: 1;
    line-height: 1.5;
}

.hn-faq-footer {
    display: flex;
    justify-content: center;
}

.hn-start-chat-btn,
.hn-back-faq-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hn-start-chat-btn:hover,
.hn-back-faq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.hn-faq-actions {
    display: flex;
    gap: 10px;
    padding: 16px;
    justify-content: center;
    animation: fadeInUp 0.3s ease;
}

.hn-back-faq-btn {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: none;
}

.hn-back-faq-btn:hover {
    background: #6366f1;
    color: white;
}

/* Suggestion Cards */
.hn-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.hn-suggestion-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.hn-suggestion-card:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.hn-card-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f1f5f9;
}

.hn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hn-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hn-card-icon {
    font-size: 24px;
}

.hn-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hn-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}

.hn-card-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 380px) {
    .hn-suggestions-grid {
        grid-template-columns: 1fr;
    }
}

/* پشتیبانی از Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --chat-bg: #1e293b;
        --chat-white: #334155;
        --chat-border: #475569;
        --chat-text: #f1f5f9;
        --chat-text-light: #cbd5e1;
    }
}
