@font-face {
    font-family: 'Vazir';
    src: url('font/Vazir.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #0f8a86 0%, #0d6e6b 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    opacity: 0.9;
}

.search-section {
    background: white;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-box-wrapper {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

#searchInput {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #e9ecef;
    border-radius: 60px;
    font-size: 1rem;
    font-family: 'Vazir', sans-serif;
    transition: all 0.3s;
    background: #f8f9fa;
}

#searchInput:focus {
    outline: none;
    border-color: #0f8a86;
    box-shadow: 0 0 0 4px rgba(15,138,134,0.1);
    background: white;
}

.search-btn {
    background: linear-gradient(135deg, #0f8a86 0%, #0d6e6b 100%);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 60px;
    font-size: 1rem;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15,138,134,0.3);
}

.search-loading {
    text-align: center;
    padding: 15px;
    color: #0f8a86;
    font-weight: 500;
    margin-top: 15px;
}

.info-card {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eef5 100%);
    border: 1px solid #0f8a86;
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card-text {
    color: #0f8a86;
    font-size: 0.85rem;
    line-height: 1.7;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-box-primary::before { background: linear-gradient(90deg, #0f8a86, #20c997); }
.stat-box-success::before { background: linear-gradient(90deg, #28a745, #20c997); }
.stat-box-info::before { background: linear-gradient(90deg, #17a2b8, #0dcaf0); }

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    background: #f8f9fa;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: all 0.3s;
}

.stat-box:hover .stat-icon { transform: scale(1.05); }

.stat-content { flex: 1; }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label { font-size: 0.8rem; color: #6c757d; }
.stat-box-primary .stat-number { color: #0f8a86; }
.stat-box-success .stat-number { color: #28a745; }
.stat-box-info .stat-number { color: #17a2b8; }

.popular-section { margin: 40px 0; }
.popular-section h2 {
    margin-bottom: 25px;
    padding-right: 15px;
    border-right: 4px solid #0f8a86;
    font-size: 1.5rem;
    color: #2c3e50;
}

.results-section { margin: 40px 0; }
.results-section h2 {
    margin-bottom: 25px;
    padding-right: 15px;
    border-right: 4px solid #0f8a86;
    font-size: 1.5rem;
}
.results-section h3 {
    margin: 20px 0 15px 0;
    padding-right: 10px;
    color: #495057;
    font-size: 1.2rem;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.plugin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.plugin-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #0f8a86;
}

.plugin-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 15px;
    padding: 8px;
}

.plugin-icon-placeholder {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.plugin-title { flex: 1; }
.plugin-title h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
}
.badge-local { background: #d4edda; color: #155724; }
.badge-remote { background: #d1ecf1; color: #0c5460; }

.plugin-body { padding: 15px 20px; }
.plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.7rem;
    color: #6c757d;
}
.plugin-meta span {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 8px;
}

.plugin-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn, .update-btn {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    border: none;
}

.download-btn { background: linear-gradient(135deg, #0f8a86 0%, #0d6e6b 100%); color: white; }
.update-btn { background: #ffc107; color: #2c3e50; }
.update-btn:hover:not(:disabled) { background: #e0a800; transform: scale(0.98); }
.download-btn:hover:not(:disabled) { background: #0d6e6b; transform: scale(0.98); }
.download-btn:disabled, .update-btn:disabled { background: #adb5bd; cursor: not-allowed; opacity: 0.7; }

.update-status { padding: 10px 20px; font-size: 0.8rem; }
.update-available { background: #fff3cd; border: 1px solid #ffc107; border-radius: 10px; padding: 10px; text-align: center; }
.update-now-btn { background: #0f8a86; color: white; border: none; padding: 5px 15px; border-radius: 20px; margin-top: 8px; cursor: pointer; font-family: 'Vazir', sans-serif; }
.update-no { background: #d4edda; border: 1px solid #28a745; border-radius: 10px; padding: 10px; text-align: center; color: #155724; }
.update-error { background: #f8d7da; border: 1px solid #dc3545; border-radius: 10px; padding: 10px; text-align: center; color: #721c24; }
.update-progress, .update-checking { background: #d1ecf1; border: 1px solid #17a2b8; border-radius: 10px; padding: 10px; text-align: center; }
.update-success { background: #d4edda; border: 1px solid #28a745; border-radius: 10px; padding: 10px; text-align: center; color: #155724; }

.info-message {
    text-align: center;
    padding: 40px;
    grid-column: 1/-1;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 15px;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 20px;
    font-size: 0.85rem;
}

.footer-contact {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}
.footer-contact p { margin-bottom: 0; }
.footer-contact strong { color: #ffc107; }
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
footer a { color: #0f8a86; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    body { padding: 10px; }
    .plugins-grid { grid-template-columns: 1fr; }
    header h1 { font-size: 1.5rem; }
    .plugin-header { flex-direction: column; text-align: center; }
    .plugin-title h3 { font-size: 1rem; }
    .plugin-actions { flex-direction: column; }
    .search-input-group { flex-direction: column; }
    .search-btn { width: 100%; justify-content: center; }
    .stats-container { grid-template-columns: 1fr; gap: 15px; }
    .stat-box { padding: 18px; }
    .stat-icon { width: 55px; height: 55px; font-size: 2rem; }
    .stat-number { font-size: 1.5rem; }
}
/* اضافه کردن به style.css - استایل بخش افزونه‌های بروز شده */

.recent-section {
    margin: 40px 0;
}

.recent-section h2 {
    margin-bottom: 25px;
    padding-right: 15px;
    border-right: 4px solid #fd7e14;
    font-size: 1.5rem;
    color: #2c3e50;
}

.badge-recent {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
    color: white;
}

.recent-plugin {
    border: 1px solid #fd7e14;
}

.recent-plugin .plugin-header {
    border-bottom-color: #fd7e14;
}