/* تنظیمات پایه و فونت‌های مدرن */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Vazirmatn', Tahoma, sans-serif;
    background: #f8fafc; /* رنگ پس‌زمینه کمی روشن‌تر و مدرن‌تر */
    color: #334155;
    direction: rtl;
    line-height: 1.6;
}

/* لینک‌ها با افکت هاور جذاب */
a {
    text-decoration: none;
    color: #2563eb; /* آبی مدرن */
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* کانتینر اصلی */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* هدر سایت */
.site-header {
    background: linear-gradient(135deg, #1e293b, #0f172a); /* گرادینت تیره و شیک */
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* برای موبایل */
    gap: 15px;
}

.logo a {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar a {
    color: #e2e8f0;
    margin-right: 20px;
    font-weight: 500;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* محتوای اصلی */
.main-content {
    padding: 40px 0;
}

/* گرید اخبار */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px; /* گوشه‌های گردتر */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.03);
}

.meta {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 10px;
    display: block;
}

/* فرم جستجو */
.search-form {
    margin: 30px 0;
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    outline: none;
    font-size: 16px;
    background: #f1f5f9;
    transition: background 0.3s;
}

.search-form input:focus {
    background: #e2e8f0;
}

.search-form button {
    padding: 12px 25px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.search-form button:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* تصویر جزئیات */
.detail-image {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* فوتر */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
}

/* گرید دسته‌بندی */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    display: block;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.category-card:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}
