/* Source: screens-menu-stage-learning.css — split from consolidated CSS */

/* Bro Rogue — Menu: Stage Select & Learning CSS */

/* Split from screens-core-menu.css */

/* Contains: Stage Select + School + Sex Shop screen styles */

/* ── STAGE SELECT SCREEN ─────────────────────────────────── */
.stageSelectContainer {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stageSelectContainer h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgb(0 0 0 / 80%);
    letter-spacing: 2px;
    margin-bottom: 0;
}

/* Subtitle line beneath heading */
.stageSelectContainer .stageSubtitle {
    text-align: center;
    color: rgb(255 255 255 / 55%);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-top: -0.5rem;
    margin-bottom: 0.25rem;
}

/* Bottom bar: money display + back button */
.stageSelectBottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    gap: 1rem;
}

.stageSelectBottom .moneyDisplay {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success-color);
    text-shadow: 0 0 8px rgb(81 207 102 / 25%);
}

.stageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 20%) transparent;
}

.stageGrid::-webkit-scrollbar {
    width: 6px;
}

.stageGrid::-webkit-scrollbar-track {
    background: transparent;
}

.stageGrid::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 20%);
    border-radius: 3px;
}

.stageGrid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Card entrance animation */
@keyframes stageCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover border glow pulse */
@keyframes stageCardGlow {
    0%,
    100% {
        opacity: 1;
        box-shadow:
            0 8px 25px rgb(255 107 107 / 35%),
            0 0 15px rgb(255 107 107 / 15%);
    }

    50% {
        opacity: 1;
        box-shadow:
            0 10px 35px rgb(255 107 107 / 50%),
            0 0 25px rgb(255 107 107 / 25%);
    }
}

/* Stage card - solid color gradient with emoji, max-width to prevent oversized cards */
.stageCard {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    min-height: 180px;
    max-width: 320px;
    justify-self: center;
    width: 100%;
    border: 2px solid rgb(255 255 255 / 15%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgb(0 0 0 / 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: stageCardEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--card-delay, 0s);
    /* Ripple pseudo-element */
}

.stageCard::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
        rgb(255 255 255 / 25%) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stageCard:active::after {
    opacity: 1;
    transition: opacity 0s;
}

.stageCard:hover {
    border-color: var(--primary-color);
    transform: scale(1.04);
    animation: stageCardGlow 1.8s ease-in-out infinite;
}

.stageCard:active {
    transform: scale(0.96);
    filter: brightness(0.85);
    transition: all 0.05s ease;
}

/* Large emoji centered on card */
.stageEmoji {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 4px 6px rgb(0 0 0 / 30%));
    user-select: none;
    transition: transform 0.3s ease;
}

.stageCard:hover .stageEmoji {
    transform: scale(1.1) rotate(-3deg);
}

/* Stage name label */
.stageCardLabel {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 2px 6px rgb(0 0 0 / 50%);
    letter-spacing: 1px;
    text-align: center;
    padding: 0 0.5rem;
}

/* ── SCHOOL INTERACTION SCREEN ───────────────────────────── */
.schoolInteractionContainer {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 2rem;
}

.schoolInteractionContainer h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 80%);
}

.spellLearningArea {
    background-color: rgb(0 0 0 / 70%);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.spellLearningArea h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.spellGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.spellCard {
    background-color: rgb(255 255 255 / 10%);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.spellCard:hover {
    background-color: rgb(255 255 255 / 20%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.spellCard.learned {
    background-color: rgb(81 207 102 / 20%);
    border-color: var(--success-color);
}

.spellName {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.spellDescription {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.spellProgress {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.spellProgress.completed {
    color: var(--success-color);
    font-weight: bold;
}

.schoolActions {
    text-align: center;
}

.schoolActions .btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.schoolActions .btn:hover {
    background-color: #ff5252;
}

.noSpells {
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    padding: 2rem;
    background-color: rgb(255 255 255 / 5%);
    border-radius: 8px;
    border: 1px dashed #666;
}

/* ── SEX SHOP INTERACTION SCREEN ─────────────────────────── */
.sexShopInteractionContainer {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 2rem;
}

.sexShopInteractionContainer h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 80%);
}

.sexMoveLearningArea {
    background-color: rgb(0 0 0 / 70%);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.sexMoveLearningArea h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.sexMoveGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sexMoveCard {
    background-color: rgb(255 255 255 / 10%);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.sexMoveCard:hover {
    background-color: rgb(255 255 255 / 20%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.sexMoveCard.learned {
    background-color: rgb(81 207 102 / 20%);
    border-color: var(--success-color);
}

.sexMoveName {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.sexMoveDescription {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.sexMoveProgress {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.sexMoveProgress.completed {
    color: var(--success-color);
    font-weight: bold;
}

.sexShopActions {
    text-align: center;
}

.sexShopActions .btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sexShopActions .btn:hover {
    background-color: #ff5252;
}
