/**
 * preview-recruit.css
 * Style bổ sung cho page template "Recruits Preview".
 * Override một số thứ từ list-recruit.css và thêm các element đặc trưng:
 *   - .yrp-page         : wrapper chính
 *   - .yrp-hero         : hero section (tái dùng style yrl-hero)
 *   - .yrp-status-bar   : thanh hiển thị số kết quả + notice lock
 *   - .yrp-grid         : grid cards
 *   - .yrp-card__img-lock: lock overlay trên thumbnail
 *   - .yrp-card__locked-notice: thông báo "cần đăng ký"
 *   - .yrp-pagination   : phân trang
 *
 * BEM prefix: "yrp-" (Yola Recruit Preview)
 *
 * @package YolaTheme\RecruitSystem
 */

/* =========================================================
   PAGE WRAPPER
   ========================================================= */
.yrp-page {
    min-height: 100vh;
    background-color: var(--yrp-bg, #f8fafc);
}

/* =========================================================
   HERO (kế thừa style từ .yrl-hero – chỉ đổi prefix)
   ========================================================= */
.yrp-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #1d4ed8 100%);
    color: #fff;
    padding: 56px 20px 52px;
    position: relative;
    overflow: hidden;
}

.yrp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(96, 165, 250, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.yrp-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--yrp-bg, #f8fafc);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.yrp-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.yrp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #93C5FD;
    margin: 0 0 12px;
    font-family: var(--yrl-font, 'DM Sans', sans-serif);
}

.yrp-hero__eyebrow .material-symbols-outlined {
    font-size: 16px !important;
}

.yrp-hero__title {
    font-family: var(--yrl-font, 'DM Sans', sans-serif);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 12px;
}

.yrp-hero__title-accent {
    color: #60A5FA;
}

.yrp-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

.yrp-btn-post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff;
    color: var(--yrl-primary, #1E40AF);
    border-radius: var(--yrl-radius-sm, 8px);
    font-family: var(--yrl-font, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .02em;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    white-space: nowrap;
}

.yrp-btn-post:hover {
    background: var(--yrl-primary-light, #EFF6FF);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    text-decoration: none;
    color: var(--yrl-primary-hover, #1d3891);
}

.yrp-btn-post .material-symbols-outlined {
    font-size: 18px !important;
}

/* =========================================================
   MAIN + CONTAINER
   ========================================================= */
.yrp-main {
    padding: 36px 0 60px;
}

.yrp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =========================================================
   GRID
   ========================================================= */
.yrp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width: 640px) {
    .yrp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .yrp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   CARD PREVIEW — override / bổ sung trên .yrl-card
   ========================================================= */

/*
 * Thumbnail container: dùng aspect-ratio 16/9 giống .yrl-card__img-link
 * nhưng là div (không phải link) vì preview không dẫn đến detail page.
 * position: relative để chứa lock overlay.
 */
.yrp-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
}

/*
 * Gradient overlay phía dưới ảnh — giống hệt ::after của .yrl-card__img-link
 */
.yrp-card__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
    transition: opacity .3s;
    z-index: 1;
}

.yrp-card:hover .yrp-card__img-wrap::after {
    opacity: 0;
}

/*
 * Ảnh bên trong: giống .yrl-card__img — full width/height, object-fit cover,
 * scale lên nhẹ khi hover card.
 */
.yrp-card__img-wrap .yrl-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.yrp-card:hover .yrp-card__img-wrap .yrl-card__img {
    transform: scale(1.06);
}

/* Lock overlay nằm trên gradient (z-index cao hơn) */
.yrp-card__img-lock {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: opacity .2s ease;
    z-index: 2;
}

.yrp-card__img-lock .material-symbols-outlined {
    font-size: 36px;
    color: #fff;
    opacity: .85;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Khi hover card thì lock overlay mờ đi một chút */
.yrp-card:hover .yrp-card__img-lock {
    opacity: .7;
}

/* Title: không có link nên bỏ underline */
.yrp-card .yrl-card__title {
    color: #1e293b;
    cursor: default;
}

/* Footer của preview card */
.yrp-card__footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

/* Locked notice thay thế cho các nút action */
.yrp-card__locked-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    padding: 5px 12px;
    width: 100%;
    justify-content: center;
}

.yrp-card__locked-notice .material-symbols-outlined {
    font-size: 15px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.yrp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: #64748b;
}

.yrp-empty__icon {
    font-size: 56px;
    color: #cbd5e1;
    display: block;
    margin: 0 auto 16px;
}

.yrp-empty__title {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px;
}

.yrp-empty__sub {
    font-size: 15px;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .yrp-hero {
        padding: 40px 20px 44px;
    }

    .yrp-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .yrp-grid {
        grid-template-columns: 1fr;
    }
}