/* ============================================
   cards.css — جميع البطاقات والشبكات
   ============================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 50px 10%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* ── بطاقة عادية ── */
.card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); }

/* ── بطاقة مميزة ── */
.premium-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.premium-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }

.card-icon {
    width: 60px; height: 60px;
    background: #f0f7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 16px;
    margin-bottom: 25px;
}

/* ── بطاقة خدمة ── */
.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: 0.3s;
    text-align: center;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

.service-icon-wrapper {
    width: 60px; height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.service-icon-wrapper i { font-size: 1.5rem; color: var(--primary); }

/* ── بطاقة مدونة ── */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.blog-img img, .card-img-top { width: 100%; height: 200px; object-fit: cover; }
.blog-info { padding: 20px; }
.blog-tag { background: #ebf5ff; color: var(--primary); padding: 4px 12px; border-radius: 5px; font-size: 0.8rem; font-weight: bold; }
.blog-info h3 { margin: 15px 0 10px; font-size: 1.3rem; }
.blog-info p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.blog-footer  { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f3f4f6; padding-top: 15px; font-size: 0.85rem; color: var(--text-muted); }
.read-more    { color: var(--primary); text-decoration: none; font-weight: bold; }
.bg-primary-soft { background-color: rgba(37,99,235,0.1); }

/* ── بطاقات الإحصاء (Dashboard) ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card i      { font-size: 2rem; color: var(--primary); }
.stat-data h3     { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-main); }
.stat-data p      { color: #64748b; margin: 0; }

.icon-box { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; }
.blue   { background: #3b82f6; }
.green  { background: #10b981; }
.orange { background: #f59e0b; }

/* ── بطاقات الإجراءات ── */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.action-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.2s;
    border: 1px solid #e2e8f0;
}
.action-item:hover { border-color: var(--primary); transform: translateY(-5px); }
.action-item i { display: block; font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }

/* ── نتائج وأدوات ── */
.result-display { margin-top: 15px; padding: 10px; background: #f0f7ff; border-radius: 5px; border-right: 4px solid var(--primary); }
.result-box     { background: #f0f7ff; padding: 20px; border-radius: var(--radius-md); border-right: 5px solid var(--primary); }
.result-box p      { margin-bottom: 8px; font-size: 1.1rem; color: var(--text-main); }
.result-box strong { color: var(--primary); font-size: 1.3rem; }

.tool-card { transition: transform 0.3s; border: none; }
.tool-card:hover { transform: translateY(-5px); }

.category-tag { font-size: 0.75rem; font-weight: bold; text-transform: uppercase; color: #64748b; background: #f1f5f9; padding: 4px 12px; border-radius: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .grid, .cards-grid { padding: 20px 5%; }
    .blog-grid          { grid-template-columns: 1fr; }
}