/* Sistema de Recursos */
.resources {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-panel);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.resource {
    text-align: center;
    margin: 8px 15px;
    min-width: 120px;
}

.resource-value {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Layout Principal */
.main-content {
    display: flex;
    gap: 25px;
    flex-direction: column;
}

@media (min-width: 900px) {
    .main-content {
        flex-direction: row;
    }
    
    .left-panel {
        flex: 3;
    }
    
    .right-panel {
        flex: 2;
    }
}

/* Paneles */
.panel {
    background-color: var(--color-panel);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.panel-title {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
    margin-top: 0;
    color: var(--color-secondary);
}

/* Botones */
.button {
    background: linear-gradient(to bottom, var(--color-primary), #6a1b9a);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin: 8px 0;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    background: linear-gradient(to bottom, #555, #777);
    cursor: not-allowed;
    transform: none;
}

/* Área de Clic */
.click-area {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #0f3460, #1f4068);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.click-area:hover {
    transform: scale(1.02);
}

.click-area:active {
    transform: scale(0.98);
}

/* Items de Mejora */
.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #2d3748;
    transition: background-color 0.2s ease;
}

.upgrade-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-weight: bold;
    color: var(--color-secondary);
}

.upgrade-description {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 4px;
}

.upgrade-cost {
    font-weight: bold;
    color: var(--color-secondary);
    margin-left: 15px;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 18px;
    background: linear-gradient(135deg, var(--color-success), #66bb6a);
    color: white;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.error {
    background: linear-gradient(135deg, var(--color-error), #ef5350);
}

.notification.warning {
    background: linear-gradient(135deg, var(--color-warning), #ffa726);
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
}
.modal.hidden { display: none; }
.modal-content {
    background: #1c1c2e;
    padding: 20px;
    border-radius: 10px;
    color: white;
    max-width: 400px;
    width: 90%;
}
