/* ===========================
   Games Page Styles
=========================== */

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    direction: rtl;
}

/* عنوان بخش */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #38bdf8;
    border-right: 4px solid #38bdf8;
    padding-right: 12px;
    margin-bottom: 30px;
    text-align: right;
    direction: rtl;
}

/* فیلترها */
.games-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.games-filters .form-select,
.games-filters .form-control {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
}

/* Hover روی فیلترها */
.games-filters .form-select:hover,
.games-filters .form-control:hover {
    background-color: #334155 !important;
    border-color: #38bdf8 !important;
    cursor: pointer;
}

/* گرید بازی‌ها */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* کارت بازی بزرگ‌تر */
.game-card {
    position: relative;
    height: 650px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1e293b;
    border: 1px solid #334155;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card img {
    width: 100%;
    height: 80%; /* فقط 80 درصد کارت برای عکس */
    object-fit: cover;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* اطلاعات بازی زیر عکس */
.game-info {
    background-color: #0f172a;
    padding: 10px;
    text-align: right;
    height: 20%; /* بخش پایین کارت برای توضیحات */
}

.game-info h5 {
    font-size: 16px;
    font-weight: bold;
    color: #38bdf8;
    margin: 0;
}

.game-info p {
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
}

/* Hover دکمه */
.game-hover {
    position: absolute;
    bottom: 40px; /* بالاتر از بخش info */
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-hover {
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #38bdf8;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #e2e8f0;
}

/* مرتب‌سازی */
.sort-select {
    min-width: 180px;
}

/* صفحه‌بندی */
.pagination .page-link {
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.pagination .page-item.active .page-link {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}
