﻿/* wwwroot/css/exam-site.css */

.exam-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.exam-grid__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.exam-grid__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .exam-grid__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .exam-grid__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.exam-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.exam-card--closed {
    opacity: 0.5;
}

.exam-card:not(.exam-card--closed):hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.exam-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #d1fae5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.exam-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    padding-left: 5rem;
}

.exam-card__desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    min-height: 48px;
}

.exam-card__info {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
    font-size: 0.875rem;
    color: #4b5563;
}

    .exam-card__info li {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

        .exam-card__info li:last-child {
            margin-bottom: 0;
        }

.exam-card__info-label {
    font-weight: 500;
    color: #374151;
}

.exam-card__footer {
    margin-top: auto;
}

.exam-btn {
    width: 100%;
    text-align: center;
    padding: 0.65rem 0;
    border-radius: 0.75rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.exam-btn-primary {
    background: #2563eb;
    color: #fff;
    transition: background-color 0.2s ease;
}

    .exam-btn-primary:hover {
        background: #1d4ed8;
    }

.exam-btn-disabled {
    background: #d1d5db;
    color: #4b5563;
    cursor: not-allowed;
}

.exam-btn-registered {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

    .exam-btn-registered svg {
        width: 16px;
        height: 16px;
    }

.exam-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.exam-page-link {
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

    .exam-page-link:hover {
        background: #f9fafb;
    }

.exam-page-link--active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.exam-page-link--disabled {
    background: #f3f4f6;
    color: #d1d5db;
    pointer-events: none;
}
