﻿/* ============================================================
   exams-list.css - استایل‌های اختصاصی صفحه آزمون‌ها و چالش‌ها
   ============================================================ */

/* ========== بخش هیرو و قوانین ========== */
.hero-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.rules-box {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.4);
    padding: 20px;
    border-radius: 15px;
    max-width: 800px;
    margin: 30px auto 0;
    text-align: right;
}

    .rules-box h3 {
        color: #ffd54f;
        margin-top: 0;
        font-size: 20px;
        text-align: center;
    }

    .rules-box ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .rules-box li {
        margin-bottom: 10px;
        font-size: 15px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

        .rules-box li strong {
            white-space: nowrap;
        }

        .rules-box li i {
            color: #69f0ae;
            font-style: normal;
            margin-top: 3px;
        }

/* ========== کارت‌های هشدار ========== */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    border-right: 4px solid #ccc;
    text-align: right;
}

    .alert-card.alert-warning {
        border-right-color: #ff9800;
        background: #fffbf2;
    }

        .alert-card.alert-warning .alert-icon {
            color: #ff9800;
        }

    .alert-card.alert-info {
        border-right-color: #2196f3;
        background: #f0f8ff;
    }

        .alert-card.alert-info .alert-icon {
            color: #2196f3;
        }

.alert-icon {
    font-size: 24px;
    margin-top: 2px;
}

.alert-content {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

    .alert-content strong {
        display: block;
        font-size: 15px;
        color: #222;
        margin-bottom: 5px;
    }

/* ========== تب‌های فیلتر آزمون ========== */
.filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto 40px;
    max-width: 900px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #555;
    border: 2px solid #eee;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

    .filter-tab:hover {
        background: #f8f9fa;
        border-color: #ddd;
        color: #333;
    }

    .filter-tab.active {
        background: #C2185B;
        color: #fff;
        border-color: #C2185B;
        box-shadow: 0 4px 10px rgba(194, 24, 91, 0.3);
        pointer-events: none;
    }

/* ========== کارت‌های آزمون ========== */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.exam-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .exam-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border-color: var(--primary);
    }

.exam-header {
    background: #fafafa;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px dashed #eee;
}

.exam-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
}

.exam-reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ffca28, #ffb300);
    color: #3e2723;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
    margin-top: 5px;
}

.exam-body {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    background: #fafafa;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* ========== بخش منابع آزمون ========== */
.sources-box {
    background: #fffde7;
    border: 1px solid #fff59d;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

.sources-title {
    font-weight: bold;
    color: #f57f17;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.source-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1976d2;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    border: 1px solid #bbdefb;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

    .source-btn:hover {
        background: #1976d2;
        color: white;
        transform: scale(1.02);
    }

.exam-footer {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    text-align: center;
}

/* ========== دکمه‌ها ========== */
.btn-guest {
    background: linear-gradient(45deg, #757575, #424242);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

    .btn-guest:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        color: white;
    }

.btn-user {
    background: linear-gradient(45deg, #4caf50, #388e3c);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

    .btn-user:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
        color: white;
    }

.btn-public-review {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

    .btn-public-review:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
        color: white;
    }

/* ========== استایل‌های اختصاصی صفحه‌بندی ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 20px 0;
    width: 100%;
}

    .pagination-container .page-item {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-width: 38px;
        height: 38px;
        border-radius: 8px;
        background: #fff;
        color: #555;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        border: 1px solid #eaeaea;
    }

        .pagination-container .page-item:hover {
            background: #f0f0f0;
            color: #C2185B;
        }

        .pagination-container .page-item.active {
            background: #C2185B;
            color: #fff;
            border-color: #C2185B;
            pointer-events: none;
            box-shadow: 0 4px 10px rgba(194, 24, 91, 0.3);
        }

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .exam-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
        justify-content: center;
    }

    .alert-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
