/* استایل‌های سامانه پیشنهاد شعار - نسخه حرفه‌ای */

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

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* کلاس‌های انیمیشن */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* استایل‌های عمومی */
body {
    font-family: Vazir, sans-serif;
    overflow-x: hidden;
}

/* استایل‌های فرم */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3B82F6;
    border-color: #3B82F6;
}

/* استایل‌های کارت */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* استایل‌های دکمه */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

/* استایل‌های نوار بارگذاری */
.loading {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل‌های ستاره‌های امتیازدهی */
.star-rating {
    display: flex;
    direction: ltr;
}

.star-rating .star {
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star {
    color: #f59e0b;
}

/* استایل‌های ابر کلمات */
.word-cloud {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.word-cloud-word {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 6px;
}

.word-cloud-word:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
    z-index: 10;
}

/* استایل‌های جدول */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    padding: 16px;
    text-align: right;
}

td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover td {
    background-color: #f9fafb;
}

/* استایل‌های رسپانسیو */
@media (max-width: 768px) {
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    th, td {
        padding: 12px 8px;
    }
}

/* استایل‌های مودال */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

/* استایل‌های اسکرول بار */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* استایل‌های متن */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* استایل‌های بدنه نوتفیکیشن */
.notification {
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 12px;
}

.notification.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.notification.info {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}