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

/* Bro Rogue — Menu: Gym Interaction CSS */

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

/* Contains: Gym interaction screen styles (membership, facilities, needs panel) */

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

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

/* Membership purchase area */
.gymMembershipArea {
    background-color: rgb(0 0 0 / 75%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.gymMembershipEmoji {
    font-size: 4rem;
    filter: drop-shadow(2px 4px 8px rgb(0 0 0 / 40%));
    animation: gymEmojiPulse 2s ease-in-out infinite;
}

@keyframes gymEmojiPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.gymMembershipInfo {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.5;
}

.gymMembershipPrice {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
    text-shadow: 0 0 10px rgb(81 207 102 / 40%);
}

.gymMembershipButtons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.gymBuyBtn {
    background: linear-gradient(135deg, var(--success-color), #3dbb50);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 8px rgb(0 0 0 / 25%),
        inset 0 1px 0 rgb(255 255 255 / 15%);
}

.gymBuyBtn:hover {
    background: linear-gradient(135deg, #40c057, #2f9e44);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgb(81 207 102 / 40%),
        inset 0 1px 0 rgb(255 255 255 / 20%);
}

.gymBuyBtn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 1px 4px rgb(0 0 0 / 30%),
        inset 0 3px 6px rgb(0 0 0 / 30%);
    transition: all 0.05s ease;
}

.gymBuyBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gymLeaveBtn {
    background: linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 6%));
    color: #ccc;
    border: 1px solid rgb(255 255 255 / 20%);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 1px 4px rgb(0 0 0 / 15%),
        inset 0 1px 0 rgb(255 255 255 / 8%);
}

.gymLeaveBtn:hover {
    background: linear-gradient(135deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 12%));
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 3px 10px rgb(0 0 0 / 25%),
        inset 0 1px 0 rgb(255 255 255 / 15%);
}

.gymLeaveBtn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 20%),
        inset 0 3px 6px rgb(0 0 0 / 25%);
    transition: all 0.05s ease;
}

/* Facilities area */
.gymFacilitiesArea {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Needs panel with portrait + animated bars */
.gymNeedsPanel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgb(0 0 0 / 55%);
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 10%);
    width: 100%;
    max-width: 700px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Character portrait */
.gymNeedsChar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-right: 1px solid rgb(255 255 255 / 10%);
    flex-shrink: 0;
}

.gymNeedsCharImg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgb(255 255 255 / 5%);
}

.gymNeedsCharInfo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gymNeedsCharName {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.gymNeedsCharLevel {
    font-size: 0.85rem;
    color: #aaa;
}

.gymNeedsCharMood {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Needs bars */
.gymNeedsBars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    min-width: 250px;
}

.gymNeedBarRow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gymNeedBarIcon {
    font-size: 0.9rem;
    width: 1.3rem;
    text-align: center;
    flex-shrink: 0;
}

.gymNeedBarLabel {
    font-size: 0.75rem;
    color: #ccc;
    min-width: 3.2rem;
    flex-shrink: 0;
    font-weight: bold;
}

.gymNeedBarTrack {
    flex: 1;
    height: 10px;
    background: rgb(255 255 255 / 10%);
    border-radius: 5px;
    overflow: hidden;
    min-width: 0;
}

.gymNeedBar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.gymNeedBarHunger {
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.gymNeedBarHygiene {
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}

.gymNeedBarEnergy {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.gymNeedBar.low {
    box-shadow: 0 0 8px rgb(255 0 0 / 50%);
    animation: gymNeedBarLowPulse 1s ease-in-out infinite;
}

@keyframes gymNeedBarLowPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Heal flash - green pulse when needs increase */
.gymNeedBar.heal-flash {
    animation: gymNeedBarHealFlash 0.6s ease-out;
}

@keyframes gymNeedBarHealFlash {
    0% {
        filter: brightness(2.5);
    }

    40% {
        filter: brightness(1.5);
    }

    100% {
        filter: brightness(1);
    }
}

.gymNeedBarValue {
    font-size: 0.8rem;
    color: #fff;
    min-width: 1.8rem;
    text-align: right;
    font-weight: bold;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.gymNeedBarValue.flash-green {
    animation: gymNeedValuePop 0.5s ease-out;
}

@keyframes gymNeedValuePop {
    0% {
        color: var(--success-color);
        transform: scale(1.3);
    }

    50% {
        color: var(--success-color);
        transform: scale(1.1);
    }

    100% {
        color: #fff;
        transform: scale(1);
    }
}

/* Hide old badges summary */
.gymNeedsSummary {
    display: none;
}

.gymFacilitiesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    width: 100%;
}

.gymFacilityCard {
    background: rgb(0 0 0 / 65%);
    border: 2px solid rgb(255 255 255 / 15%);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.gymFacilityCard:hover:not(.used) {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(255 107 107 / 25%);
    background: rgb(0 0 0 / 80%);
}

.gymFacilityCard.used {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgb(255 255 255 / 6%);
}

.gymFacilityCard.used .gymFacilityUsed {
    display: block;
}

.gymFacilityEmoji {
    font-size: 2.5rem;
    line-height: 1;
}

.gymFacilityName {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.gymFacilityDesc {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.3;
}

.gymFacilityCost {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--success-color);
}

.gymFacilityUsed {
    display: none;
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: bold;
}

.gymFacilitiesBottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.gymFacilitiesBottom .moneyDisplay {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--success-color);
}

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

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

/* Activities area */
.beachActivitiesArea {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Needs panel */
.beachNeedsPanel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgb(0 0 0 / 55%);
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 10%);
    width: 100%;
    max-width: 800px;
    flex-wrap: wrap;
    justify-content: center;
}

.beachNeedsChar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-right: 1px solid rgb(255 255 255 / 10%);
    flex-shrink: 0;
}

.beachNeedsCharImg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgb(255 255 255 / 5%);
}

.beachNeedsCharInfo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.beachNeedsCharName {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.beachNeedsCharLevel {
    font-size: 0.85rem;
    color: #aaa;
}

.beachNeedsCharMood {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.beachNeedsBars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    min-width: 280px;
}

.beachNeedBarRow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.beachNeedBarIcon {
    font-size: 0.9rem;
    width: 1.3rem;
    text-align: center;
    flex-shrink: 0;
}

.beachNeedBarLabel {
    font-size: 0.75rem;
    color: #ccc;
    min-width: 3.2rem;
    flex-shrink: 0;
    font-weight: bold;
}

.beachNeedBarTrack {
    flex: 1;
    height: 10px;
    background: rgb(255 255 255 / 10%);
    border-radius: 5px;
    overflow: hidden;
    min-width: 0;
}

.beachNeedBar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.beachNeedBarHunger {
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.beachNeedBarFun {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.beachNeedBarSocial {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.beachNeedBarHygiene {
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}

.beachNeedBarEnergy {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.beachNeedBar.low {
    box-shadow: 0 0 8px rgb(255 0 0 / 50%);
    animation: beachNeedBarLowPulse 1s ease-in-out infinite;
}

@keyframes beachNeedBarLowPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.beachNeedBar.heal-flash {
    animation: beachNeedBarHealFlash 0.6s ease-out;
}

@keyframes beachNeedBarHealFlash {
    0% {
        filter: brightness(2.5);
    }
    40% {
        filter: brightness(1.5);
    }
    100% {
        filter: brightness(1);
    }
}

.beachNeedBarValue {
    font-size: 0.8rem;
    color: #fff;
    min-width: 1.8rem;
    text-align: right;
    font-weight: bold;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.beachNeedBarValue.flash-green {
    animation: beachNeedValuePop 0.5s ease-out;
}

@keyframes beachNeedValuePop {
    0% {
        color: var(--success-color);
        transform: scale(1.3);
    }
    50% {
        color: var(--success-color);
        transform: scale(1.1);
    }
    100% {
        color: #fff;
        transform: scale(1);
    }
}

/* Activity cards grid */
.beachActivitiesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    width: 100%;
}

.beachActivityCard {
    background: rgb(0 0 0 / 60%);
    border: 2px solid rgb(255 255 255 / 12%);
    border-radius: 10px;
    padding: 1rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
}

.beachActivityCard:hover:not(.used) {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(251 191 36 / 25%);
    background: rgb(0 0 0 / 78%);
}

.beachActivityCard.used {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgb(255 255 255 / 6%);
}

.beachActivityCard.used .beachActivityUsed {
    display: block;
}

.beachActivityEmoji {
    font-size: 2.2rem;
    line-height: 1;
}

.beachActivityName {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.beachActivityDesc {
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.3;
}

.beachActivityCost {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.beachActivityUsed {
    display: none;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.beachActivitiesBottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.beachActivitiesBottom .moneyDisplay {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--success-color);
}

.beachLeaveBtn {
    background: linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 6%));
    color: #ccc;
    border: 1px solid rgb(255 255 255 / 20%);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 1px 4px rgb(0 0 0 / 15%),
        inset 0 1px 0 rgb(255 255 255 / 8%);
}

.beachLeaveBtn:hover {
    background: linear-gradient(135deg, rgb(251 191 36 / 30%), rgb(251 191 36 / 15%));
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}
