/* Source: screens-menu-pool.css */
/* Bro Rogue — Pool Interaction Screen */

/* ═══════════════════════════════════════════════════════════════
   POOL INTERACTION SCREEN
   ═══════════════════════════════════════════════════════════════ */

/* ── Container with aqua theme ──────────────────────────────── */

.poolInteractionContainer {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

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

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

.poolInteractionContainer h2 {
    text-align: center;
    color: #00e5ff;
    font-size: 2rem;
    text-shadow:
        0 0 20px rgb(0 229 255 / 30%),
        2px 2px 4px rgb(0 0 0 / 80%);
    letter-spacing: 1px;
    flex-shrink: 0;
}

@media (width <= 700px) {
    .poolInteractionContainer h2 {
        font-size: 1.4rem;
    }
}

/* ── Needs Panel ────────────────────────────────────────────── */

.poolNeedsPanel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgb(0 30 40 / 55%);
    border-radius: 10px;
    border: 1px solid rgb(0 229 255 / 20%);
    width: 100%;
    max-width: 700px;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}

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

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

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

.poolNeedsCharName {
    font-size: 1.05rem;
    font-weight: bold;
    color: #00e5ff;
}

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

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

.poolNeedsBars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 250px;
}

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

.poolNeedBarIcon {
    font-size: 0.85rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.poolNeedBarLabel {
    font-size: 0.72rem;
    color: #ccc;
    min-width: 3rem;
    flex-shrink: 0;
    font-weight: bold;
}

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

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

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

.poolNeedBarFun {
    background: linear-gradient(90deg, #00e5ff, #18ffff);
}

.poolNeedBarSocial {
    background: linear-gradient(90deg, #69f0ae, #00e676);
}

.poolNeedBarHygiene {
    background: linear-gradient(90deg, #82b1ff, #448aff);
}

.poolNeedBarEnergy {
    background: linear-gradient(90deg, #ffd740, #ffc400);
}

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

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

.poolNeedBar.heal-flash {
    animation: poolNeedBarHealFlash 0.6s ease-out;
}

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

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

.poolNeedBarValue.flash-green {
    animation: poolNeedValuePop 0.5s ease-out;
}

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

/* ── Activities Grid ────────────────────────────────────────── */

.poolActivitiesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    width: 100%;
    max-width: 750px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    align-content: start;
}

/* Activity cards with aqua/water theme */
.poolActivityCard {
    background: linear-gradient(145deg, rgb(0 30 40 / 75%), rgb(0 20 30 / 85%));
    border: 2px solid rgb(0 229 255 / 20%);
    border-radius: 12px;
    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;
}

/* Water ripple effect on hover */
.poolActivityCard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgb(0 229 255 / 8%) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Animated wave ring on hover */
.poolActivityCard::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    border: 2px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.poolActivityCard:hover:not(.used)::before {
    opacity: 1;
}

.poolActivityCard:hover:not(.used)::after {
    opacity: 1;
    animation: poolWaveBorder 1.5s ease-in-out infinite;
}

@keyframes poolWaveBorder {
    0%,
    100% {
        border-color: rgb(0 229 255 / 0%);
        box-shadow: 0 0 0px rgb(0 229 255 / 0%);
    }
    50% {
        border-color: rgb(0 229 255 / 30%);
        box-shadow: 0 0 12px rgb(0 229 255 / 15%);
    }
}

.poolActivityCard:hover:not(.used) {
    border-color: #00e5ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgb(0 229 255 / 20%);
    background: linear-gradient(145deg, rgb(0 40 55 / 80%), rgb(0 30 42 / 90%));
}

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

.poolActivityCard.used .poolActivityUsed {
    display: block;
}

.poolActivityEmoji {
    font-size: 2.4rem;
    line-height: 1;
}

.poolActivityName {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
}

.poolActivityDesc {
    font-size: 0.72rem;
    color: #aaa;
    line-height: 1.3;
}

.poolActivityCost {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00e5ff;
    text-shadow: 0 0 8px rgb(0 229 255 / 30%);
}

.poolActivityUsed {
    display: none;
    font-size: 0.8rem;
    color: #00e5ff;
    font-weight: bold;
}

/* Pool Party card gets extra flair */
#poolActivityPoolParty {
    border-color: rgb(0 229 255 / 35%);
    background: linear-gradient(145deg, rgb(0 45 60 / 80%), rgb(0 30 40 / 90%));
}

#poolActivityPoolParty:hover:not(.used) {
    box-shadow: 0 8px 30px rgb(0 229 255 / 30%);
    border-color: #00e5ff;
}

/* ── Bottom Bar ────────────────────────────────────────────── */

.poolBottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.poolMoneyDisplay {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00e5ff;
    text-shadow: 0 0 8px rgb(0 229 255 / 25%);
}

.poolLeaveBtn {
    background: linear-gradient(135deg, rgb(0 229 255 / 15%), rgb(0 180 200 / 8%));
    color: #ddd;
    border: 1px solid rgb(0 229 255 / 25%);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.poolLeaveBtn:hover {
    background: linear-gradient(135deg, rgb(0 229 255 / 25%), rgb(0 180 200 / 15%));
    color: #fff;
    border-color: #00e5ff;
    transform: translateY(-1px);
}

/* ── Scrollbar ─────────────────────────────────────────────── */

.poolActivitiesGrid::-webkit-scrollbar {
    width: 5px;
}

.poolActivitiesGrid::-webkit-scrollbar-track {
    background: rgb(255 255 255 / 5%);
    border-radius: 3px;
}

.poolActivitiesGrid::-webkit-scrollbar-thumb {
    background: #00e5ff;
    border-radius: 3px;
}

.poolActivitiesGrid::-webkit-scrollbar-thumb:hover {
    background: #00bcd4;
}

/* ── Splash Animation ──────────────────────────────────────── */

@keyframes splashEffect {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.poolActivityCard.splash {
    animation: splashEffect 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
