/* Source: screens-menu-golf.css — split from screens-menu-gym.css (2026-08) */

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

/* Split from screens-menu-gym.css — golf styles extracted so the gym file stays
 * under the 10K-token budget gate (see Scripts/check-token-budget.js). */

.golfInteractionContainer {
    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;
    overflow-y: auto;
    position: relative;
}

.golfInteractionContainer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        to top,
        rgb(0 0 0 / 80%) 0%,
        rgb(0 0 0 / 40%) 40%,
        rgb(0 0 0 / 20%) 70%,
        rgb(0 0 0 / 40%) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.golfInteractionContainer > * {
    position: relative;
    z-index: 1;
}

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

/* Membership purchase area */
.golfMembershipArea {
    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(--success-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

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

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

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

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

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

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

.golfBuyBtn {
    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%);
}

.golfBuyBtn: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%);
}

.golfBuyBtn: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;
}

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

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

/* Needs panel */
.golfNeedsPanel {
    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;
}

.golfNeedsChar {
    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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    50% {
        opacity: 0.6;
    }
}

.golfNeedBar.heal-flash {
    animation: golfNeedBarHealFlash 0.6s ease-out;
}

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

    40% {
        filter: brightness(1.5);
    }

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

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

.golfNeedBarValue.flash-green {
    animation: golfNeedValuePop 0.5s ease-out;
}

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

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

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

/* Golf skill display */
.golfSkillDisplay {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgb(0 0 0 / 55%);
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 10%);
    width: 100%;
    max-width: 800px;
}

.golfSkillIcon {
    font-size: 2rem;
    line-height: 1;
}

.golfSkillInfo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

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

.golfSkillBarTrack {
    height: 8px;
    background: rgb(255 255 255 / 10%);
    border-radius: 4px;
    overflow: hidden;
}

.golfSkillBar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #388e3c);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.golfSkillXP {
    font-size: 0.75rem;
    color: #999;
}

/* Scorecard */
.golfScorecard {
    width: 100%;
    max-width: 800px;
    background: rgb(0 0 0 / 55%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

.golfScorecardHeader {
    font-size: 1rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.golfScorecardBody {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
}

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

.golfActivityCard {
    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;
}

.golfActivityCard:hover:not(.used) {
    border-color: var(--success-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(76 175 80 / 25%);
    background: rgb(0 0 0 / 78%);
}

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

.golfActivityCard.used .golfActivityUsed {
    display: block;
}

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

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

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

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

.golfActivityScore {
    font-size: 0.75rem;
    color: var(--secondary-color);
    min-height: 1rem;
}

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

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

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

.golfLeaveBtn {
    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%);
}

.golfLeaveBtn:hover {
    background: linear-gradient(135deg, rgb(76 175 80 / 30%), rgb(76 175 80 / 15%));
    color: #fff;
    border-color: var(--success-color);
    transform: translateY(-1px);
}
