/* Reset و تنظیمات پایه */

/* ایکون گلابی با هدفون */
.header-icon {
    width: 3rem;
    height: 3rem;
    vertical-align: middle;
    margin-left: 6px;
}

.chat-icon {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    margin-left: 10px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* هدر */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header h1 i {
    color: #3498db;
    margin-left: 10px;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* محتوای اصلی */
.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* بخش سوالات متداول */
.faq-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 600px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.faq-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.faq-section h2 i {
    color: #e74c3c;
    margin-left: 10px;
}

/* دسته‌بندی‌ها */
.categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #ecf0f1;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 3px;
}

.categories::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

.categories::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.category-btn {
    background: #ecf0f1;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    color: #2c3e50;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #3498db;
    color: white;
}

/* لیست سوالات */
.faq-list {
    flex: 1;
    overflow-y: auto;
    padding: 3px;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.faq-item:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateX(-5px);
}

.faq-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1.3;
}

.faq-question i {
    color: #3498db;
    margin-left: 10px;
}

.faq-answer {
    color: #7f8c8d;
    line-height: 1.3;
    display: none;
    font-size: 0.8rem;
}

.faq-item.expanded .faq-answer {
    display: block;
}

.faq-actions {
    margin-top: 5px;
    display: none;
}

.faq-item.expanded .faq-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rating-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rating-btn:hover {
    background: #229954;
    transform: translateY(-1px);
}

.rating-btn.negative {
    background: #e74c3c;
}

.rating-btn.negative:hover {
    background: #c0392b;
}

/* بخش چت */
.chat-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 600px;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    height: 400px;
    max-height: 400px;
}

.bot-message, .user-message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bot-message i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.bot-message {
    display: flex;
    align-items: center;
}

.user-message i {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.message-content {
    background: white;
    padding: 16px 20px;
    border-radius: 18px;
    max-width: 75%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.05rem;
    line-height: 1.5;
}

.user-message .message-content {
    background: #2ecc71;
    color: white;
}

.chat-input {
    display: flex;
    padding: 20px;
    background: white;
    border-radius: 0 0 20px 20px;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #3498db;
}

.chat-input button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* فوتر */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
}

.contact-item i {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #3498db;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2980b9;
}


/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item, .bot-message, .user-message {
    animation: fadeIn 0.5s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .categories {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* استایل‌های Flow */
.flow-input-container {
    margin: 10px 0;
}

.flow-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flow-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.flow-input button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flow-input button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.flow-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.support-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.support-options .rating-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.support-options .rating-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* اسکرول بار سفارشی */
.faq-list::-webkit-scrollbar {
    width: 6px;
}

.faq-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.faq-list::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.faq-list::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .faq-section, .chat-section {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .categories {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .chat-container {
        min-height: 400px;
    }
    
    .chat-messages {
        height: 300px;
        max-height: 300px;
    }
    
    .faq-section {
        min-height: 400px;
    }
    
    .chat-input input {
        font-size: 14px;
    }
    
    .faq-item {
        padding: 12px;
    }
    
    .faq-item h3 {
        font-size: 1rem;
    }
}
