/* Open Plays Page — Player (2025 Redesign) */

/* ── Page Section ─────────────────────────────── */
.op-section {
    background: #f8f7ff;
    min-height: 80vh;
}

/* ── Card Grid ───────────────────────────────── */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ── Job Board Card ──────────────────────────── */
.op-job-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 0.8rem;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.07);
    border: 1.5px solid #e0e7ff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: inherit;
}

.op-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.13);
    border-color: #a5b4fc;
    text-decoration: none;
    color: inherit;
}

/* ── Colored Top Section ─────────────────────── */
.op-job-top {
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    /* Override any inline background-color from PHP */
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e1b4b 100%) !important;
}

/* Ambient glow */
.op-job-top::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.op-job-top > * { position: relative; z-index: 1; }

/* ── Header Row ──────────────────────────────── */
.job-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-date-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #e0e7ff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(165, 180, 252, 0.4);
    backdrop-filter: blur(4px);
}

.job-bookmark {
    background: rgba(255, 255, 255, 0.15);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e7ff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.job-bookmark:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Main Details ────────────────────────────── */
.job-main-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-title-group {
    flex: 1;
    padding-right: 1rem;
}

.job-company {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 0.3rem;
}

.job-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* ── Venue Logo Circle ───────────────────────── */
.job-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.job-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Info Tags Row ───────────────────────────── */
.job-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tag {
    border: 1px solid rgba(165, 180, 252, 0.4);
    color: #c4b5fd;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
}

/* ── White Bottom Section ────────────────────── */
.op-job-bottom {
    padding: 0.8rem 0.6rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.job-price-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.job-price-large {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1e1b4b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}

.job-location-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Details / Join Button ───────────────────── */
.job-btn {
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    cursor: pointer;
}

.job-btn:hover {
    background: linear-gradient(135deg, #312e81, #6366f1);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.job-btn.waitlist {
    background: #fff;
    color: #4f46e5;
    border: 1.5px solid #e0e7ff;
    box-shadow: none;
}

.job-btn.waitlist:hover {
    background: #f0f0ff;
    border-color: #a5b4fc;
    transform: none;
}

/* ── Empty State ─────────────────────────────── */
.empty-state {
    padding: 5rem 0;
    text-align: center;
    background: #fff;
    border-radius: 22px;
    border: 2px dashed #e0e7ff;
    grid-column: 1 / -1;
    color: #6b7280;
}

/* ── Animations ──────────────────────────────── */
.pp-fade-in {
    animation: ppFadeUp 0.4s ease-out both;
}

.pp-fade-in-slow {
    animation: ppFadeUp 0.6s ease-out both;
}

@keyframes ppFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 767.98px) {
    .pp-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    .job-title { font-size: 1.25rem; }
    .empty-state { padding: 3rem 1rem; }
}

@media (max-width: 520px) {
    .pp-grid { grid-template-columns: 1fr; gap: 0.85rem; }
}

@media (max-width: 400px) {
    .op-job-top { padding: 1rem; gap: 0.85rem; }
    .job-title { font-size: 1.1rem; }
    .op-job-bottom { flex-direction: column; align-items: flex-start; }
    .job-btn { width: 100%; text-align: center; padding: 0.6rem 1rem; }
    .empty-state { padding: 2.5rem 0.75rem; }
}
