/* --- CONTAINER --- */
#gf-app-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #e0f7fa; 
    border: 3px solid #006064;
    border-radius: 15px;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    min-height: 650px;
}

/* --- HEADER --- */
.gf-header {
    background: linear-gradient(135deg, #ff6f00, #ffa000);
    padding: 10px 15px;
    display: flex; justify-content: space-between; align-items: center;
    color: white; font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.gf-level-badge { background: #0277bd; padding: 5px 12px; border-radius: 20px; border: 2px solid #fff; }
.gf-wallet, .gf-xp-box { background: rgba(0,0,0,0.6); padding: 5px 10px; border-radius: 10px; font-size: 14px; }

/* --- MARKET (NEWSPAPER) --- */
.gf-newspaper-header {
    background: #fbc02d; color: #333; text-align: center; padding: 10px;
    font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
    border-bottom: 2px solid #f57f17;
}
.gf-market-grid {
    padding: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    max-height: 500px; overflow-y: auto;
}
.gf-market-card {
    background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px;
    cursor: pointer; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}
.gf-market-card:active { transform: scale(0.96); }
.gf-market-card .m-price { position: absolute; top:5px; right:5px; background: #ffeb3b; padding: 2px 5px; border-radius: 4px; font-weight:bold; font-size:12px; }
.gf-market-card .m-seller { font-size: 10px; color: #777; margin-top: 5px; }
.m-icon { font-size: 20px; background: #eee; width: 40px; height: 40px; display:flex; justify-content:center; align-items:center; border-radius:50%; margin-bottom:5px; }

/* --- SHOP --- */
.gf-shop-stand { padding: 20px; text-align: center; }
.gf-shop-roof {
    background: repeating-linear-gradient(45deg, #d32f2f, #d32f2f 15px, #fff 15px, #fff 30px);
    color: #333; padding: 10px; font-weight: bold; border: 3px solid #8d6e63; border-radius: 10px 10px 0 0;
}
.gf-shop-slots-container {
    background: #8d6e63; padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    border: 3px solid #5d4037; border-top: none;
}
.gf-slot {
    background: #fff8e1; border: 2px solid #5d4037; height: 90px; border-radius: 8px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; cursor: pointer;
}
.gf-slot.locked { background: #cfd8dc; opacity: 0.8; }
.gf-slot .qty { position: absolute; top:3px; left:3px; background:#2e7d32; color:white; font-size:10px; padding:2px 4px; border-radius:3px; }
.gf-slot .price { position: absolute; bottom:3px; right:3px; font-size:11px; font-weight:bold; color:#f57f17; }

/* --- BARN --- */
.gf-storage-header { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 10px; border-radius: 8px; margin-bottom: 10px; }
.gf-upgrade-btn { background: #7b1fa2; color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.gf-inventory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
.gf-barn-item { background: white; padding: 10px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display:flex; justify-content:space-between; }
.gf-btn-debug { width: 100%; padding: 10px; background: #607d8b; color: white; border:none; margin-top:20px; cursor:pointer; }

/* --- NAV --- */
.gf-nav-bar {
    position: absolute; bottom: 0; width: 100%; background: white; display: flex;
    justify-content: space-around; padding: 10px 0; border-top: 2px solid #eee;
}
.gf-nav-btn {
    background: #e91e63; color: white; border: none; padding: 8px 12px;
    border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 13px;
}

/* --- MODAL --- */
.gf-hidden { display: none !important; }
#gf-modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8);
    z-index: 100; display: flex; justify-content: center; align-items: center;
}
.gf-modal-box { background: white; width: 80%; border-radius: 10px; overflow: hidden; border: 3px solid #ccc; }
.gf-modal-header { padding: 10px; color: white; display: flex; justify-content: space-between; }
.gf-modal-body { padding: 20px; text-align: center; }
.gf-input { width: 90%; padding: 8px; margin: 5px 0 15px; border: 1px solid #ccc; border-radius: 4px; }
.gf-btn-action { width: 100%; padding: 10px; background: #2e7d32; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }