/* Class Advancement - Premium UI */

.hero-promotion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: promotion-fade-in 0.3s ease-out;
}

@keyframes promotion-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-promotion-container {
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: var(--surface-glass);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
}

.hero-promotion-header {
    height: 80px;
    background: rgba(20, 20, 25, 0.95);
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the title */
    padding: 0 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.hero-promotion-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-gold);
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 2px 2px 0 #000;
    margin: 0;
    letter-spacing: 2px;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

/* Return button inside promotion header */
.hero-promotion-header .modal-back-button {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: flex !important;
}

.hero-promotion-header .modal-back-button:hover {
    transform: translateY(-50%) rotate(-90deg) scale(1.1) !important;
}

.hero-promotion-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

.hero-promotion-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Custom Scrollbar */
.hero-promotion-body::-webkit-scrollbar {
    width: 10px;
}

.hero-promotion-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.hero-promotion-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--neon-gold), #b8860b);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.hero-promotion-body::-webkit-scrollbar-thumb:hover {
    background: var(--neon-gold);
    box-shadow: 0 0 10px var(--neon-gold);
}

/* Promo Card Styling */
.promo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.promo-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.promo-card.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.promo-card-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #fff;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-card-role {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.promo-requirements {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-item {
    display: flex;
    justify-content: space-between;
}

.req-met {
    color: var(--success);
}

.req-not-met {
    color: var(--danger);
}

/* Confirmation Overlay */
.promo-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: confirm-fade-in 0.2s ease-out;
}

@keyframes confirm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.promo-confirm-box {
    background: #1a1a1f;
    padding: 30px;
    border: 2px solid var(--neon-gold);
    border-radius: 12px;
    width: 380px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);
}