/* ui_panels.css - Control Panel and Unit Information Panel */

#bottom-main-ui {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 6px;
    min-height: 0;
    padding-top: 4px;
}

#control-panel {
    flex: 0 0 45%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    background: linear-gradient(145deg, rgba(30, 25, 0, 0.8), rgba(20, 0, 0, 0.9));
    border: 2px solid #2a2010;
    padding: 4px;
    position: relative;
    overflow: hidden;
}

.tower-card {
    background: #0a0a0a;
    border: 1px solid #3e2723;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #ffd700;
    position: relative;
    padding: 1px;
    line-height: 1.1;
    min-width: 0;
}

.tower-card .card-icon { font-size: small; margin-bottom: 2px; }
.tower-card .card-label { font-size: 9px; font-weight: bold; }
.tower-card .card-cost { font-size: 7px; opacity: 0.8; }

.tower-card:hover { 
    background: #1a1a1a; 
    transform: scale(1.05);
    border-color: #00e5ff; 
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    color: #fff;
    z-index: 10;
}
.tower-card.disabled { opacity: 0.4; filter: grayscale(1); cursor: not-allowed; }

.card-warning {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    color: #fff;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 10;
}

#unit-info {
    flex: 0 0 55%;
    background: #050505;
    border: 2px solid #2a2010;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #aaa;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

#unit-info::before, #unit-info::after {
    content: "🌙";
    position: absolute;
    font-size: 8px;
    color: #3e2723;
    top: 2px;
    z-index: 5;
}

#unit-info::before { left: 4px; }
#unit-info::after { right: 4px; transform: scaleX(-1); }
