/* استایل‌های اضافی برای مودال Changelog در پنل کاربری */

.changelog-modal-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.changelog-modal-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.changelog-modal-items {
    margin: 20px 0;
}

.changelog-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #667eea;
    transition: all 0.3s ease;
}

.changelog-modal-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.changelog-modal-item .item-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.changelog-modal-item span:last-child {
    flex: 1;
    line-height: 1.6;
    color: #495057;
}

/* استایل‌های متفاوت برای انواع تغییرات */
.changelog-modal-item[data-type="feature"] {
    border-right-color: #667eea;
}

.changelog-modal-item[data-type="improvement"] {
    border-right-color: #3498db;
}

.changelog-modal-item[data-type="bugfix"] {
    border-right-color: #e74c3c;
}

.changelog-modal-item[data-type="security"] {
    border-right-color: #f39c12;
}

.changelog-modal-item[data-type="performance"] {
    border-right-color: #27ae60;
}

.changelog-modal-item[data-type="design"] {
    border-right-color: #9b59b6;
}

/* انیمیشن ورود آیتم‌ها */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.changelog-modal-item {
    animation: slideInRight 0.4s ease forwards;
}

.changelog-modal-item:nth-child(1) { animation-delay: 0.1s; }
.changelog-modal-item:nth-child(2) { animation-delay: 0.2s; }
.changelog-modal-item:nth-child(3) { animation-delay: 0.3s; }
.changelog-modal-item:nth-child(4) { animation-delay: 0.4s; }
.changelog-modal-item:nth-child(5) { animation-delay: 0.5s; }
.changelog-modal-item:nth-child(6) { animation-delay: 0.6s; }

/* استایل برای نسخه‌های مهم */
.changelog-modal-overlay.changelog-major .changelog-modal-header {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
}

.changelog-modal-overlay.changelog-major .changelog-modal-item {
    border-right-width: 5px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .changelog-modal {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .changelog-modal-title,
    .changelog-modal-content h3 {
        color: #ecf0f1;
    }
    
    .changelog-modal-item {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .changelog-modal-item:hover {
        background: #3d566e;
    }
    
    .changelog-modal-item span:last-child {
        color: #bdc3c7;
    }
    
    .changelog-modal-footer {
        border-top-color: #34495e;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .changelog-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .changelog-modal-header {
        padding: 20px;
    }
    
    .changelog-modal-header h2 {
        font-size: 22px;
    }
    
    .changelog-modal-body {
        padding: 20px;
    }
    
    .changelog-modal-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .changelog-modal-item .item-icon {
        font-size: 18px;
    }
}

/* Scrollbar سفارشی */
.changelog-modal::-webkit-scrollbar {
    width: 8px;
}

.changelog-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.changelog-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.changelog-modal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* افکت نور برای نسخه‌های مهم */
.changelog-major .changelog-modal-header {
    position: relative;
    overflow: hidden;
}

.changelog-major .changelog-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
