/* ui_control_panel.css - Bottom Action Hub Cards and Badges */

#bottom-main-ui {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 6px;
    min-height: 0;
    padding-top: 14px; /* Increased to accommodate card-warnings */
    overflow: visible;
}

#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: visible;
}

.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: 20px; margin-bottom: 2px; }
.tower-card .card-label { font-size: 9px; font-weight: bold; }
.tower-card .card-cost { font-size: 7px; opacity: 0.8; }

.card-new-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff1744;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    z-index: 160;
    box-shadow: 0 0 8px rgba(255, 23, 68, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: newBadgePulse 1s infinite alternate;
    display: none; /* Hidden by default */
}

@keyframes newBadgePulse {
    from { transform: scale(0.9); box-shadow: 0 0 5px rgba(255, 23, 68, 0.6); }
    to { transform: scale(1.1); box-shadow: 0 0 12px rgba(255, 23, 68, 1); }
}

.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: 150;
}
.tower-card.disabled { opacity: 0.7; cursor: not-allowed; }

.card-warning {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff1744;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
