/* =========================================
   استایل‌های آرشیو جلسات (نسخه جدید، فشرده و 4 ستونه)
========================================= */

/* کانتینر اصلی آرشیو */
.meet-archive-container {
    max-width: 1300px !important; /* عرض بیشتر برای جا شدن 4 کارت */
    margin: 0 auto;
    padding: 20px;
}

/* استایل‌های هدر آرشیو (عنوان و فاصله‌ها) */
.meet-archive-container .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.meet-archive-container .page-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3338;
    margin: 0;
}

/* گرید بندی کارت ها - قطعا 4 ستونه */
.meet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important; /* فاصله جمع‌وجورتر */
    margin-top: 30px;
}

/* تنظیمات ریسپانسیو گرید */
@media (max-width: 1200px) {
    .meet-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 992px) {
    .meet-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .meet-grid { grid-template-columns: 1fr !important; }
}

/* استایل بدنه کارت */
.meet-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* بخش تصویر */
.meet-card-image {
    position: relative;
    width: 100%;
    height: 170px !important; /* ارتفاع جمع‌وجور */
    overflow: hidden;
}

.meet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meet-card:hover .meet-card-image img {
    transform: scale(1.05);
}

/* بخش محتوای پایین کارت */
.meet-card-content {
    padding: 15px; /* پدینگ کمتر برای فشرده شدن */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* دکمه عنوان جلسه */
.meet-title-btn {
    display: block;
    text-align: center;
    background-color: #0f62fe;
    color: #ffffff !important;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* فونت کمی کوچکتر برای 4 ستون */
    line-height: 1.5;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.meet-title-btn:hover {
    background-color: #0043ce;
    color: #ffffff !important;
}

/* =========================================
   استایل‌های صفحه‌بندی (Pagination)
========================================= */
.meet-archive-container .pagination {
    margin-top: 50px;
    text-align: center;
    width: 100%;
}

.meet-archive-container .nav-links {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.meet-archive-container .nav-links .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #f5f5f5;
    color: #444;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.meet-archive-container .nav-links .page-numbers:hover {
    background: #e0e0e0;
    color: #000;
}

.meet-archive-container .nav-links .page-numbers.current {
    background: #0f62fe;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 98, 254, 0.3);
}

.meet-archive-container .nav-links .next,
.meet-archive-container .nav-links .prev {
    background: #ffffff;
    border: 1px solid #ddd;
}

/* =========================================
   استایل‌های صفحه تکی (Single Page)
========================================= */
.single-meet-container { max-width: 900px; margin: 20px auto; padding: 20px; }
.meet-header { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.meet-thumbnail { flex-shrink: 0; width: 300px; }
.meet-thumbnail img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; }
.meet-details { flex-grow: 1; }
.meet-details h1 { margin-top: 0; }
.meet-meta { list-style: none; padding: 0; margin: 20px 0; }
.meet-meta li { padding: 8px 0; border-bottom: 1px solid #eee; }
.meet-meta strong { margin-left: 10px; }
.meet-join-buttons { margin-top: 20px; }
.meet-join-buttons a { display: inline-block; padding: 10px 20px; margin-left: 10px; color: #fff; text-decoration: none; border-radius: 5px; }
.btn-moderator { background-color: #007bff; }
.btn-attendee { background-color: #28a745; }
.login-prompt { background-color: #f8d7da; color: #721c24; padding: 15px; border: 1px solid #f5c6cb; border-radius: 5px; }
.meet-content { clear: both; }