/* Source: screens-menu-mall.css — Mall + Home interaction screens */

/* ═══════════════════════════════════════════════════════════════
   MALL INTERACTION SCREEN
   ═══════════════════════════════════════════════════════════════ */

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

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

.mallSubtitle {
    color: #aaa;
    font-size: 0.95rem;
    text-align: center;
}

/* Store selection */
.mallStoresArea {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.mallStoreCard {
    background: rgb(0 0 0 / 65%);
    border: 2px solid rgb(255 255 255 / 15%);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mallStoreCard:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(233 30 99 / 25%);
    background: rgb(0 0 0 / 80%);
}

.mallStoreEmoji {
    font-size: 3rem;
    line-height: 1;
}

.mallStoreName {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.mallStoreDesc {
    font-size: 0.8rem;
    color: #aaa;
}

/* Product view */
.mallProductArea {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.mallProductBackRow {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.mallBackBtn {
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 18%);
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.mallBackBtn:hover {
    background: rgb(255 255 255 / 18%);
    color: #fff;
}

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

.mallProductCard {
    background: rgb(0 0 0 / 70%);
    border: 2px solid rgb(255 255 255 / 12%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.mallProductImg {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: rgb(255 255 255 / 3%);
}

.mallProductInfo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.mallProductName {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.mallProductDesc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

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

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

.mallBuyBtn {
    background: linear-gradient(135deg, var(--success-color), #3dbb50);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    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%);
}

.mallBuyBtn:hover:not(:disabled) {
    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%);
}

.mallBuyBtn:active:not(:disabled) {
    transform: translateY(1px) scale(0.97);
    transition: all 0.05s ease;
}

.mallBuyBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Bottom bar */
.mallBottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

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

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

.mallLeaveBtn:hover {
    background: linear-gradient(135deg, rgb(255 107 107 / 25%), rgb(255 107 107 / 12%));
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   HOME INTERACTION SCREEN
   ═══════════════════════════════════════════════════════════════ */

.homeInteractionContainer {
    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-y: auto;
}

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

/* Needs panel */
.homeNeedsPanel {
    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: 650px;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.homeNeedBar.heal-flash {
    animation: homeNeedBarHealFlash 0.6s ease-out;
}

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

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

.homeNeedBarValue.flash-green {
    animation: homeNeedValuePop 0.5s ease-out;
}

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

/* Rest actions */
.homeRestArea {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.homeRestArea h3 {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}

.homeRestGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    width: 100%;
}

.homeRestCard {
    background: rgb(0 0 0 / 55%);
    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.3rem;
}

.homeRestCard:hover:not(.used) {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgb(78 205 196 / 20%);
    background: rgb(0 0 0 / 72%);
}

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

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

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

.homeRestDesc {
    font-size: 0.72rem;
    color: #aaa;
}

/* Furniture display */
.homeFurnitureArea {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.homeFurnitureArea h3 {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}

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

.homeFurnitureItem {
    background: rgb(0 0 0 / 55%);
    border: 2px solid rgb(255 255 255 / 10%);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.homeFurnitureItem img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    background: rgb(255 255 255 / 3%);
}

.homeFurnitureItemName {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: bold;
}

.homeFurnitureEmpty {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 1.5rem;
    font-style: italic;
}

/* Bottom bar */
.homeBottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

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

.homeLeaveBtn:hover {
    background: linear-gradient(135deg, rgb(78 205 196 / 25%), rgb(78 205 196 / 12%));
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}
