/* ============================================================
   MAGE TOWER PANEL — ARCANE UI THEME
   ============================================================ */

#mage-tower-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #e6e6ff;
}

/* Layout */
.mage-tower-layout {
    display: flex;
    gap: 20px;
    padding: 10px;
}

/* ============================================================
   LEFT SIDE — BUILDINGS GRID
   ============================================================ */

.mage-tower-buildings-section {
    flex: 1;
}

.mage-tower-buildings-section h2 {
    margin-bottom: 10px;
    color: #b8aaff;
    text-shadow: 0 0 6px #6a4cff;
}

.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.building-tile {
    background: rgba(40, 20, 70, 0.55);
    border: 1px solid #6a4cff;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

.building-tile:hover {
    background: rgba(90, 50, 150, 0.65);
    transform: translateY(-2px);
}

.building-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #dcd0ff;
}

.building-level {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ============================================================
   RIGHT SIDE — DETAILS + QUEUE
   ============================================================ */

.mage-tower-details-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* DETAILS PANEL */
#mage-tower-building-details {
    background: rgba(30, 15, 55, 0.55);
    border: 1px solid #8a6cff;
    border-radius: 6px;
    padding: 12px;
}

#mage-tower-building-details h2 {
    margin-bottom: 10px;
    color: #cbb8ff;
}

.details-content h3 {
    margin-bottom: 6px;
    color: #e6d9ff;
}

.details-content p {
    margin: 4px 0;
}

/* Build Button */
.btn-build {
    margin-top: 10px;
    padding: 8px 12px;
    background: #6a4cff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: 0.15s;
}

.btn-build:hover {
    background: #8a6cff;
}

/* ============================================================
   CONSTRUCTION QUEUE
   ============================================================ */

#mage-tower-construction-queue {
    background: rgba(30, 15, 55, 0.55);
    border: 1px solid #8a6cff;
    border-radius: 6px;
    padding: 12px;
}

#mage-tower-construction-queue h2 {
    margin-bottom: 10px;
    color: #cbb8ff;
}

.queue-item {
    padding: 8px;
    margin-bottom: 6px;
    background: rgba(60, 30, 100, 0.55);
    border: 1px solid #6a4cff;
    border-radius: 4px;
}

.queue-item:last-child {
    margin-bottom: 0;
}
